Continental API (1.0.0)

Responsible for partner relationships, their locations, and their instructors.

Responses follow the JSON:API specification. Request and response bodies use application/json. Successful mutations return 201 Created or 200 OK with a data resource, or 204 No Content with an empty body.

Authentication

Authentication requirements vary by endpoint. The values below are sent as HTTP headers.

CredentialHeader(s)When required
API tokenX-Api-TokenEvery request. Gateway token for this API environment.
User sessionX-Auth-TokenPermission-scoped routes. See proxy note below.
AdminX-Username + X-PasswordAdmin-only routes. Both headers are required together. Admin accounts are provisioned internally.

Notes

  • X-Api-Token is required even on public read endpoints.
  • For permission-scoped routes, send either admin credentials or X-Auth-Token (see each endpoint's auth description).
  • GET /tokens accepts X-Auth-Token and returns the caller's encoded permission set.

X-User-Id and the Cloudflare proxy

In production, staging, and dev environments, a Cloudflare Worker proxy sits in front of this API. Clients send an X-Auth-Token (a user session JWT obtained from the Identity platform); the proxy validates it and replaces it with an X-User-Id (the user's internal UUID) before forwarding the request. The API itself only ever reads X-User-Id — it never sees X-Auth-Token.

For local development (no proxy running), send X-User-Id directly.

On dev/staging, you may also send X-User-Id directly to bypass the proxy — useful for testing without obtaining a fresh auth token each time.

Common headers

HeaderRequiredValue
AcceptYesapplication/json
Content-TypeOn POST / PATCHapplication/json
X-Api-TokenYesEnvironment API token (UUID)
X-Auth-TokenPer endpointUser session token. Validated by the Cloudflare proxy in deployed envs, which replaces it with X-User-Id before the request reaches the API. For local dev (no proxy), send X-User-Id directly instead.
X-UsernameAdmin routesAdmin email
X-PasswordWith X-UsernameAdmin password

Common query parameters

Used on paginated and filterable list endpoints (not every endpoint supports every parameter).

ParameterTypeDescription
pagenumberPage number (default: 1).
perPagenumberResults per page (default varies; often capped at 50).
sortstringSort fields. Prefix with - for descending, + or no prefix for ascending. Comma-separated. Example: -createdAt,+name.
filter[attribute][operator]stringFilter via Dusk QueryFilter. Bracket notation: filter[attribute][operator]=value. Operators include _eq, _in, _nnull, _contains. Multiple filters may be combined. Invalid filters return 422.
searchstringFull-text search where supported by the endpoint.

Common error responses

StatusMeaning
401Missing or invalid authentication.
403Authenticated but not permitted for this action.
404Resource not found.
406Accept header must be application/json.
415Content-Type must be application/json on requests with a body.
422Validation error or invalid query parameter.

Error bodies contain an errors array where each item has status, title, and detail fields.

Servers
Production
https://bizhub.uscca.cloud
Staging
https://bizhub.staging.uscca.cloud
Development
https://bizhub.dev.uscca.cloud