/api/public/v1/ must carry an API key in one of two places:
Authorization: Bearer <key>header (preferred)X-API-Key: <key>header (alternate)
X-API-Key on
redirects.
API key scope
Public API keys must have theplatform:adapter scope. Keys scoped to other roles
(admin, scoring, etc.) will be rejected with 401 Not authenticated even if the key
itself is valid.
You generate and manage platform:adapter keys from the
Platform dashboard after registering your community
server. See Onboarding: API keys for the
step-by-step process.
X-Adapter-* identity headers
Beyond the API key, every request that acts on behalf of a user or community must
carry the X-Adapter-* identity headers:
| Header | Required | Description |
|---|---|---|
X-Adapter-Platform-Type | Yes | Platform identifier, e.g. discourse |
X-Adapter-Platform-User-ID | Context-dependent | External user ID on the platform |
X-Adapter-Platform-Server-ID | Context-dependent | External community/server ID on the platform |
422 Unprocessable Entity. See
Concepts: Headers and auth for the
full specification.
Auth failure responses
| Status | Meaning |
|---|---|
401 Not authenticated | Missing or invalid API key |
403 Forbidden | Key is valid but lacks platform:adapter scope |
422 Unprocessable Entity | Required adapter header is absent or malformed |