One host, two kinds of path
Everything is onapi.corsair.cloud. Requests under /v1/ go to the
management API. Every other path goes to your project’s runtime, and each
instance reports where its tool calls go in its url field (null until the
instance is deployed).
Most management writes change Corsair’s stored configuration and reach the
runtime on the instance’s next apply (POST /instances/{key}/apply).
Integration changes work this way. Access changes are pushed straight away: a
PUT or DELETE on /access/{ref} updates the runtime as part of the request,
and its response carries synced. synced: false means the change is saved but
the runtime still enforces the old access until you apply the instance again.
One key, one project
Every request carries your project key as a bearer token:{slug} in the path has to match the slug inside the key. Naming any other
slug returns 404, so a key can’t tell whether another project exists. A key has
full authority over its project, with no tenant scope and no read-only mode, so
keep it on your server. See Authentication.
Resources
- Instances (
/instances/{key}) are runtime boundaries, such asprodandstaging. A key is a lowercase letter followed by lowercase letters, digits or hyphens, up to 32 characters, and it can’t change. - Integrations (
/integrations/{instance}:{integration}, for exampleprod:slack) are the plugins enabled on one instance. Each has anauth_type:managed(Corsair’s OAuth app),managed_pricing(Corsair’s provider key, paid per operation from credits),oauth_2,api_keyorbot_token. Leave it out and Corsair picksmanagedwhen it hosts an app for that plugin, ormanaged_pricingwhen the plugin is paid per operation.GET /integrations/cataloglists every plugin, its auth types, and whether a managed app is available. - Tenants (
/tenants/{instance}:{tenant}) are the people you serve, per instance. You choose the id: letters, digits and. _ : ~ @ + -, up to 128 characters. - Access (
/access/{instance}:{tenant}) is one line per tenant on an instance, atreadonly,readwriteoradmin. APUTcreates the tenant if it’s new. An MCP link can only name lines that already exist. - Connections (
/connections/{instance}:{integration}:{tenant}) are one tenant’s stored credential for one integration. Filter the list withinstance,integrationandtenant. Each has astatusofconnectedorexpired. - Connect sessions (
POST /connect/sessions) return a hosted URL where a tenant authorizes integrations. - MCP links (
/mcp/links) are MCP URLs for agents. A link has oneadminline it may write on, optional read-onlycontextlines, and amode. For the project’s shared MCP URL,POST /mcp/tokensmints a bearer token instead. - Webhooks (
/webhooks/{instance}:{integration}) receive a provider’s inbound webhooks and keep a delivery log you can read and retry.
GET /project, and the key at /keys. The
OpenAPI document
describes every route the TypeScript client calls, with each field.
No endpoint accepts a tenant’s token. To connect a tenant, create a connect
session and send them to its URL, so they authorize the integration themselves.
GET /connections reads back the result. Credentials an integration uses for
everyone, such as an API key, go in PUT /integrations/{ref} and can’t be read
back.Conventions
Fields aresnake_case. Single objects carry object and id. A DELETE
returns 200 with { "object": …, "id": …, "deleted": true }, plus anything
else the caller needs to know, such as synced.
Lists come back in one envelope:
limit and starting_after, passing the previous response’s
next_cursor. limit takes 1 to 100 and defaults to 100. A larger value is
clamped to 100. Anything that isn’t a positive integer is a 400, and so is a
starting_after id that isn’t in the list.
Every response carries a Request-Id header, and every error repeats it as
request_id. Send your own in X-Corsair-Request-Id and Corsair uses that
instead. Quote it when you report a problem.
Responses also carry Corsair-Version, today 2026-10-04. Corsair echoes a
version you send but doesn’t act on it yet.
The routes that mint something take an Idempotency-Key header, so a retried
call returns the first result instead of minting a second credential:
POST /instances, POST /keys/rotate, POST /instances/{key}/signing-secret/rotate,
POST /mcp/links, POST /mcp/links/{id}/rotate, POST /mcp/links/{id}/api-key,
POST /mcp/tokens and POST /connect/sessions. See
Retrying safely.
Every error has the same shape on every route. See Errors.