Skip to content

Error Codes

All API errors include a code field that identifies the specific error type. Use this reference to understand and resolve errors.

Error Response Format

json
{
  "error": "Human-readable error description",
  "code": "ERROR_CODE",
  "statusCode": 400
}

Authentication Errors

CodeHTTP StatusDescriptionResolution
UNAUTHORIZED401No valid authentication token providedSign in again; the JWT may have expired
TOKEN_EXPIRED401The JWT has expiredRefresh the page to obtain a new token
TOKEN_REVOKED401The JWT has been revoked (logout from another device)Sign in again
INVALID_TOKEN401The token is malformed or invalidClear cookies and sign in again
ADMIN_REQUIRED403The endpoint requires admin privilegesOnly admin users can access this endpoint
TERMS_NOT_ACCEPTED403User has not accepted the terms of serviceCall POST /auth/accept-terms first

Rate Limiting Errors

CodeHTTP StatusDescriptionResolution
RATE_LIMITED429Too many requests in the time windowWait and retry; check the Retry-After header
OUTGOING_RATE_LIMITED429Too many outgoing tool calls to a site (10/min per domain)Wait 60 seconds before retrying

Credit and Billing Errors

CodeHTTP StatusDescriptionResolution
NO_CREDITS402Insufficient credit balance for the requested operationPurchase credits or enable auto top-up on the Billing page
NO_PAYMENT_METHOD402No payment method on file for a purchaseAdd a card on the Billing page
PAYMENT_FAILED402The payment charge was declinedCheck your card details or use a different payment method
SUBSCRIPTION_PAST_DUE402Subscription payment is overdueUpdate your payment method on the Billing page

Tier and Access Errors

CodeHTTP StatusDescriptionResolution
TIER_REQUIRED403The feature requires a higher subscription tierUpgrade your plan on the Billing page
FEATURE_LIMIT_REACHED403You have reached the limit for this feature on your tier (e.g., max agents, max sites)Upgrade to a higher tier or remove unused items
WORKSPACE_REQUIRED403The operation requires a Team plan workspaceUpgrade to the Team plan

Session Errors

CodeHTTP StatusDescriptionResolution
INVALID_SESSION400The session token is invalid or expiredCreate a new session via POST /sessions
SESSION_NOT_FOUND404No session found with the provided tokenThe session may have expired; create a new one
SESSION_EXPIRED410The session has expiredCreate a new session

Chat Errors

CodeHTTP StatusDescriptionResolution
CHAT_TIMEOUT504The AI response took too long (90-second timeout)Try again with a simpler prompt or a faster model
STREAM_ABORTED499The client disconnected during streamingNo action needed; the partial response is not saved
MODEL_ERROR502The AI provider returned an errorTry a different model or wait and retry
TOOL_EXECUTION_ERROR502A tool call to an external site failedCheck the site's status; the tool endpoint may be down

Vault Errors

CodeHTTP StatusDescriptionResolution
TOKEN_EXISTS409A token for this site already exists in the vaultUse PATCH to update the existing token, or delete it first
VAULT_LIMIT_REACHED403Maximum sites in vault reached for your tierRemove unused sites or upgrade your plan
MANIFEST_NOT_FOUND404Could not fetch the manifest from the site URLVerify the URL is correct and the manifest is published
MANIFEST_INVALID422The manifest JSON is malformed or missing required fieldsFix the manifest; see the Manifest Format reference

Agent Errors

CodeHTTP StatusDescriptionResolution
AGENT_NOT_FOUND404No agent found with the provided IDCheck the agent ID
AGENT_LIMIT_REACHED403Maximum agents reached for your tierDelete unused agents or upgrade
RUN_NOT_FOUND404No run found with the provided IDCheck the run ID
RUN_NOT_CANCELLABLE400The run is not in a cancellable state (already completed or failed)No action needed
AGENT_ALREADY_RUNNING409The agent already has an active runWait for the current run to finish

Webhook Errors

CodeHTTP StatusDescriptionResolution
WEBHOOK_SECRET_INVALID401The X-Webhook-Secret header does not matchVerify the webhook secret in the agent configuration
WEBHOOK_PAYLOAD_INVALID422The request body does not match the webhook schemaCheck the payload format against the agent's webhook schema

Validation Errors

CodeHTTP StatusDescriptionResolution
VALIDATION_ERROR400Request body failed Zod schema validationCheck the error details for which fields are invalid
INVALID_URL400A provided URL is not validEnsure URLs include the protocol (https://)
NOT_FOUND404The requested resource does not existCheck the ID or path

Workspace Errors

CodeHTTP StatusDescriptionResolution
WORKSPACE_NOT_FOUND404No workspace found with the provided IDCheck the workspace ID
PERMISSION_DENIED403You do not have the required permission in this workspaceContact the workspace admin for access
MEMBER_NOT_FOUND404The user is not a member of this workspaceInvite them first
ROLE_CHANGE_FORBIDDEN403Cannot change the owner's roleOwnership transfer is not supported via this endpoint

WebMCP Master