Skip to content

Registering an App

You need an AT Protocol account (e.g., Bluesky) to register an app. Log in to the Open Social web app first.

Once authenticated via OAuth, register your app:

POST /api/v1/apps/register
{
"name": "My Community Bot",
"domain": "bot.example.com"
}

Response:

{
"app": {
"appId": "app_a1b2c3d4e5f6g7h8",
"name": "My Community Bot",
"domain": "bot.example.com",
"apiKey": "osc_abc123...",
"createdAt": "2025-01-01T00:00:00.000Z"
},
"message": "Store the api_key securely — treat it like a password."
}

Include the key in the X-Api-Key header:

GET /api/v1/communities
X-Api-Key: osc_abc123...
  • name: 3-100 characters, alphanumeric with spaces, hyphens, and underscores
  • domain: Valid domain format (e.g., myapp.example.com)
  • Duplicate active domains are not allowed

Test your API key:

POST /api/v1/apps/verify
Headers: X-Api-Key: osc_abc123...
→ { "valid": true, "app": { "appId": "...", "name": "...", "domain": "..." } }