Skip to content
Sign in Create account

API reference

The gateway HTTP API, generated from its OpenAPI 3.1.0 document (version 2026.11.19.1): 289 operations in 43 groups. Browse by group or search for an endpoint by path or name. Where the document gives no example for a body, the page shows a sample generated from the schema and labels it "Generated sample".

Clients tokenize on the device before they call the model endpoints. The gateway relays the request and does not inspect message content, so it cannot tell whether detection ran. Chat completions lists the headers a direct call must carry, and Known limitations says what detection can miss.

Base URL and authentication

Base URL: https://api.cloakapi.io. Versioned routes start with /api/v1/.

  • API key: send Authorization: Bearer cloak_…. Authentication explains how to create and rotate keys.
  • Portal session token: a bearer token for the account endpoints the browser portal uses.
  • SCIM token: a bearer token for the /api/scim/v2/ directory endpoints.

Each operation states which of these it accepts, or "None" when it is open. Any operation can also be answered by the edge rate limit, which may return an HTML error page instead of JSON.

Test accounts and account routes

Endpoints

Schemas

Browse all 118 named request and response schemas.

Download the specification