Skip to content
Toolwire

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.

CodeStatusMeaningRetryable
bad_request400The request is malformed (for example a body that is not JSON).No
validation_error400A field is missing or invalid. details.fieldErrors names each field.No
confirmation_required400A destructive call needs an explicit confirmation parameter.No
toolkit_mismatch400The connected account belongs to another toolkit than the tool or trigger.No
trigger_setup_failed400The provider refused the trigger's setup (for example a missing repository).No
automation_invalid400The automation's draft has problems to fix before publishing or a test run. details.issues lists them. See Automations.No
invalid_credentials400The provider rejected an API key you submitted.No
not_shared400Only shared connected accounts have a name to rename. See Connect accounts.No
invalid_suggestion_block400Pasted text has no valid workspace-suggestions block, or a change is malformed. See below.No
invalid_password400The 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_code400The authenticator or backup code is wrong or was already used.No
unauthorized401No valid session or Authorization header.No
invalid_api_key401The API key is unknown, revoked or expired.No
invalid_signature400/401A webhook signature did not verify.No
forbidden403Your role does not allow this action. See Members and roles.No
account_not_yours403A 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_disabled403The MCP server is disabled.No
insufficient_scope403The API key lacks the permission this route needs. details.required names it. See API keys.No
shared_connection_restricted403Only the member who connected a shared account, an owner, an admin or an API key may rename, reconnect or delete it.No
share_restricted403Sharing 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_allowed403The API key's tool restriction excludes this tool. details.tool names it. See API keys.No
reauthentication_required403You sign in with GitHub only and signed in more than 10 minutes ago. Sign out and in again. See Account.No
invitation_email_mismatch403You are signed in with another address than the invitation was sent to.No
email_not_verified403Verify your email address before accepting an invitation or turning on two-factor authentication.No
two_factor_required403The organization requires two-factor authentication. See Two-factor.No
not_found404The object does not exist or is not in your project.No
tool_not_found404Unknown tool slug.No
connected_account_not_found404No account matches the user_id or connected_account_id.No
trigger_type_not_found404Unknown trigger slug.No
connect_session_not_found404The connect link is unknown or has expired.No
automation_template_not_found404Unknown automation template slug.No
conflict409The object already exists or changed in between.No
limit_reached409A count limit (projects, triggers, API keys, ...) is reached. See below.No
label_taken409Another 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_limit409The project already shares 10 accounts of this app. Delete one or let a failed one go.No
no_connector409Stop 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_use409Stop 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_use409The object is still referenced: an auth config with accounts or MCP pins, a webhook endpoint in use.No
auth_config_disabled409The auth config is disabled.No
managed_app_unavailable409The platform's OAuth app for this toolkit is not configured.No
connection_not_active409The connected account is expired, revoked or not finished. Reconnect it.No
not_refreshable409The account has no refresh token.No
refresh_failed409The provider rejected the refresh token. Reconnect the account.No
credentials_unreadable409Stored credentials could not be decrypted. Reconnect the account.No
connection_busy409The account is being refreshed or updated right now.Yes
trigger_mode_unavailable400/409Webhook mode is not available (for example the GitHub App is missing). 400 on create, 409 on enable.No
delivery_in_progress409The delivery is still pending or being delivered.Yes
idempotency_in_progress409A request with the same Idempotency-Key is still running. Honour Retry-After.Yes
idempotency_replay_unavailable409The first response was too large to store. Find the result in the logs.No
billing_disabled409Billing is turned off on this deployment.No
already_subscribed409The organization already has a subscription. Change plans in the billing portal.No
billing_not_set_up409The organization has no billing customer yet. Start a checkout first.No
last_owner409The change would leave the organization without an owner. Make someone else an owner first.No
already_member409The invited address already belongs to a member.No
invitation_exists409A pending invitation for this address exists. Resend it instead.No
invitation_not_pending409The invitation was already accepted, declined or revoked.No
revision_conflict409The AI workspace changed since you loaded it. Reload, then save again.No
suggestion_stale409The text a suggestion replaces is no longer in the file exactly once. Reject it or suggest a fresh change.No
suggestion_not_pending409The suggestion was already approved, rejected or withdrawn.No
two_factor_already_enabled409Two-factor authentication is already on for your account.No
two_factor_not_enabled409Two-factor authentication is off for your account.No
two_factor_enrollment_not_started409Verify was called without a setup in progress. Start the setup again.No
password_not_set409Your account has no password (GitHub sign-in only). Set one first.No
password_already_set409Your account already has a password. Change it with your current password instead.No
slug_taken409The slug is used by another organization, or (custom MCP apps) overlaps another app's slug; details.conflicts_with names that app.No
subscription_active409The organization still has a live subscription. Cancel it in Billing, then delete the organization. details.manage_url_hint is "billing".No
owns_organizations409You still own organizations, so your account can't be deleted. details.organizations lists them. See Account.No
custom_mcp_app_in_use409Projects still have auth configs for the custom MCP app. details.projects lists them. See Remote MCP apps.No
claude_connection_disabled409The project's managed MCP server is disabled, so no agent link can be created. See Connect to agents.No
onboarding_in_progress409Claude is already drafting the AI workspace profile for this organization. details.session_id names the setup. See AI workspace.Yes
onboarding_busy409Claude is still answering the last setup message.Yes
onboarding_not_ready409The setup is not ready for this (still drafting, saved, failed, discarded or expired).No
checkin_closed409The check-in is already answered, dismissed or expired.No
checkin_not_answered409A check-in is confirmed before it was answered.No
checkin_unavailable409This period's check-in can't be started. details.reason: cadence_off, intake_not_saved, intake_too_new or no_questions.No
draft_conflict409The automation's draft changed since you read it. details.current_revision has the new revision: reload, then save again.No
not_published409The automation was never published, so it can't be enabled or re-run. Publish it first.No
run_in_progress409The automation run is still queued or running. Cancel it or wait, then re-run.Yes
run_finished409The automation run already finished, so it can't be canceled.No
managed_by_automation409The trigger belongs to an automation. Change the automation instead. details.automation_id names it.No
gone410The object existed but is no longer available.No
invitation_expired410The invitation link is older than 7 days. Ask for a new one.No
payload_too_large413The 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_type415Sign-in, password-reset and verification-email requests must send Content-Type: application/json.No
idempotency_key_reused422The Idempotency-Key was used with a different request.No
suggestion_invalid422The file can't be changed through a suggestion, or the new text contains {{ or }}.No
before_not_found422The before text of a replace is not in the current file.No
before_ambiguous422The before text appears more than once. Include more of the surrounding text.No
suggestion_adds_import422The change adds an @ import. Imports change what Claude loads and are not accepted.No
suggestion_contains_secret422The change contains something that looks like a key, token or password.No
suggestion_too_long422CLAUDE.md would exceed 200 lines, or a file 64 KB. Move detail to a context file.No
suggestion_file_not_allowed422Claude 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_link422Claude 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_editable422The file can't be edited directly (.claude/ rules and settings, governance/CHANGELOG.md, an unselected team's files, unknown paths).No
workspace_file_adds_import422A direct edit adds an @ import (or the summary has one). Keep only the imports the file already has.No
workspace_file_adds_placeholder422A direct edit adds a new {{KEY}} or stray {{ / }}. Open placeholders may stay; put new values in the intake.No
workspace_file_contains_secret422The edited text or summary contains something that looks like a key, token or password.No
workspace_file_too_long422The edited CLAUDE.md would exceed 200 lines, or the file 64 KB. Move detail to a context file.No
workspace_file_exists409Adding a file whose path is already in the AI workspace. Open and edit it instead.No
workspace_skill_invalid422A skill without frontmatter, whose name is not its folder, with no description, or over 500 lines (ADR 0040).No
website_invalid422Not a public website address. Enter it like acme.com.No
onboarding_turn_limit422The setup chat's 8 answers are used. Check the values and save.No
message_contains_secret422A setup message or check-in answer looks like a key, token or password. Nothing was sent to Claude.No
intake_value_adds_import422An AI workspace intake value adds an @ import. details.key names it. Add imports by editing the file.No
intake_value_contains_secret422A setup draft value looks like a key, token or password. details.key names it.No
rate_limited429Too many requests. Wait Retry-After seconds. See Rate limits.Yes
quota_exceeded429The organization used its monthly tool executions. See below.Next month, or upgrade
ai_budget_exhausted429The organization used this month's Claude allowance. details.resets_at says when it resets.Next month
internal_error500Something went wrong on our side.Yes
upstream_unavailable502A provider (or the payment provider) did not answer.Yes
remote_mcp_unavailable502A 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_invalid502Claude declined, failed, timed out or gave unusable output for a setup message or check-in answer.Yes
ai_busy503Too 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:

CodeMeaning
account_requiredThe member has no own account of the app and several shared ones: name one with use_account.
unknown_accountuse_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 objectdetails
Auth configmcp_servers (pinned by these servers; unpin it first)
Auth configconnected_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 endpointtriggers_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.