Errors
The error envelope, every error code with its status and whether to retry, and the details shapes.
Every API error uses one envelope and a matching HTTP status. This page lists the codes, which
ones are safe to retry, and the details you get with the common ones.
The envelope
{
"error": {
"code": "validation_error",
"message": "Invalid request",
"details": { "formErrors": [], "fieldErrors": { "user_id": ["Required"] } }
}
}Branch on code, not on message: messages are for people and can change. details is optional
and its shape depends on the code. In the TypeScript SDK, every error response becomes a
ToolwireApiError with status, code, message, details and requestId.
Tool failures are different: if the tool ran, the status is 200 and the error is inside the
response envelope (successful: false). See Execute tools for those codes.
Codes
Retryable means the same request can succeed later without changes. Retry with backoff, and send
an Idempotency-Key on POST requests so a retry never runs twice.
| Code | Status | Meaning | Retryable |
|---|---|---|---|
bad_request | 400 | The request is malformed (for example a body that is not JSON). | No |
validation_error | 400 | A field is missing or invalid. details.fieldErrors names each field. | No |
confirmation_required | 400 | A destructive call needs an explicit confirmation parameter. | No |
toolkit_mismatch | 400 | The connected account belongs to another toolkit than the tool or trigger. | No |
trigger_setup_failed | 400 | The provider refused the trigger's setup (for example a missing repository). | No |
automation_invalid | 400 | The automation's draft has problems to fix before publishing or a test run. details.issues lists them. See Automations. | No |
invalid_credentials | 400 | The provider rejected an API key you submitted. | No |
not_shared | 400 | Only shared connected accounts have a name to rename. See Connect accounts. | No |
invalid_suggestion_block | 400 | Pasted text has no valid workspace-suggestions block, or a change is malformed. See below. | No |
invalid_password | 400 | The password you entered to confirm it is you is wrong (two-factor settings, password, email or account changes, deleting an organization). | No |
invalid_two_factor_code | 400 | The authenticator or backup code is wrong or was already used. | No |
unauthorized | 401 | No valid session or Authorization header. | No |
invalid_api_key | 401 | The API key is unknown, revoked or expired. | No |
invalid_signature | 400/401 | A webhook signature did not verify. | No |
forbidden | 403 | Your role does not allow this action. See Members and roles. | No |
account_not_yours | 403 | A dashboard session tried to use a personal app another team member connected for themselves (playground, triggers). Use your own account or a shared one. API keys are not limited. | No |
mcp_server_disabled | 403 | The MCP server is disabled. | No |
insufficient_scope | 403 | The API key lacks the permission this route needs. details.required names it. See API keys. | No |
shared_connection_restricted | 403 | Only the member who connected a shared account, an owner, an admin or an API key may rename, reconnect or delete it. | No |
share_restricted | 403 | Sharing a personal account is limited to the member whose account it is, owners, admins and API keys. details.reason is not_owner, or not_a_member when the account's user_id is not a member (owner/admin only). | No |
tool_not_allowed | 403 | The API key's tool restriction excludes this tool. details.tool names it. See API keys. | No |
reauthentication_required | 403 | You sign in with GitHub only and signed in more than 10 minutes ago. Sign out and in again. See Account. | No |
invitation_email_mismatch | 403 | You are signed in with another address than the invitation was sent to. | No |
email_not_verified | 403 | Verify your email address before accepting an invitation or turning on two-factor authentication. | No |
two_factor_required | 403 | The organization requires two-factor authentication. See Two-factor. | No |
not_found | 404 | The object does not exist or is not in your project. | No |
tool_not_found | 404 | Unknown tool slug. | No |
connected_account_not_found | 404 | No account matches the user_id or connected_account_id. | No |
trigger_type_not_found | 404 | Unknown trigger slug. | No |
connect_session_not_found | 404 | The connect link is unknown or has expired. | No |
automation_template_not_found | 404 | Unknown automation template slug. | No |
conflict | 409 | The object already exists or changed in between. | No |
limit_reached | 409 | A count limit (projects, triggers, API keys, ...) is reached. See below. | No |
label_taken | 409 | Another shared account of the same app in the project already uses this label (any letter case). details.fieldErrors.label has the message for your form. | No |
shared_accounts_limit | 409 | The project already shares 10 accounts of this app. Delete one or let a failed one go. | No |
no_connector | 409 | Stop sharing needs a member to give the account back to; this one was connected with an API key or by someone who left. Disconnect it instead. | No |
account_in_use | 409 | Stop sharing is refused while automations or triggers still use the account. details.automations (id, name) and details.triggers (id, trigger_slug) list them. | No |
in_use | 409 | The object is still referenced: an auth config with accounts or MCP pins, a webhook endpoint in use. | No |
auth_config_disabled | 409 | The auth config is disabled. | No |
managed_app_unavailable | 409 | The platform's OAuth app for this toolkit is not configured. | No |
connection_not_active | 409 | The connected account is expired, revoked or not finished. Reconnect it. | No |
not_refreshable | 409 | The account has no refresh token. | No |
refresh_failed | 409 | The provider rejected the refresh token. Reconnect the account. | No |
credentials_unreadable | 409 | Stored credentials could not be decrypted. Reconnect the account. | No |
connection_busy | 409 | The account is being refreshed or updated right now. | Yes |
trigger_mode_unavailable | 400/409 | Webhook mode is not available (for example the GitHub App is missing). 400 on create, 409 on enable. | No |
delivery_in_progress | 409 | The delivery is still pending or being delivered. | Yes |
idempotency_in_progress | 409 | A request with the same Idempotency-Key is still running. Honour Retry-After. | Yes |
idempotency_replay_unavailable | 409 | The first response was too large to store. Find the result in the logs. | No |
billing_disabled | 409 | Billing is turned off on this deployment. | No |
already_subscribed | 409 | The organization already has a subscription. Change plans in the billing portal. | No |
billing_not_set_up | 409 | The organization has no billing customer yet. Start a checkout first. | No |
last_owner | 409 | The change would leave the organization without an owner. Make someone else an owner first. | No |
already_member | 409 | The invited address already belongs to a member. | No |
invitation_exists | 409 | A pending invitation for this address exists. Resend it instead. | No |
invitation_not_pending | 409 | The invitation was already accepted, declined or revoked. | No |
revision_conflict | 409 | The AI workspace changed since you loaded it. Reload, then save again. | No |
suggestion_stale | 409 | The text a suggestion replaces is no longer in the file exactly once. Reject it or suggest a fresh change. | No |
suggestion_not_pending | 409 | The suggestion was already approved, rejected or withdrawn. | No |
two_factor_already_enabled | 409 | Two-factor authentication is already on for your account. | No |
two_factor_not_enabled | 409 | Two-factor authentication is off for your account. | No |
two_factor_enrollment_not_started | 409 | Verify was called without a setup in progress. Start the setup again. | No |
password_not_set | 409 | Your account has no password (GitHub sign-in only). Set one first. | No |
password_already_set | 409 | Your account already has a password. Change it with your current password instead. | No |
slug_taken | 409 | The slug is used by another organization, or (custom MCP apps) overlaps another app's slug; details.conflicts_with names that app. | No |
subscription_active | 409 | The organization still has a live subscription. Cancel it in Billing, then delete the organization. details.manage_url_hint is "billing". | No |
owns_organizations | 409 | You still own organizations, so your account can't be deleted. details.organizations lists them. See Account. | No |
custom_mcp_app_in_use | 409 | Projects still have auth configs for the custom MCP app. details.projects lists them. See Remote MCP apps. | No |
claude_connection_disabled | 409 | The project's managed MCP server is disabled, so no agent link can be created. See Connect to agents. | No |
onboarding_in_progress | 409 | Claude is already drafting the AI workspace profile for this organization. details.session_id names the setup. See AI workspace. | Yes |
onboarding_busy | 409 | Claude is still answering the last setup message. | Yes |
onboarding_not_ready | 409 | The setup is not ready for this (still drafting, saved, failed, discarded or expired). | No |
checkin_closed | 409 | The check-in is already answered, dismissed or expired. | No |
checkin_not_answered | 409 | A check-in is confirmed before it was answered. | No |
checkin_unavailable | 409 | This period's check-in can't be started. details.reason: cadence_off, intake_not_saved, intake_too_new or no_questions. | No |
draft_conflict | 409 | The automation's draft changed since you read it. details.current_revision has the new revision: reload, then save again. | No |
not_published | 409 | The automation was never published, so it can't be enabled or re-run. Publish it first. | No |
run_in_progress | 409 | The automation run is still queued or running. Cancel it or wait, then re-run. | Yes |
run_finished | 409 | The automation run already finished, so it can't be canceled. | No |
managed_by_automation | 409 | The trigger belongs to an automation. Change the automation instead. details.automation_id names it. | No |
gone | 410 | The object existed but is no longer available. | No |
invitation_expired | 410 | The invitation link is older than 7 days. Ask for a new one. | No |
payload_too_large | 413 | The request body is over the route's cap: 1,000,000 bytes for tool execution and incoming webhooks, 196,608 bytes (192 KB) for automation writes, 16 KB for sign-in requests. | No |
unsupported_media_type | 415 | Sign-in, password-reset and verification-email requests must send Content-Type: application/json. | No |
idempotency_key_reused | 422 | The Idempotency-Key was used with a different request. | No |
suggestion_invalid | 422 | The file can't be changed through a suggestion, or the new text contains {{ or }}. | No |
before_not_found | 422 | The before text of a replace is not in the current file. | No |
before_ambiguous | 422 | The before text appears more than once. Include more of the surrounding text. | No |
suggestion_adds_import | 422 | The change adds an @ import. Imports change what Claude loads and are not accepted. | No |
suggestion_contains_secret | 422 | The change contains something that looks like a key, token or password. | No |
suggestion_too_long | 422 | CLAUDE.md would exceed 200 lines, or a file 64 KB. Move detail to a context file. | No |
suggestion_file_not_allowed | 422 | Claude proposed a change to a file it may not change (the root CLAUDE.md, .claude/, an unselected team). A tool error code of WORKSPACE_PROPOSE_LEARNING. | No |
suggestion_adds_link | 422 | Claude proposed text that links to a site the file does not already use. A tool error code of WORKSPACE_PROPOSE_LEARNING. | No |
workspace_file_not_editable | 422 | The file can't be edited directly (.claude/ rules and settings, governance/CHANGELOG.md, an unselected team's files, unknown paths). | No |
workspace_file_adds_import | 422 | A direct edit adds an @ import (or the summary has one). Keep only the imports the file already has. | No |
workspace_file_adds_placeholder | 422 | A direct edit adds a new {{KEY}} or stray {{ / }}. Open placeholders may stay; put new values in the intake. | No |
workspace_file_contains_secret | 422 | The edited text or summary contains something that looks like a key, token or password. | No |
workspace_file_too_long | 422 | The edited CLAUDE.md would exceed 200 lines, or the file 64 KB. Move detail to a context file. | No |
workspace_file_exists | 409 | Adding a file whose path is already in the AI workspace. Open and edit it instead. | No |
workspace_skill_invalid | 422 | A skill without frontmatter, whose name is not its folder, with no description, or over 500 lines (ADR 0040). | No |
website_invalid | 422 | Not a public website address. Enter it like acme.com. | No |
onboarding_turn_limit | 422 | The setup chat's 8 answers are used. Check the values and save. | No |
message_contains_secret | 422 | A setup message or check-in answer looks like a key, token or password. Nothing was sent to Claude. | No |
intake_value_adds_import | 422 | An AI workspace intake value adds an @ import. details.key names it. Add imports by editing the file. | No |
intake_value_contains_secret | 422 | A setup draft value looks like a key, token or password. details.key names it. | No |
rate_limited | 429 | Too many requests. Wait Retry-After seconds. See Rate limits. | Yes |
quota_exceeded | 429 | The organization used its monthly tool executions. See below. | Next month, or upgrade |
ai_budget_exhausted | 429 | The organization used this month's Claude allowance. details.resets_at says when it resets. | Next month |
internal_error | 500 | Something went wrong on our side. | Yes |
upstream_unavailable | 502 | A provider (or the payment provider) did not answer. | Yes |
remote_mcp_unavailable | 502 | A remote MCP server could not be used while creating an auth config or refreshing tools. details: { code, detail_code }. | Sometimes |
model_refused, model_error, model_timeout, draft_invalid | 502 | Claude declined, failed, timed out or gave unusable output for a setup message or check-in answer. | Yes |
ai_busy | 503 | Too many Claude calls on the server right now. Honour Retry-After. | Yes |
Account choice in Claude (MCP tool errors)
On the managed "all connected apps" MCP server, tools of an app with several accounts take an
optional use_account argument. Two tool errors (isError: true, so the model sees them) belong to
it:
| Code | Meaning |
|---|---|
account_required | The member has no own account of the app and several shared ones: name one with use_account. |
unknown_account | use_account names no current account (for example after a rename). The message lists the valid choices. |
Details shapes
insufficient_scope and tool_not_allowed
{ "required": "trigger:write" }{ "tool": "GITHUB_DELETE_REPOSITORY" }Both come only with API keys. A key's access is fixed when it is created: create a new key with the access you need. See API keys.
owns_organizations
{ "organizations": [{ "id": "org_...", "name": "Acme", "slug": "acme" }] }Make someone else an owner of each and leave, or delete them, then delete your account again.
validation_error
{
"formErrors": [],
"fieldErrors": { "arguments": ["Expected object"], "Idempotency-Key": ["Invalid key"] }
}fieldErrors maps a field (or a header name) to its messages. formErrors holds problems that
belong to no single field.
rate_limited
{ "retry_after": 2, "policy": "execute", "scope": "project", "limit": 50 }retry_after equals the Retry-After header, in seconds. scope is ip, project, user or
organization (the invite_send policy counts per organization).
quota_exceeded
{
"metric": "tool_executions",
"limit": 10000,
"used": 10000,
"plan": "hobby",
"resets_at": "2026-11-01T00:00:00.000Z"
}There is no Retry-After: retrying before resets_at fails the same way. Upgrade the plan or wait.
limit_reached
{ "resource": "projects", "limit": 1, "plan": "hobby" }resource is projects or triggers for plan limits; plan is only present for those, and only
when billing is enabled. The fixed safety limits use the same code with api_keys, auth_configs,
mcp_servers, mcp_user_tokens, members (members plus pending invitations),
ai_workspace_suggestions (pending suggestions) or automations (100 per project). Publishing an
automation creates a trigger, so it can also answer triggers. Existing objects keep working; only
new ones are refused.
in_use
{ "mcp_servers": [{ "id": "mcp_...", "name": "Support agent" }] }The details name what still holds the object:
| Deleted object | details |
|---|---|
| Auth config | mcp_servers (pinned by these servers; unpin it first) |
| Auth config | connected_accounts_count (completed accounts; pass delete_connected_accounts=true to delete them. Open and failed connect attempts never block the delete and are removed with the auth config) |
| Webhook endpoint | triggers_using (triggers that deliver to it) |
automation_invalid
{
"issues": [
{
"severity": "error",
"code": "unknown_path",
"path": "steps.0.input.text",
"message": "The trigger has no field \"subjct\". Pick a field from the list."
}
]
}path points into the automation's graph and message says how to fix it. Only issues with
severity: "error" block publishing; the issue codes are listed in
Automations.
draft_conflict and managed_by_automation
{ "current_revision": 4 }{ "automation_id": "aut_..." }draft_conflict means someone else saved the draft: read the automation again and send your
change with the new expected_draft_revision. managed_by_automation comes from the trigger
routes (PATCH, DELETE, enable, disable, rotate secret, test event, and redeliver of its
deliveries): edit, pause or delete the automation instead.
idempotency_replay_unavailable
{ "original_status": 200 }The first request finished with original_status, but its response cannot be replayed. Look the
result up in the logs (for tool executions) or list the objects instead of retrying with a new key.
invalid_suggestion_block
Pasted text ({ "text": "..." }) without a usable block lists the problem per block (block is
0-based, -1 when no block was found):
{ "blocks": [{ "block": 0, "message": "Not valid JSON (Unexpected token)." }] }A malformed change lists its Zod issues by 0-based change index:
{ "changes": [{ "index": 1, "issues": [{ "path": "before", "message": "replace needs before" }] }] }Suggestion checks (422)
before_not_found, before_ambiguous, suggestion_invalid, suggestion_adds_import,
suggestion_contains_secret and suggestion_too_long name the change that failed:
{ "index": 0 }A request is all or nothing: when one change fails, no suggestion is created.
From Claude, WORKSPACE_PROPOSE_LEARNING reports the same codes, plus suggestion_file_not_allowed
and suggestion_adds_link, in a tool error rather than an HTTP status. Its structuredContent
lists every refused change:
{
"code": "changes_invalid",
"message": "No updates were sent. Change 1: CLAUDE.md: The root CLAUDE.md cannot be changed from Claude; tell the person what should change.",
"errors": [
{
"index": 0,
"code": "suggestion_file_not_allowed",
"message": "The root CLAUDE.md cannot be changed from Claude; tell the person what should change."
}
]
}The whole call can also fail with rate_limited, limit_reached or member_limit_reached (25
pending suggestions from Claude per member). See
Use your workspace in Claude.

