Skip to main content
All /v1 endpoints require a Bearer token in the Authorization header.
curl https://api.selcor.ai/v1/workspaces \
  -H "Authorization: Bearer sk_live_..."

API Keys

API keys are scoped to a tenant and can be further restricted:
ScopeDescription
TENANTFull access to all workspaces under the tenant
WORKSPACELimited to specific workspaces
Each key has a set of permissions (e.g., workspaces:read, calls:read, relay:execute) that control which endpoints it can access.

Errors

Requests without a valid token return 401 Unauthorized:
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid Authorization header"
  },
  "request_id": "req_abc123"
}
Requests with insufficient permissions return 403 Forbidden:
{
  "error": {
    "code": "forbidden",
    "message": "Missing required permission: relay:execute"
  },
  "request_id": "req_abc123"
}