Errors
Every failed request returns one JSON format. Branch on the code, and read the fix.
For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.
#The error format
{
"error": {
"code": "unauthorized",
"message": "The API key is missing, malformed, revoked or unknown.",
"fix": "Send a valid key in the Authorization header as \"Bearer <key>\". If the key was revoked, create a new one and retry.",
"docs_url": "/docs/errors#unauthorized",
"retryable": false,
"request_id": "req_..."
}
}| Field | Type | Required | Description |
|---|---|---|---|
error.code | string | yes | Stable machine-readable code from the table below. Branch on this, never on the message. |
error.message | string | yes | What went wrong, for this request. |
error.fix | string | yes | What to do next. |
error.docs_url | string | yes | Link to the entry for this code on the errors page. |
error.retryable | boolean | yes | Whether sending the same request again can succeed. |
error.request_id | string | yes | Quote this when contacting support. |
The message and fix for a given request can be more specific than the text below, which is the generic wording for each code. Never branch on message text.
#unauthorized
- HTTP status: 401
- Retryable: no
- Meaning: The API key is missing, malformed, revoked or unknown.
- What to do: Send a valid key in the Authorization header as "Bearer <key>". If the key was revoked, create a new one and retry.
#forbidden
- HTTP status: 403
- Retryable: no
- Meaning: This API key is not allowed to make this request.
- What to do: Use a key from an account that has access to this product, or ask the account owner to grant access.
- In this API: A read key called a route that needs a write key. It is also returned when the plan's IMAP and SMTP mailbox cap is reached, for a protected record, for an autopilot action while the kill switch is on, and for an autopilot approval attempted with an API key where a person must approve.
#insufficient_credits
- HTTP status: 402
- Retryable: no
- Meaning: The account does not have enough credits for this lookup.
- What to do: Add credits to the account, then retry. Nothing was charged for this request.
- In this API: A route that spends credits (prospect sourcing, email verification, autopilot approval) needs more than the account has. The message says how many were needed and how many are available, and nothing is charged.
#plan_limit
- HTTP status: 402
- Retryable: no
- Meaning: The current plan does not allow this.
- What to do: Change to a plan that includes it, or reduce usage to stay within the plan, then retry.
- In this API: Part of the shared set. No route returns it today: caps on sending and contacts show up as a skipped send or a refused add, not as this code.
#subscription_required
- HTTP status: 402
- Retryable: no
- Meaning: This needs an active subscription.
- What to do: Subscribe from the billing page of the dashboard, then retry.
- In this API: Part of the shared set. No route returns it today: an account with no plan stores no contacts, connects no IMAP mailbox and sends nothing, and the routes that need one say so in their message.
#trial_expired
- HTTP status: 402
- Retryable: no
- Meaning: The free trial has ended.
- What to do: Subscribe from the billing page of the dashboard to keep using the service.
- In this API: Part of the shared set. No route returns it today: once a trial ends without a payment the account sends nothing until it subscribes.
#trial_allowance_exhausted
- HTTP status: 402
- Retryable: no
- Meaning: The trial allowance is used up.
- What to do: Nothing was charged. Start your plan from the billing page ("Start my plan now") to keep going; the plan is only charged when you do.
- In this API: A route that spends credits (prospect sourcing, email verification, autopilot) was called while the trial was running and its credits were used up. Nothing is charged and the trial keeps running. POST /v1/billing/start-plan, the customer's own click, is the way on.
#rate_limited
- HTTP status: 429
- Retryable: yes
- Meaning: Too many requests for this API key.
- What to do: Wait the number of seconds in the Retry-After header, then retry. Spread requests out to stay under the X-RateLimit-Limit value.
- In this API: Also returned when too many autopilot runs are created within 24 hours.
#invalid_input
- HTTP status: 400
- Retryable: no
- Meaning: The request input is invalid.
- What to do: Correct the field named in the message and resend. Each product input schema is in the OpenAPI document. Nothing was charged.
- In this API: Also returned for state conflicts inside a campaign or autopilot run (for example a second run created while one awaits approval) and for a Stripe event that cannot be applied to its account.
#unknown_product
- HTTP status: 404
- Retryable: no
- Meaning: No product exists at this path.
- What to do: Check the product id in the URL against the product list in the OpenAPI document or llms.txt.
- In this API: In this API it also means an id was not found inside your account, for example an API key or a campaign id. Ids from another account look the same as ids that do not exist.
#not_found
- HTTP status: 404
- Retryable: no
- Meaning: Nothing exists at this address.
- What to do: Check the path and any ids in it against the API reference, then retry.
- In this API: Returned by POST /v1/billing/portal when the account has no Stripe customer yet, because a checkout creates it.
#method_not_allowed
- HTTP status: 405
- Retryable: no
- Meaning: This endpoint does not accept that HTTP method.
- What to do: Use the method named in the Allow response header (lookup endpoints and /v1/mcp accept POST).
#payload_too_large
- HTTP status: 413
- Retryable: no
- Meaning: The request body is too large.
- What to do: Send one lookup input per request and keep the JSON body small. Split large lists into separate requests.
- In this API: Request bodies have a size limit; the Stripe webhook body is limited to 1 MB.
#conflict
- HTTP status: 409
- Retryable: no
- Meaning: The request conflicts with the current state of the resource.
- What to do: Fetch the resource again, check its current state, then resend if the change still applies.
- In this API: Returned by POST /v1/billing/checkout when the account already has a subscription.
#signature_invalid
- HTTP status: 400
- Retryable: no
- Meaning: The request signature is missing or does not match.
- What to do: Sign the exact raw request body with the signing secret this server was given and send the signature header.
- In this API: Returned by POST /v1/billing/webhook when the Stripe signature is missing or does not match the exact raw body. Nothing is written.
#provider_unavailable
- HTTP status: 503
- Retryable: yes
- Meaning: The data source for this product is unavailable right now.
- What to do: If retryable is true, retry later with exponential backoff. If it is false, this product is not configured on this server and retrying will not help. Nothing was charged.
- In this API: A capability this server cannot use returns this code with retryable false and names the reason. GET /v1/capabilities lists the capabilities your account can use. Checkout also returns it when Stripe or the return site is not configured on the server.
#internal_error
- HTTP status: 500
- Retryable: yes
- Meaning: An unexpected error occurred.
- What to do: Retry once after a short wait. If it fails again, report the request_id to support. Nothing was charged.