Registering an App
Prerequisites
Section titled “Prerequisites”You need an AT Protocol account (e.g., Bluesky) to register an app. Log in to the Open Social web app first.
Register Your App
Section titled “Register Your App”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."}Using Your API Key
Section titled “Using Your API Key”Include the key in the X-Api-Key header:
GET /api/v1/communitiesX-Api-Key: osc_abc123...Validation Rules
Section titled “Validation Rules”- 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
Verify Your Key
Section titled “Verify Your Key”Test your API key:
POST /api/v1/apps/verifyHeaders: X-Api-Key: osc_abc123...→ { "valid": true, "app": { "appId": "...", "name": "...", "domain": "..." } }