Skip to main content
Every request authenticates with your project key as a bearer token:

The key

A project key looks like ck_cloud_{slug}.{secret}. In the dashboard, open your project, then Project, then Keys. Only an organization owner can reveal it there. The {slug} isn’t secret: it appears in the project’s URLs, including the path above. The {secret} after the dot is the part to keep private. Corsair checks the slug in the path against the key, so a key only ever answers for its own project. Any other slug returns 404 resource_missing with param: "project_slug", never 403, so a key can’t probe which other slugs exist. A key has no tenant scope and no read-only mode. It can mint and revoke MCP links for any tenant, change access lines, create and delete tenants and instances, read every connection, and read or rotate the key itself.
Keep the key on your server. Never ship a ck_cloud_ key to a browser, a mobile app, or an agent: whoever holds it can manage the whole project. Give an agent an MCP link instead, which writes only on the one access line you give it.

Reading the key back

A backend that needs its own key, to show it once on a setup screen for example, can read it:
The response is sent with Cache-Control: no-store.

Rotating the key

POST /keys/rotate mints a new key and redeploys every deployed instance with it. There’s no grace period: the old key stops working when the call returns.
failed lists instances that didn’t redeploy and still hold the revoked key. Apply each one (POST /instances/{key}/apply).

If the response is lost

The API won’t hand you the new key in exchange for the old one. If the connection drops after the rotate went through, a retry with the old key gets 401 unauthorized, even with the same Idempotency-Key, because Corsair checks the key before it looks for a stored response. Get the new key from the dashboard instead: open the project, then Project, then Keys, and reveal it. An organization owner has to do this. If that page was already open before the rotate, reload it first, or it shows the old key. An Idempotency-Key still helps when a second copy of the rotate reaches Corsair while the first is still running. The second copy waits for the first and gets the same new key back, instead of rotating again.

The SDK

The TypeScript SDK derives the management URL from the key’s slug, so apiKey is the only option you need:

Rate limits

Corsair counts requests per project per minute, in three classes: A request to a path that doesn’t exist still counts, as a read for GET and a write otherwise. Over the limit returns 429 rate_limit_exceeded with a Retry-After header in seconds.

Failures

A missing or malformed header, or a key that doesn’t verify, returns 401 with code unauthorized. Corsair checks the key before anything else, so the answer is the same for every path. See Errors for the shape.