API Documentation
Complete endpoint reference for the SO1 Control Plane API. All
/api/* routes require a valid Clerk JWT in the
Authorization: Bearer <token> header.
Authentication
This API uses Clerk for authentication. Protected endpoints expect a bearer token obtained from the SO1 Console session. Tokens are verified server-side against Clerk's JWKS endpoint.
$ curl -H
"Authorization: Bearer $CLERK_TOKEN" \
https://mission.so1.io/api/auth/session
https://mission.so1.io/api/auth/session
Error Envelope
All error responses follow a consistent envelope structure for machine-parseable error handling:
{
"requestId": "a1be2b66-89c1-...",
"error": {
"code": "NOT_FOUND",
"message": "Endpoint not found",
"details": { ... }
}
}
"requestId": "a1be2b66-89c1-...",
"error": {
"code": "NOT_FOUND",
"message": "Endpoint not found",
"details": { ... }
}
}
Endpoints
Rate Limits & Headers
| Header | Description |
|---|---|
X-Request-Id |
Unique identifier for each request — use for support and tracing |
Authorization |
Bearer <clerk_jwt> — required for
/api/* routes
|
Content-Type |
application/json for request and response bodies
|