Errors & status codes
The single source for CoreSpeed HTTP status codes, error codes, error envelopes, and MCP isError results.
Every status code and error code returned by the endpoints in this reference is listed here. Other pages link to this one instead of repeating the table, so this is the copy to trust if you find a disagreement.
A CoreSpeed call fails at one of two layers. An HTTP failure — a 4xx or
5xx status — means the request itself was refused. A tool failure is an
HTTP 200 whose JSON-RPC result carries isError: true: the request was
authorized and the tool refused or failed. Both carry a machine-readable code;
branch on it, and treat the message or text as prose for humans.
The HTTP envelope
Every HTTP failure uses one nested envelope — error is an object:
{
"error": {
"type": "authentication_error",
"code": "missing_authorization",
"message": "Authorization header or x-api-key is required"
}
}code is the stable value to branch on. type is derived from the status:
| Status | type |
|---|---|
400, 409, 411, 412, 413, 415, 422, 426, 428 | invalid_request_error |
401 | authentication_error |
402 | payment_required |
403 | forbidden |
404, 410 | not_found |
405 | method_not_allowed |
429 | rate_limit_error |
500 | server_error |
502, 503, 504, 507 | api_error |
A route adds its own facts inside error: field on a validation failure,
request_id on a 500, and so on. Rate limiting — and any 503 that knows
when to come back — also sets the Retry-After header and a top-level
retry_after sibling. Read the header or the sibling — not
error.retry_after, which does not exist:
{
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Retry after 60s."
},
"retry_after": 60
}Two surfaces answer with a shape of their own:
- A signed artifact download (
GET /artifacts/…) answers with RFC 9457application/problem+json. - The MCP transport answers envelope-level mistakes with a bare JSON-RPC error object, below.
Transport errors on /mcp
Identity, rate limiting, and the body-size limit run first: POST /mcp
checks them ahead of the transport, so an unauthenticated caller gets the
nested 401, a throttled one gets 429, and a body over 5 MiB gets
413 payload_too_large — the envelopes above — no matter what the request
body or headers look like.
Only once the caller is identified does the Streamable HTTP transport validate
the envelope itself. Those failures answer with a bare JSON-RPC error object —
{ "jsonrpc": "2.0", "error": { code, message }, "id": null } — not the
envelope above:
-32000Accept must list both application/json and text/event-stream. Sending
only application/json fails here, which is why every sample sets both.
-32000Content-Type must be application/json.
-32700Parse error — malformed JSON, or a body that is not a valid JSON-RPC message.
-32600A JSON-RPC batch (array body). CoreSpeed rejects arrays ahead of the transport so one rate-limit slot cannot carry an unbounded number of tool calls.
-32020A request on the 2026-07-28 protocol revision whose Mcp-Method or
Mcp-Name header is missing or disagrees with the body. Nothing ran.
-32601subscriptions/listen. CoreSpeed publishes no events, so it refuses the
method.
HTTP status codes
These can come from any authenticated route, ahead of the route's own codes (listed per route in the next section).
invalid_requestThe body, query, or path parameters failed validation, or the body is not
JSON at all. error.field names the first offending field when there is one.
Fix the request — do not retry it unchanged.
missing_authorizationNo Authorization and no x-api-key header. On /mcp the response also
carries a WWW-Authenticate header pointing at the protected-resource
metadata, which is how OAuth-capable clients start browser sign-in.
invalid_jwtA bearer JWT failed verification. Which token to renew depends on which one
you sent: a user session JWT is refreshed against the session issuer, while an
MCP OAuth token on /mcp has its own issuer and lifecycle and is renewed by
re-running the client's browser sign-in — refreshing the session does nothing
for it. Both failures answer with this one code. A session JWT whose aud
names no CoreSpeed application answers it too.
client_not_allowedA valid user session JWT, minted for an application CoreSpeed does not accept on this API. Only CoreSpeed's own apps (the web app, the CLI, the Mac and iPhone apps) sign in with session tokens; any other client uses an API key or MCP OAuth. Signing in again through the same application does not help.
invalid_api_keyThe API key is unknown, revoked, or expired. Replace it — do not retry.
no_active_orgThe caller authenticated but no organization resolved. Answered by the key, agent, organization, billing, and connector routes. Open the dashboard once to finish setup, then sign in again so the client picks up a token that carries the organization.
It is not an /mcp status: /mcp mounts no HTTP wallet gate, so a
metered tools/call answers 200 with isError instead — see the tool
codes below.
payment_requiredThe organization wallet has no credit available. Billable operations
stop before execution; discovery and account reads still work. Topping up
clears it. Over HTTP the media upload routes answer it; on /mcp a metered
tool answers it as a tool result (below).
key_spend_limit_exceededThis API key reached its monthly spend cap. Raise the cap or wait for the reset. Caps are request-boundary guardrails, so a call already in flight can finish above the remaining amount.
org_suspendedAdministrative suspension. Every organization-scoped route answers it,
/mcp included, before anything runs. Adding balance does not clear it —
contact support.
agent_suspendedThe credential belongs to an agent that is suspended. The key itself is fine
— resume the agent (its owner or a holder of agents:manage, via manage__agents_update or
the dashboard) instead of rotating anything.
agent_retiredThe agent was retired and its keys are being revoked; once the revocation
lands the same key answers 401 invalid_api_key. Nothing restores a retired
agent — mint a new one.
api_key_cannot_mintAn API key asked to mint a key (POST /api-keys, POST /agents/:id/keys).
A key's spend cap does not carry to the keys it would mint, so minting is
done from a signed-in session or an MCP sign-in. Every other route answers
a key as its principal, with the permissions the key was minted with.
member_principal_requiredAn agent principal called an act that is a member's own: creating an agent
(POST /agents), the toolset writes, or the /me user actions
(/me/sync, /me/orgs, /me/provision, /me/analytics-preferences). A
member's own key is admitted like their session.
api_key_cannot_decidePOST /approvals/:id/decide was called with an API key (the dashboard's
GraphQL mutations answer API_KEY_CANNOT_DECIDE the same way). An approval
is a person's click between an agent and its write, and a member key is
the credential agents run on; decide from the dashboard, Slack, email, or
the Tie menu bar app.
insufficient_roleThe route needs a permission the caller does not hold; permission names
it (for example members:manage or billing:manage).
ceiling_exceededPOST /api-keys asked for a permission the caller's token cannot hand on;
missing names the slugs. A key never carries more than the token that
minted it.
endpoint_not_foundUnknown path, a connector id that is unknown or not offered on this
environment (the two are deliberately indistinguishable — see
Get connector), or a retired
per-connector / per-engine MCP URL. Call the unified POST /mcp.
Allow: POSTGET /mcp. The endpoint is POST-only — there is no SSE downstream. This
response has no body and no error code: only the Allow header.
multiple_accountsDELETE /connectors/:id matched more than one of your private accounts.
Remove one directly via DELETE /connectors/:id/accounts/:accountId, or use
manage__accounts_remove with an alias.
rate_limit_exceededToo many requests in the current 60-second window. Two independent dimensions
are metered: per API key, and per user for session callers — so one runaway key
is throttled without affecting the rest of the organization. Wait out
Retry-After (advisory, matches the window) before retrying; the body repeats
it as a top-level retry_after.
platform_db_unavailableThe API-key authority, the organization's billing standing, or (on /mcp)
the caller's tool surface could not be read. CoreSpeed fails closed
rather than allowing an unverified key or an unjudged metered call, so this
is a transient infrastructure state, not a credential problem — retry with
backoff.
internal_errorAn unexpected gateway error. The body carries error.request_id; retry with
backoff and quote the id to support.
Codes by route
What each route family adds to the table above. Every route that talks to the
payment provider can also answer 503 payment_provider_unavailable (retry
shortly) or 503 billing_unavailable (billing is not offered on this
environment).
| Route | Status and code |
|---|---|
POST /api-keys | 400 invalid_request (field: permissions — not an array of strings) · 400 unknown_permission (unknown names the slugs) · 401 session_client_id_missing (sign in again from a CoreSpeed client) · 403 ceiling_exceeded (missing names the slugs) · 404 WALLET_NOT_FOUND · 410 toolsets_removed (field: toolset or environment: toolsets are being removed, and no key binds to one) · 400 invalid_request (field under scope for a malformed inline scope) · 400 connection_not_reachable · 400 unknown_tools · 400 tools_empty (an inline scope's entries, as on a toolset) |
PATCH /api-keys/:id | 403 agent_self_escalation (an agent key cannot change key settings) · 404 api_key_not_found |
DELETE /api-keys/:id | 404 api_key_not_found — a key outside the caller's scope reads as absent |
POST /api-keys/:id/rotate | 403 ceiling_exceeded (the key carries a permission the caller cannot hand on; missing names it) · 404 api_key_not_found · 404 WALLET_NOT_FOUND |
GET /agents/:id | 404 agent_not_found |
PATCH /agents/:id | 403 insufficient_role (the owner or agents:manage; a transfer needs agents:transfer) · 404 agent_not_found · 409 agent_already_retired |
POST /agents/:id/keys | 400 agent_key_permissions (an agent's key carries no permissions) · 401 session_client_id_missing · 403 insufficient_role · 404 agent_not_found · 404 WALLET_NOT_FOUND · 410 toolsets_removed (field: toolset or environment) · 400 invalid_request, 400 connection_not_reachable, 400 unknown_tools, 400 tools_empty (as on POST /api-keys, against what the agent reaches) · 409 agent_not_active |
POST /agents/:id/retire | 403 insufficient_role · 404 agent_not_found |
POST /me/provision | 403 MEMBERSHIP_REVOKED · 409 provisioning_conflict · 502 identity_provider_error |
POST /me/orgs | 403 org_create_requires_payment_method · 409 provision_required · 502 identity_provider_error |
POST /me/sync | 502 identity_provider_error |
/me/org members and invitations | 402 plan_member_limit and 403 member_limit_reached (inviting past the plan's seats) · 404 not_found (member or invitation) · 409 last_admin (the organization must keep one admin) · 502 identity_provider_error |
POST /checkout/subscribe | 404 PLAN_NOT_FOUND · 404 org_not_found · 409 ALREADY_PRO · 409 STRIPE_CUSTOMER_INCONSISTENT |
POST /checkout/topup | 403 topup_requires_subscription · 404 PLAN_NOT_FOUND · 404 org_not_found · 409 STRIPE_CUSTOMER_INCONSISTENT |
POST /checkout/portal | 404 no_billing_account |
POST /checkout/payment-method-setup | 404 org_not_found · 409 STRIPE_CUSTOMER_INCONSISTENT |
/customers/me/* billing profile and payment methods | 400 no_org_customer · 404 payment_method_not_found · 409 payment_method_in_use (a method that funds an active subscription cannot be removed) |
POST /connectors/org | 400 invalid_slug · reserved_slug · invalid_url · unsupported_auth_mode · token_required · invalid_headers · custom_headers_unavailable · preregistered_client_required — 403 admin_required · 409 slug_taken · 409 oauth_registration_pending · 502 oauth_discovery_failed · 502 oauth_registration_failed |
POST /connectors/org/:slug/refresh | 403 admin_required · 404 not_found · 409 not_connected / needs_reauth / unauthorized (the credential needs reconnecting) · 429 cooldown (one refresh per 60 s, with Retry-After) · 502 snapshot_failed · 503 kv_unavailable (the refresh cooldown or the snapshot cache could not be read or written; retry) |
DELETE /connectors/org/:slug | 403 admin_required · 403 toolset_active (a key bound to a toolset) · 409 oauth_registration_pending · 409 connector_changed (the registration changed since you read it) · 404 endpoint_not_found |
GET /connectors/org/:slug | 404 endpoint_not_found for an unknown slug |
DELETE /connectors/:id | 409 multiple_accounts — you have more than one private account of this connector; remove one by id or alias |
DELETE /connectors/:id/accounts/:accountId | 404 not_found — no such account, or not one you may remove (with a key bound to a toolset: not one of the toolset's) |
POST /mcp/toolset/:slug, POST /mcp/env/:name | 404 toolset_not_found (no organization toolset, and none of yours, by that slug — or, on /mcp/env/, by that name; a ping too) · 403 toolset_mismatch (the key is bound to another toolset) |
/me/toolsets (and its first name, /me/environments) | 410 toolsets_removed (a create, a rename or an entry change: toolsets are being removed) · 403 member_principal_required (an agent principal on a delete) · 403 toolset_active (a key bound to a toolset on a delete) · 403 insufficient_role (permission: connections:org: deleting an organization toolset) · 404 toolset_not_found (none you may read or manage) · 409 toolset_in_use (keys: active keys still bound; revoke them first) |
GET /me/connections (and its first path, /me/toolsets/connections) | 400 invalid_request (owner_id is not an agent) · 403 agent_not_manageable · 404 agent_not_found |
POST /connectors/:id/accounts/:accountId/grants | 400 invalid_request (grantee_id or tools) · invalid_grantee · grantee_not_in_org · unknown_tools · tools_empty — 404 not_found (no such account, or not one you may share) · 409 not_shareable (this connector's personal accounts stay private) |
DELETE /connectors/:id/accounts/:accountId/grants/:granteeId | 404 not_found · 404 grant_not_found (the account is not shared with that grantee) |
PUT /connectors/:id/client | 400 invalid_request (client_id missing) · 403 forbidden (an organization admin only) · 409 client_id_shared (a Microsoft connector's app is already registered for a sibling connector, named in sibling) · 404 endpoint_not_found (this connector takes no organization client) |
DELETE /connectors/:id/client | 403 forbidden (an organization admin only) · 404 endpoint_not_found (no organization client to remove) |
PUT <upload_url> | 400 content_type_required · invalid_content_length · content_length_mismatch · upload_ticket_mismatch — 403 no_active_org · 403 capability_disabled · 404 upload_ticket_invalid · 405 method_not_allowed · 411 content_length_required · 413 payload_too_large · 413 upload_quota_exceeded · 502 storage_error · 502 file_record_failed · 503 quota_unavailable · authorization_unavailable · upload_capacity_exhausted · upload_ticket_unavailable |
Agent fleet codes
The agent fleet (Agent Ensemble) answers the same envelope on its API, on a
session's agent-link routes and on its runner's routes. Branch on
error.code. The facts in the last column sit inside error. A 429 or a
503 that knows when to come back also sets Retry-After and the top-level
retry_after. The @corespeed/fleet-wire package exports the codes a client
words itself.
Identity
| Code | Status | Meaning | In error |
|---|---|---|---|
missing_authorization | 401 | No bearer credential. Sign in. | — |
invalid_jwt | 401 | The session token is unknown, expired, or malformed. Sign in again. | — |
invalid_api_key | 401 | The API key is unknown, revoked, or expired. Replace it. | — |
no_active_org | 402 | The credential reaches no organization. Sign in again with one. | — |
principal_stopped | 403 | The organization or the agent is suspended or retired. Signing in again does not help. | — |
member_principal_required | 403 | An agent's key asked for a person's act. A session acts through its agent-link routes. | — |
identity_unavailable | 503 | CoreSpeed could not check the credential. Retry after Retry-After. | — |
invalid_ticket | 401 | A socket's ticket is missing, expired, or for another session. Get a new one from POST /api/socket-ticket. | — |
origin_rejected | 403 | A cross-origin request to a session's preview host. | — |
principal_mismatch | 403 | The request names another organization, or a sender other than the stamped one. | — |
Permissions
| Code | Status | Meaning | In error |
|---|---|---|---|
insufficient_role | 403 | The caller lacks the permission the act needs. | permission: org:settings or agents:manage |
A 403 forbidden carries no permission. No permission opens that act: for
example, a seat added by an agent, or an invite redeemed by someone outside
the organization.
Invites
While Ensemble is invite-only, an organization without an invite reaches
only /api/health, /api/catalog, /api/me and POST /api/invites/redeem.
| Code | Status | Meaning | In error |
|---|---|---|---|
invite_required | 403 | The organization holds no invite. Redeem a code at POST /api/invites/redeem. | request_url: where to ask for an invite, or null |
invite_not_found | 404 | No invite has this code. | — |
invite_exhausted | 409 | The code was redeemed as many times as it allows. | — |
invite_expired | 410 | The code's expiry has passed. | — |
invite_revoked | 410 | The code was revoked. | — |
invite_rate_limited | 429 | Too many codes tried for the organization this minute. Retry after Retry-After. | — |
A redeem the control plane could not check is 503 unavailable with
Retry-After. An organization already in answers 200 to any code it
holds, and consumes nothing.
Plan and billing
| Code | Status | Meaning | In error |
|---|---|---|---|
plan_limit | 402 | The organization's plan does not allow it. | limit (concurrentSandboxes, routines, or sandboxSizes; idleArchiveDays is a plan limit the cron applies, never a refusal), plan, allowed (a count, or the sizes the plan offers) |
payment_required | 402 | The organization's wallet has no credit. Add credits. | — |
plan_unavailable | 503 | The plan could not be read. Retry after Retry-After. | — |
billing_unavailable | 503 | Billing did not answer. Retry after Retry-After. | — |
Machines and sandbox providers
| Code | Status | Meaning | In error |
|---|---|---|---|
machine_not_found | 404, 422 on a routine | The machine is unknown, or the caller may not use it. | — |
machine_offline | 409 | The machine's daemon is not connected. | — |
machine_at_capacity | 409 | Every slot of the machine is in use, on a launch or a wake. | — |
machine_engine_unavailable | 422 | The machine does not run that engine. | — |
machine_account | 422 | A session on a machine uses its owner's own login. It takes no account. | — |
machine_private | 409 | A session on a member's machine runs as them. Only they may see it until an admin opens the machine to the organization. | — |
machine_in_use | 409 | An admin closed a machine while others can see sessions on it. | sessions |
capability_unsupported | 409 | The session's sandbox lacks what the route needs: exec for the terminal and the files, preview for the preview. | capability, provider |
byos_sprites_credentials_missing | 409 | The organization chose its own Sprites org, but stored no credentials. | setting: "sandbox_provider" |
byos_sprites_token_rejected | 409, 422 on a settings write | Sprites refused the stored token, or the token in the write. | setting: "sandbox_provider"; on a write, also field: "byos_sprites.token" |
byos_sprites_credentials_changed | 409 | The credentials were removed or changed while the session was being created. | setting: "sandbox_provider" |
not_configured | 409 | This deployment holds no key for the chosen provider. | setting: "sandbox_provider", provider |
byos_sprites_org_mismatch | 422 | The token belongs to a Sprites org other than the one named. | field: "byos_sprites.org" |
byos_sprites_org_unknown | 502 | Sprites did not say which org the token is for. Nothing was stored. | — |
byos_sprites_in_use | 409 | Sandboxes still run on the stored credentials. Archive them first. | in_use |
sandbox_unavailable | 502, 503 | The sandbox provider could not be reached. | — |
no_sandbox | 409 | The session has no sandbox yet. | — |
A machine's own link (/machine-link/…, the Tie daemon) adds these:
| Code | Status | Meaning | In error |
|---|---|---|---|
invalid_device_credential | 401 | The device credential is not valid. | — |
device_revoked | 403 | The device was revoked. Tie the machine again. | — |
not_member | 403 | The machine is not a current member's. | — |
org_suspended | 403 | The organization is suspended. | — |
websocket_required | 426 | The link is a WebSocket. | — |
not_configured | 503 | This deploy holds no runner bundle. | — |
GitHub
| Code | Status | Meaning | In error |
|---|---|---|---|
repo_not_installed | 422, 409 on a runner's token | No GitHub installation of the organization reaches the repository. | install_url (where the install starts, or null), on the 422 |
claim_invalid | 401 | The install claim is invalid or expired. | — |
claim_not_yours | 403 | Another member started this install. | — |
bound_to_another_org | 409 | The GitHub account belongs to another organization. | — |
not_configured | 503, 500 on the webhook | This deployment has no GitHub App, or no webhook secret. | — |
github_unavailable | 503 | GitHub gave no token, no repository list or no branch list. Retry. | — |
unavailable | 503 | The install, the claim or the installations list could not be answered right now, or a webhook delivery could not be handed on. Retry; GitHub redelivers on its own schedule. | — |
invalid_signature | 401 | A webhook delivery whose signature does not verify. | — |
Routines
| Code | Status | Meaning | In error |
|---|---|---|---|
name_taken | 409 | A live routine has that name. | field |
version_conflict | 409 | The routine changed since you read it. Read it again. | — |
archive_first | 409 | Archive the routine before you delete it. | — |
archived | 409 | The routine is archived, so its triggers and their tokens cannot change. Unarchive it first. | — |
not_found | 404 | No routine you may see. | — |
not_configured | 503 | Routines are not offered on this environment. | — |
trigger_not_api | 422 | Only an API trigger has a token. | — |
rate_limited | 429 | An API trigger fired more than the hourly cap. | — |
invalid_request | 400, 413, 422 | A body that fails validation, or a fire body that is too large. | field |
target_not_found, target_is_run, target_archived | 404, 422 | The target session is unknown, is one of the routine's runs, or is archived. | field |
repo_required, gh_repo_required | 422 | The body's template_id names a template that works on a repository, and the routine has none (field: repo). Or a GitHub trigger has no repository, and the routine has none either (field: triggers). | field |
Every other code of ROUTINE_ERROR_CODES | 422 (invalid_owner also 400) | One form field is wrong: invalid_cron, interval_too_short, prompt_too_long, too_many_triggers, environment_not_found, machine_not_found, repo_not_installed, and the rest. | field; errors lists every problem when a body has several |
Sessions
A launch (POST /api/agents, the spawn_agent verb):
| Code | Status | Meaning | In error |
|---|---|---|---|
invalid_engine, invalid_model, invalid_effort | 422 | The engine, model, or effort is not in the catalog. OpenCode also takes any <providerID>/<modelID>, and Cursor any model name cursor-agent lists (lowercase, no slash). Both take any variant name as the effort of a model the catalog does not list. | — |
ultracode_unsupported, permission_mode_unsupported | 422 | A Claude-only setting on another engine. | — |
fast_mode_unsupported | 422 | Fast mode on an engine without it (OpenCode, Cursor). | — |
invalid_ttl | 422 | The archive delay is not a positive number of seconds. | — |
invalid_target | 422 | target names neither a machine nor a sandbox kind. | — |
invalid_account_id | 422 | The account id is not a non-empty string. | — |
account_unavailable | 409, 422 for an unknown seat | The named seat cannot take the session. | account_id, reason (code, message) |
environment_not_found | 400 | The environment is unknown or archived, or the version a child or a routine pins is gone. | — |
environment_invalid | 400 | The environment's stored config is no longer valid. Edit and save it again. | — |
environment_unavailable | 503 | The session's environment could not be read, so nothing started. Retry after Retry-After. | — |
owner_not_member | 403 | The session's accountable member is not a member of the organization. | — |
org_suspended | 403 | The organization is suspended. | — |
principal_unavailable | 503 | CoreSpeed could not create or retire the session's identity. Retry after Retry-After. | — |
initial_input_unavailable | 503 | The first message could not be saved. Nothing was sent. | — |
initial_input_cleanup_failed, account_unavailable_cleanup_failed | 503 | The launch failed, and its cleanup could not finish. | agent_id, cleanup |
A session's state, sharing, sleep and archive:
| Code | Status | Meaning | In error |
|---|---|---|---|
archived | 409 | The session is archived. | — |
purged | 410 | The session was deleted. | — |
session_unavailable | 503 | The session could not be reached. Retry. | — |
runner_not_ready | 503, 409 on sleep | The sandbox's runner is not connected. | — |
sleep_off | 409 | Sleep is off for this session. | — |
queue_full | 413 | The session's input queue is full. | — |
not_owner | 403 | Only the session's owner may change who sees it. An archive also admits an admin. | — |
invalid_visibility | 400 | Not a visibility. | — |
invalid_shares | 400 | A share names no member of the organization. | unknown |
personal_agent_private | 400 | A personal agent stays private. | — |
directory_unavailable | 503 | The member directory could not be read. Retry. | — |
revoke_failed | 502 | Saved, but the session's open viewers could not be closed. Retry. | — |
runner_token_failed | 502, 503 | The runner's token could not be rotated. Retry. | — |
invalid_after | 422 | The archive delay is not a positive number of seconds. | — |
personal_agent | 409 | A personal agent is never archived on a timer. | — |
not_family_root | 409 | Only a family's root archives the family. | — |
family_archive_raced | 409 | The family kept changing during the archive. Retry. | — |
moved_after_claim, input_raced_claim, session_awake | 409 | A timed archive lost a race, or the idle archive found the sandbox awake. The session stays live. | — |
archive_failed | 500 | The archive stamp failed. Retry. | — |
archive_first | 409 | Archive the session before you delete it. | — |
purge_failed | 500 | The delete did not finish. Retry. | — |
A session's workspace, files, terminal and preview:
| Code | Status | Meaning | In error |
|---|---|---|---|
invalid_path | 400 | The path is not valid. | — |
path_taken | 409 | An entry with that name already exists. | — |
not_a_directory | 404 | The path is not a directory. | — |
directory_not_empty | 409 | The directory is not empty. | — |
not_a_git_workspace | 409 | The workspace is not a Git repository. | — |
revision_unavailable | 409 | The base revision is not available. | — |
file_changed | 412 | The file changed in the workspace since you read it. | — |
file_too_large | 413 | The file is too large to edit or preview. | — |
output_too_large | 507 | A listing, search, or Git status is too large to show. | — |
workspace_command_failed | 409, 502 | A command in the workspace failed. | — |
Attachments:
| Code | Status | Meaning | In error |
|---|---|---|---|
file_too_large | 413 | The file is over the upload limit. | max_bytes |
upload_incomplete | 400 | The upload did not finish. Attach the file again. | — |
attachment_gone | 410 | The file is no longer in the organization's Drive. | — |
cleanup_incomplete | 503 | The drop did not finish. A sweep finishes it. | — |
invalid_path | 400 | The Drive refused the file's name. | — |
path_taken | 409 | The Drive already holds a file at that path. | — |
too_large | 413 | The Drive refused the file's size. | — |
quota_exceeded | 413 | The organization's Drive is full. | — |
capacity_exhausted | 503 | The platform's upload space is full. Retry after Retry-After. | — |
The personal agent, calls and dictation:
| Code | Status | Meaning | In error |
|---|---|---|---|
personal_agent_exists | 409 | You already have a personal agent. | agent |
create_failed, initial_input | 503 | The personal agent could not be created. Retry. | — |
spawn_failed | 502, 503 | Its sandbox could not start. Retry. | — |
invalid_idle_timeout, invalid_voice | 422 | Not a valid idle timeout or voice. | — |
not_personal_agent | 403 | Only a personal agent takes calls. | — |
not_configured | 404, 503 | 404: this deployment does not serve the personal agent or its calls. 503: calls or dictation are not configured. | — |
openai_unavailable | 502 | The voice provider did not answer. | — |
call_start_failed | 502 | The call could not start. Retry. | — |
no_call | 409 | The session has no call. | — |
call_ended | 410 | The call ended. | — |
websocket_required | 426 | A socket route got a plain request. | — |
Sign-ins and seats
| Code | Status | Meaning | In error |
|---|---|---|---|
login_expired | 400 | The sign-in is unknown or expired. Start again. | — |
login_mismatch | 400 | The sign-in belongs to another seat, or is not a re-login. | — |
provider_mismatch | 400 | The flow does not fit the seat's provider. For example, a setup token is Claude-only, and an OpenCode or Cursor seat has no sign-in. | — |
setup_token_rejected | 400 | Anthropic refused the setup token. | — |
api_key_rejected | 400 | Cursor refused the API key: it is unknown or revoked, or it cannot run agents (a team Admin API key). | field |
account_mismatch | 409 | The re-login signed into another ChatGPT account. | — |
rate_limited | 429 | Too many sign-ins are in progress. | — |
A seat the caller may not manage answers 404 not_found, as an unknown one
does. POST /api/accounts/opencode saves the organization's OpenCode keys: it
answers 400 invalid_request with field for a body that is not a key
bundle, 403 forbidden when the seat is another member's, and 409 conflict
when another save changed the seat first. Read the seat again and retry.
POST /api/accounts/cursor adds a seat for one Cursor API key, and
POST /api/accounts/cursor/:id replaces a seat's key. Cursor checks each key
first. Both answer 400 invalid_request with field for a body without a key,
400 api_key_rejected for a key Cursor refuses, 409 conflict with field for
a key another seat of the organization holds, and 502 upstream_error when
Cursor does not answer the check. Retry it. A replacement also answers
409 conflict when another write changed the seat first.
Environments
| Code | Status | Meaning | In error |
|---|---|---|---|
name_taken | 409 | An active environment has that name. | — |
version_conflict | 409 | Someone else edited the environment. Read it again. | — |
environment_archived | 409 | An archived environment cannot be the team default. | — |
routines_pinned | 409 | Routines still run on the environment. Archive again with confirm: true. | routines, is_default |
default_environment | 409 | It is the team default. Archive again with confirm: true. | routines, is_default |
archive_first | 409 | Archive the environment before you delete it. | — |
Push and the Mac app
| Code | Status | Meaning | In error |
|---|---|---|---|
not_configured | 503 | Web Push or Apple push is off on this deployment. | — |
push_not_registered | 409 | No browser or Mac app is subscribed, or the one named is not registered. Turn notifications off and on. | — |
not_configured | 404, 503 | No Mac app is configured, or an update download has no GitHub App. | — |
The agent link
A session's runner and its sandbox CLI call /agent-link/… with the
session's runner token.
| Code | Status | Meaning | In error |
|---|---|---|---|
invalid_runner_token | 401 | The bearer is not this session's runner token. | — |
not_a_session_verb, not_needed_on_platform | 403 | A verb a session may not use, or does not need. | — |
bad_verb_shape | 400 | A verb the session may use, sent in the wrong shape. message gives the usage. | — |
self_archive | 400 | A session cannot archive itself. End the turn instead. | — |
not_descendant | 403 | Archive reaches only the caller's descendants. | — |
body_too_large | 413 | The message is too long. | — |
family_cap | 429 | The family runs as many sessions as it may. | — |
recipient_queue_full | 429 | The recipient has too much pending input. | — |
prompt_undelivered | 503 | The new session got no prompt. No child was started. Retry. | — |
prompt_undelivered_child_retained | 503 | The new session got no prompt, and its rollback failed. | agent_id |
too_many_wakeups | 409 | The session has as many wakeups as it may. | — |
no_account, account_unavailable, account_changed | 409 | The session's Codex account is missing, unusable, or was switched. On a spawn, no_account means no account can run the child's model now; message names the model and why each account cannot, and no child was started. | — |
never_provisioned | 409 | The archive target never ran: it was archived before it was provisioned. A failed provisioning retires the child and tells the parent the cause. | agent_id |
lease_unsupported | 400 | This sandbox holds its own lease. | — |
personal_agent_only, not_subscribable | 403 | Only a personal agent follows sessions, and only a live ordinary session is followed. | — |
own_child | 409 | The session reports to the caller already. | — |
do_error | 502 | The wait failed. Retry. | — |
Codes of a status alone
A refusal that names no state of its own takes its status's code.
message says what happened. invalid_request names the wrong field in
field when there is one. A defect is 500 internal_error, with
request_id inside error: quote it to support.
| Status | Code |
|---|---|
400, 422 | invalid_request |
401 | unauthorized |
402 | payment_required |
403 | forbidden |
404 | not_found |
405 | method_not_allowed |
409 | conflict |
410 | gone |
411 | content_length_required |
412 | precondition_failed |
413 | payload_too_large |
415 | unsupported_media_type |
426 | upgrade_required |
428 | precondition_required |
429 | rate_limited |
500 | internal_error |
502 | upstream_error |
503 | unavailable |
504 | timeout |
507 | insufficient_storage |
MCP tool errors
A tool failure is not an HTTP failure. The transport answers 200; the
JSON-RPC result carries isError: true, one text block the agent reads, and
the machine-readable half in structuredContent.error:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "GitHub rate-limited GET /search/repositories with 429 (search_repositories); retry after 30s"
}
],
"structuredContent": {
"error": { "code": "rate_limited", "status": 429, "retry_after_seconds": 30 }
},
"isError": true
}
}Always check result.isError in addition to the HTTP status, then branch on
structuredContent.error.code. Beside code, error carries only facts that
are safe to publish — a provider's status, its request_id, a
retry_after_seconds, the aliases to choose from — never a provider's body or
a credential.
One refusal keeps an older shape that clients already parse: the pre-flight
hold's JSON envelope is the text itself, with no structuredContent, and
the hold also names itself in _meta["io.corespeed/hold"] as
{ code, refusal }:
{
"content": [
{
"type": "text",
"text": "{\"error\":{\"type\":\"payment_required\",\"message\":\"…\",\"code\":\"payment_required\"}}"
}
],
"isError": true,
"_meta": { "io.corespeed/hold": { "code": "payment_required", "refusal": "OrgBelowSpendCutoff" } }
}An approval-gated write answers with a receipt instead — isError: true, the
approval id in the text, and _meta["io.corespeed/approval"] — and
manage__approval_wait returns the real result; see
Approvals.
Codes on every tool
-32602A tool name that is unknown or not on this caller's surface. This one is a
JSON-RPC error (Tool <name> not found), not a result, so check for
error as well as isError. A typo in params.name never surfaces in the
HTTP status.
Input validation errorArguments that fail the tool's inputSchema. The result has isError: true
and the text Input validation error: Invalid arguments for tool <name>: …,
with no structuredContent. The MCP SDK answers before the tool runs.
no_active_orgNo organization could be resolved for this sign-in. A browser MCP sign-in without an organization normally has one resolved — or created — on its first call, so this only remains when that could not complete (the identity provider or the platform database was unreachable). Retry shortly; if it keeps failing, open the dashboard once to finish setup, then sign in again from the MCP client.
payment_requiredThe organization is on a billing hold, caught before the metered tool
executed — the tool-level mirror of the 402 above.
key_spend_limit_exceededThe API key hit its monthly cap, caught before the metered tool executed.
org_suspendedAdministrative suspension. In practice /mcp answers the HTTP 403 above
before any tool runs; this tool-level mirror is a fallback.
platform_db_unavailableCoreSpeed could not read the organization's standing, a stored credential, or another record the call needs. Retry shortly.
api_key_cannot_mintmanage__keys_create or manage__agents_key_create was called with an API
key. A key does not mint keys; mint from the dashboard or a signed-in
client. Every other manage__* tool answers a key as its principal.
member_principal_requiredmanage__agents_create or a toolsets_* write was called by an agent
principal. Creating an agent and shaping toolsets are a member's own
acts; a member's own key is admitted like their session.
approval_unavailableThe approval service could not decide whether this write needs an approval, so the tool did not run. Retry shortly.
internalThe call failed inside CoreSpeed. error.request_id identifies it; retry
once, and quote the id to support if it fails again.
invalid_tool_resultThe tool produced a result that breaks its own declared output — a CoreSpeed
defect, reported like internal, with request_id.
no_active_org, payment_required, key_spend_limit_exceeded,
org_suspended, and a platform_db_unavailable about billing standing are the
pre-flight hold, answered in the JSON-in-text shape above.
api_key_cannot_mint, member_principal_required, approval_unavailable,
internal, and invalid_tool_result are in structuredContent.error.
Codes on every connector
Each connector's tools answer in that connector's name, with these codes:
| Code | Meaning | Move |
|---|---|---|
not_connected | No account of this connector is connected for this caller, or none with that alias. | Connect it in Dashboard → Connectors. |
needs_reauth | The provider rejected the stored grant, or it can no longer be renewed. The account is now marked needs_reauth. | Reauthorize the account. Do not rotate the CoreSpeed key. |
ambiguous_account | More than one account is connected; error.aliases lists them. Nothing was sent. | Pass account with one of the aliases. |
account_not_found | No connected account has that alias; error.alias and error.available. | Pass one of available. |
tool_not_granted | The account is shared with you for some tools only, and this tool is not one of them; error.alias and error.allowed. | Ask the account's owner to extend the share. |
tool_not_in_toolset | The session runs in a toolset that leaves this account or tool out; error.toolset (its name, or "this key's scope"), error.alias and error.allowed (empty when no account of the connector is in it). | Edit the toolset from a session outside it, or use another URL or key. |
credential_incomplete | The stored connection is missing a value the provider needs (an account id, a domain). | Reconnect the account. |
credential_undecryptable | The stored credential could not be read. | Reconnect the account. |
token_refresh_failed | The provider's token endpoint refused or failed to renew the access token (error.status when it answered). | Retry; if it persists, reconnect. |
not_configured | This CoreSpeed environment lacks the app registration the call needs. Not your account. | Report it to support; reconnecting does not help. |
platform_db_unavailable | CoreSpeed could not reach its platform database to load the credential. | Retry shortly. |
upstream_error | The provider refused the request. The text carries its status, the route, and its redacted reason; error carries status for an HTTP refusal, and request_id and retry_after_seconds when the provider sent them. | Fix the request, or act on the provider's reason. |
rate_limited | The provider rate-limited the call (status, and retry_after_seconds or rate_limit_reset_at when known). | Wait, then retry. |
upstream_unreachable | The provider could not be reached. On a write the text says the change may still have been applied. | Check before retrying a write. |
upstream_response_invalid | The provider answered with something that is not the expected response (error.status when it had one). | As above. |
cancelled | The call was cancelled before the provider answered. | Check before retrying a write. |
Some connectors add codes of their own:
| Connector | Code | Meaning |
|---|---|---|
| Atlassian, Auth0, Bitbucket, Google Drive, Meta Ads, Slack, X, YouTube | scope_not_granted | The connection lacks a scope this tool needs (error.missing when the connector can name it); reconnect to grant it. |
| Blackbaud, Bluesky, Canvas, Slack, Stack Exchange, Twitch, Facebook, Instagram, Pinterest, Reddit, Reddit Ads, Salesforce, WhatsApp | not_configured | This environment lacks the connector's own app registration, key, or approval (for the Composio-managed seven, error.reason says whether the managed backend is unconfigured or switched off). Not your account. |
| Atlassian, AWS, Bitbucket, Capsule CRM, ClickUp, Crowdin, Dub, Gmail, Google Drive, Outlook, Outlook Calendar, Photon, Teams Chat, Twilio, YouTube, Zoho Mail | invalid_input | Arguments that conflict, or a pagination link not issued by this tool for this account; nothing was sent (error.field / error.reason where given). |
| Dynamics 365 | invalid_next_link | A next_link not issued for this organization and collection; nothing was requested. |
| Webex | invalid_cursor | A cursor that is not a next_cursor this tool returned for that collection; it was not followed. |
| Slack | invalid_arguments | An argument Slack cannot act on, such as a group DM for canvas access (error.field). |
| Atlassian | not_found | The Confluence page does not exist. |
| Atlassian | partially_applied | A Jira transition or sprint change landed part of its work (error.issue_key and error.transition_id, or error.sprint_id; error.comment_added_via, error.comment_id, error.failed_step, error.failed_code) — do not redo what landed. |
| X | not_found | No user has that handle; nothing was sent. |
| Bitbucket | not_found | The repository has no main branch yet, or no branch or tag with that name. |
| Photon | not_found | Photon answered 404 or 410 (error.status). |
| YouTube | not_found | The video or playlist to update is not on YouTube, or not visible to this channel. |
| Gmail | not_found, label_not_found | The message, thread, or draft (error.resource, error.id), or the label (error.label, error.field), does not exist. |
| Bluesky | handle_not_found | The handle does not resolve to an account (error.handle); nothing was written. |
| Bluesky | record_not_owned | A delete aimed at a record that is not the connected account's own (error.collection). |
| YouTube | concurrent_edit | The resource changed on YouTube while the update was prepared (HTTP 412); nothing was written — run the tool again. |
| Google Ads | partial_failure | Some operations committed and others were refused; error.committed lists what landed. |
| Gmail | partially_applied | The operation did part of its work before failing; error lists what was applied (forwarded, failed_source_ids, failed_with, or for a relabel applied, total, created_labels, failed_with) — do not redo those. |
| Zoho Mail | nothing_archived, partially_applied, scan_limit_reached | unarchive_emails: none of the ids were in the Archive folder; a later batch failed after earlier messages moved; or the thread was too long to walk. |
| Meta Ads | scope_not_granted | Graph refused with (#100) Requires <permission> for a permission the connector requests but the grant lacks (error.missing); reconnect to grant it. |
| Photon | scope_not_granted | The connection is a sign-in with Photon, and this tool's operation takes only an API key (key management, authorized apps, plan changes); nothing was sent. Connect Photon with a project API key or an Account Service Key. |
| Eventbrite | venue_address_incomplete | The venue lacks address fields Eventbrite requires (error.missing). |
| Google Drive | drive_not_empty, drive_emptiness_unconfirmed | A shared drive still holds items (error.trashed when they are in the trash), or Drive could not confirm that it is empty; nothing was deleted. |
| Atlassian, Google Drive | no_content, media_too_large | A download with no content, or past the size limit for a download or a stored file. |
| YouTube | unsupported_media_type, media_too_large | An upload of a type or size the tool does not take. |
| Atlassian, Google Drive | invalid_file_input, upload_quota_exceeded, upload_capacity_exhausted, quota_unavailable, storage_error, handle_storage_failed | Reading a file input or storing a download as an artifact, with the same meanings as in media__* below. |
| Google Ads, LinkedIn, Meta Ads, YouTube | invalid_file_input | A file input could not be opened, with the same meaning (and retryable) as in media__* below. |
| Auth0 | self_target_refused | The call would change the Auth0 application CoreSpeed itself connects through. |
| Crowdin | scan_limit_reached | A filtered project listing stopped before reaching the requested page; use unfiltered pagination. |
| ClickHouse Cloud | service_not_running | The Query API did not run the statement: the service is idle (error.state is idle; call again with wake_service: true) or stopped (stopped; start it first). Nothing ran. |
| Harvest | account_not_found | account_id is not one of the Harvest accounts this connection reached (error.available). |
| Timely | workspace_not_found | account_id is not one of the workspaces this connection reached (error.available). |
| X | free_write_limit_reached | The Free plan's daily write allowance is used up (error.limit); it resets at 00:00 UTC. |
| Facebook, Instagram, Pinterest, Reddit, Reddit Ads, Salesforce, WhatsApp | identity_mismatch | The stored connection was made for a different CoreSpeed identity, so it was not used; reconnect. |
| Slack | personal_account_required | The tool acts as the connecting member, and the selected alias is the organization bot; pass your personal account's alias. |
| Slack | approval_card_protected, channel_id_required, message_not_found, approval_cards_unavailable | Tools may not delete, react to or reply in the thread of an approval card message; a conversation was named by name or user id where an id is needed to read the message and check that; Slack has no such message in that conversation, so it cannot be checked; or the approval cards or the message could not be read to check it (retry). |
| Datadog | mongodb_tag_resolution_unsupported | Datadog cannot resolve MongoDB instances by tag. |
| Stripe | docs_response_unverifiable | An API-reference-only search could not verify Stripe's response (error.reason). |
needs_reauth also covers each connector's own dead-credential signal —
Greenhouse's and Auth0's refused client credentials, Meta's Graph error 190,
an outdated Zotero key, an inactive Composio connection, a dead Slack user
token, an invalid Bluesky session — and credential_incomplete a stored API
key that no longer parses.
Slack answers a refusal with Slack's own error string in error.slack_error,
and forwards its hosted MCP server's isError results verbatim with a note
appended; Linear, monday.com, and Shopify read their GraphQL rate-limit codes
(RATELIMITED, complexity limits, THROTTLED) as rate_limited.
Vendor-hosted connectors (Datadog, Stripe, Sentry, and the other connectors
served from the vendor's own MCP server) forward the vendor's own isError
results verbatim. A failure on CoreSpeed's side of that connection answers
upstream_error (with status for an HTTP refusal, or required_scopes for
an insufficient_scope challenge), timeout (the upstream outcome is
unconfirmed), cancelled, needs_reauth, or upstream_url_refused. The
account codes in the first table above apply to them too.
Memory, media, web, social, and drive
memory__*
structuredContent.error is { code, message, … }, message repeating the
text.
| Code | Meaning |
|---|---|
not_found | The memory, link, or proposal is not visible to this caller. |
invalid_argument | Content the store refuses (reason, field); an input outside its rule (field, rule, and minimum or maximum); a change to a teammate's memory without a reason; or a field only the author may change (id, field). |
payload_too_large | Content past the store's limits (limit, maximum, field). |
quota_exceeded | The organization's memory storage quota (quota_bytes, used_bytes). |
not_owner | A teammate's memory (id). Only its author changes or deletes it; where archiving is on, archive it with a reason instead. |
archived, not_archived | The memory is archived, so restore it before changing or linking it; or a restore of a memory that is not archived (id). |
version_conflict | The memory changed since it was read (expected, actual). Read it again and retry. |
proposal_conflict, proposal_capacity_exceeded, forbidden | You already have a different pending proposal of this kind, or the proposal is already resolved (proposal_id, status); too many pending proposals (limit, maximum); or a withdraw by someone other than the proposal's author. |
link_capacity_exceeded | A new link would pass a limit (limit, maximum). |
backend_unavailable | Memory is unavailable for this call: no memory database on this environment (reason: "misconfigured", retryable: false), or the store failed. |
media__*
structuredContent.error is { code, message, retryable, status? }:
retryable says whether the same call may succeed later, and status is
present only when an upstream answered with it.
| Code | Meaning |
|---|---|
insufficient_balance | The wallet cannot cover the model's estimated hold. Top up or pick a cheaper model. |
billing_authorization_failed | The credit hold could not be recorded (retryable says whether to try again). |
billing_settlement_failed | media__understand, media__transcribe: the answer was produced but could not be settled, so it is withheld; retryable. |
key_spend_limit_exceeded, org_suspended, no_active_org | As above, caught by media's own pre-flight. |
pricing_unavailable | The model's rate cannot be established right now (retryable), or media generation is not configured on this environment (retryable: false). |
unknown_model, unsupported_model | Not a valid model id, or outside the image / video / audio catalog. |
catalog_unavailable | Model search, lookup, or schema could not be fetched (retryable says whether to try again). |
invalid_params | input fails the model's own schema. |
invalid_file_input | A file input could not be opened — the text says why (not public, no Content-Length, an expired link, an unknown handle). |
generation_failed | The generation was refused or failed upstream; the text carries the upstream's reason when it gave one. Nothing was charged. |
empty_output | The job finished without an extractable file, or the model returned no answer. Nothing was charged. |
generation_canceled, generation_expired | The job was canceled, or passed its deadline. Nothing was charged. |
job_not_found, job_not_running | No such job in this organization; or a cancel on a job that is no longer running. |
job_ledger_failed | The job ledger is unavailable; nothing was charged. Retry. |
invalid_media_url, mime_type_required, media_too_large, unsupported_media_type, invalid_media_window | media__understand input problems: the media URL, its type, its size, or the requested time window. |
file_not_found, upload_processing, upload_unprocessable | The Drive file is unknown, expired, or not visible to you; still being prepared (retryable, nothing charged); or rejected by the analysis backend. |
upload_quota_exceeded, upload_capacity_exhausted, quota_unavailable | drive__create_upload, and media__understand when it copies a URL: the organization's tmp/ space, the platform's upload capacity, or the quota ledger being unavailable. |
understanding_failed, rate_limited, content_blocked, incomplete_output, invalid_usage_metadata, internal_error | media__understand: the model failed (status), rate-limited, blocked the request, returned a cut-off answer, reported no usable usage, or was unavailable. |
transcription_failed | media__transcribe: the recording was refused (too long, undecodable, too short); the text carries the reason. Nothing was charged. |
upstream_unavailable | media__transcribe, media__list_voices, and a media__generate call whose voice could not be checked: the service could not answer right now; retryable. Nothing was charged. |
not_configured | Media is not configured on this environment. |
cancelled | The call was cancelled. |
web__* and social__*
| Code | Meaning |
|---|---|
invalid_input | Arguments refused before any request left CoreSpeed (field and reason from web__scrape, issues from the other tools). |
upstream_error | The search or data supplier refused the request (status, and request_id and retry_after_seconds when sent; social may add upstream_code). |
rate_limited | The supplier rate-limited the call (status, and retry_after_seconds when sent). |
upstream_unreachable | The supplier could not be reached, or timed out. |
upstream_response_invalid | The supplier answered with something unreadable (status). |
cancelled | The call was cancelled. |
no_content | web__scrape: the page had no readable text. |
timeout | A live-collection tool (Facebook, Threads, Google Search and Maps, Airbnb, TripAdvisor, Amazon, Zillow) reached timeout_seconds before returning any result. Nothing was charged; raise timeout_seconds or narrow the request. |
collection_failed | A live-collection tool's run failed upstream — often an id, URL, or name that does not exist. Nothing was charged. |
drive__*
structuredContent.error is { code, message, retryable? }. Drive calls are
never charged, so nothing is refunded on a failure.
| Code | Meaning |
|---|---|
invalid_path | The path breaks the Drive's naming rules; the text says which rule. |
file_not_found | No file at that path, file id or version id that you can see. |
path_taken | drive__move: the destination already names a file. |
file_too_large | A file under tmp/ is over the per-file limit; put it on a kept path instead. |
drive_quota_exceeded | The write would pass the plan's kept-bytes ceiling (drive__usage shows the numbers). |
upload_quota_exceeded, upload_capacity_exhausted, quota_unavailable | The organization's tmp/ pool or the platform's is full, or the ledger that reserves it is unavailable (retryable); uploads expire on their own. |
put_raced, precondition_failed | Another write created or changed the path at the same moment; retry the put. |
storage_error | Storage could not be reached (retryable), or the file's storage is not reachable from this deployment. |
drive_unavailable | The Drive index is unavailable (retryable), or sharing by link or publicly is not configured on this deployment. |
content_length_mismatch | drive__put from a URL: the origin sent fewer or more bytes than its Content-Length. |
Manage tools
| Code | Meaning |
|---|---|
api_key_cannot_mint, member_principal_required | A key on a minting tool; an agent principal on a member's own act (above). |
no_active_org, platform_db_unavailable | As above. |
invalid_arguments | An argument the tool refuses (field). |
api_key_not_found, invalid_spend_limit, agent_self_escalation, org_wallet_missing | manage__keys_*: no such key in scope; a cap that is not above zero; an agent key changing key settings; no wallet for the organization. |
session_client_id_missing | manage__keys_create, manage__agents_key_create: the session token has no client_id claim; sign in again from a CoreSpeed client. |
ceiling_exceeded, unknown_permission, agent_key_permissions | manage__keys_create, manage__agents_key_create: a slug the caller's token cannot hand on (missing; a token from an MCP sign-in hands on none); a slug that is not a permission (unknown); any slug on an agent's key. |
agent_not_found, agent_not_active, agent_already_retired, agent_not_manageable, agent_owner_not_member, insufficient_role | manage__agents_*: no such agent; not active (suspended or retired), so it cannot get a key; retired; the caller is neither its owner nor a holder of agents:manage; the new owner is not a member; giving an agent away needs agents:transfer. |
account_not_found, alias_taken, alias_blank, alias_reserved, alias_ambiguous, account_removal_forbidden | manage__accounts_*: no such alias (inside a toolset: none of the toolset's accounts); the new alias is taken, empty, or reserved for the connector's organization integration; accounts_remove matched more than one account; the caller may not remove a shared account. |
toolsets_removed | manage__toolsets_create and manage__toolsets_update (and their first names, manage__environments_*), and a key tool's toolset or environment: toolsets are being removed, so none is created or changed and no key binds to one. Give the key its own scope. |
toolset_not_found, toolset_in_use, connection_not_reachable, unknown_tools, tools_empty, agent_not_manageable, insufficient_role | manage__toolsets_delete (and its first name) and the key tools' scope: none you may manage by that id; active keys are bound to it (keys); an entry names an account the key's subject cannot use (connection_ids); a tool list names tools the connector does not publish, or none; only the agent's owner or a holder of agents:manage manages its toolsets; only a holder of connections:org deletes an organization toolset (permission). |
toolset_active | The session runs in a toolset: a toolset cannot be deleted, a key or an agent's key minted, nor a remote MCP server added, refreshed or removed from inside one. |
invalid_grantee, grantee_not_in_org, unknown_tools, tools_empty, not_shareable, ambiguous_account, forbidden, grant_not_found | manage__accounts_share and manage__accounts_unshare: the grantee is not a user_…, agent_…, or org_… id, or not in this organization; tools names tools the connector does not publish (unknown), or none; this connector's personal accounts stay private; the alias names both a private and a shared account; only the owner (or, for a shared account, its creator or a holder of connections:org) may change its shares; the account is not shared with that grantee. |
connector_not_found, connect_link_unsupported, connector_not_shareable, agent_owner_missing | manage__connectors_connect: no connector by that id can be connected here (also from manage__connectors_wait); the id names a custom MCP server your organization added (connect it in the dashboard); an agent key asked for Slack or Linear, whose personal accounts are never shared (it uses the organization integration); the agent key's agent has no owner to open the link. Inside a toolset manage__connectors_connect and manage__connectors_wait answer toolset_active. |
identity_provider_unavailable, switch_org_unsupported | manage__switch_org: the identity provider did not answer, so nothing changed; or the session has no browser-OAuth client to re-authorize (an API key's organization is fixed by the key). |
admin_required | A manage__remote_* write without connections:org (permission). |
slug_taken, invalid_url, oauth_discovery_failed, cooldown, snapshot_failed, kv_unavailable, … | manage__remote_*: the same codes as the /connectors/org routes above, as tool codes. An unknown slug is not_found, and cooldown carries retry_after_seconds. |
feedback_rate_limited | manage__send_feedback: the organization sent its 50 items for the rolling day (limit). Tell your user instead of retrying. |
approval_not_found | manage__approval_wait: no approval with that id for this caller. |
approval_coordinator_unreachable | The wait lost contact with the approval; call it again with the same id. A call that already ran is never run twice. |
approval_arguments_unreadable | The approved call's frozen arguments could not be read, so it was not run. |
approved_tool_unresolvable | The approved tool is no longer available to this caller, so it was not run. |
approval_surface_unavailable | The approved call was not run because CoreSpeed could not rebuild the caller's tools. The approval is used up; request the call again once CoreSpeed recovers. |
A pending, denied, or expired card — or one an earlier wait already ran —
comes back as its receipt, with the state in _meta["io.corespeed/approval"].
Remote MCP servers
An org-registered server's own isError results are forwarded verbatim. When
the call fails on CoreSpeed's side, an org__<slug>__* tool answers:
| Code | Meaning |
|---|---|
not_connected, needs_reauth, refresh_failed, unauthorized | The caller's authorization for this server is missing, dead, could not be renewed (status), or was refused. Reauthorize in the dashboard; for a server registered with a static token, re-add it. |
oauth_client_missing, oauth_client_unreadable, credential_undecryptable | The registration's OAuth client is missing or unreadable, so a holder of connections:org re-registers the server; or the stored credential is unusable, so reconnect it. |
invalid_url, not_https, has_credentials, credential_in_query, has_fragment, ip_literal, loopback_or_local, self_host | The server's URL is refused by CoreSpeed's URL guard. |
redirect_refused, response_too_large, too_many_tools, protocol_error | The server redirected, answered past the size limit, listed too many tools, or spoke something that is not MCP. |
timeout, cancelled | The call timed out or was cancelled; its upstream outcome is unconfirmed. |
upstream_error | The server refused the request (status for an HTTP refusal), answered with a JSON-RPC error, or could not be reached. When unreachable, a write may have landed. |
platform_db_unavailable | As above. |
Codes in the activity trail only
Some results reach the agent as a receipt or as an upstream's own result, with
no structuredContent.error. The organization's
activity trail still records a code for them:
approval_pending and denied_by_policy (the approval gate's receipts);
approval_denied, approval_pending, approval_expired,
approval_already_taken and approved_call_failed (manage__approval_wait
answering a closed card, or the approved call's own failure); upstream_error
(a vendor's or org server's isError result, forwarded verbatim);
component_root_conflict (Webflow's result, forwarded with advice); and
approved_tool_unavailable (the replay of an approved call whose tool is gone).
Recovery at a glance
| Symptom | First move |
|---|---|
401 on every call | Check the header form, then whether the key was revoked. |
429 in bursts | Back off for Retry-After. The window follows the credential, one or the other: a session call is limited per user, an API-key call per key. A runaway key is throttled on its own without consuming its owner's session window. |
402 on billable operations only | Top up. Discovery still works, so the surface is intact. |
403 org_suspended | Support. No client-side fix exists. |
403 api_key_cannot_mint | Mint the key from the dashboard or a signed-in client; a key does not mint keys. |
403 member_principal_required | That act is a member's (create an agent, shape a toolset, the /me user actions); use a member's credential. |
404 on a tool call URL | You are calling a retired per-connector URL. Use POST /mcp. |
500 or tool code internal | Retry once with backoff; quote the request_id to support. |
Tool missing from tools/list | Capability disabled, or the account is not connected for this caller. |
Tool code needs_reauth | Reauthorize the account in the dashboard. |
Tool code ambiguous_account | Pass account with one of error.aliases. |