Skip to content

BillingErrors and limits

Docs

Billing

Errors and limits

A failed call costs nothing. Every error is a problem object with a type, a status and a detail, so an agent can act on it without parsing prose.

Format#

REST answers application/problem+json (RFC 9457). MCP returns the same object as an error result, in structuredContent. Each has type (a link to its entry on the errors page), title, status, detail and, when a call was opened, call_id. Some add fields of their own.

402 insufficient-funds
{
  "type": "https://trysnow.ai/errors#insufficient-funds",
  "title": "Insufficient funds",
  "status": 402,
  "detail": "This call needs 5 credits ($0.005) and the wallet has 2 credits ($0.002) available.",
  "call_id": "call_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
  "needed_credits": 5,
  "needed_usd": 0.005,
  "available_credits": 2,
  "available_usd": 0.002
}

topup_url is added for API keys and for apps SnowAI trusts with it. A chat app gets none and tells the person to open the Billing page.

What to do#

StatusTypeWhat to do
401unauthenticatedThe request had no valid token or API key. Connect again, or send Authorization: Bearer <key>.
400invalid-requestAn argument is missing or wrong; detail names it. Fix the call and send it again.
404not-foundThe tool, page or article does not exist, or is not in this organization. detail says which.
402insufficient-fundsThe wallet cannot cover this call. needed_credits and available_credits (and their _usd twins) say by how much. Tell the user, then retry with the same idempotency_key.
403forbiddenThe call is not allowed as asked, for example reading Search Console before Google is connected. detail says what is missing and may include a link for the user.
403spend-cap-reachedThe call would pass the wallet's monthly cap or the API key's cap. The user can raise the wallet's cap at limits_url; a key's cap is set when the key is made.
403account-closedThe account was closed, usually after 90 days unused without ever buying credits. Contact support to reopen it.
403account-suspendedThe wallet is frozen while a payment is reviewed. Contact support.
409idempotency-conflictEach idempotency_key belongs to one set of arguments. Use a new key for a different call.
422max-cost-too-lowminimum_credits is the least a useful call can cost (1,000 credits = $1). Raise max_credits or ask for less.
428approval-requiredThe call may cost more than the wallet's approval threshold. Ask the user, then call again with the same arguments and the confirmation_token.
429rate-limitedToo many requests. Wait for Retry-After seconds, then retry.
502upstream-errorThe data source behind the tool failed. Nothing was charged. Retry later.
504upstream-timeoutThe data source did not answer before the deadline. Nothing was charged. Retry, or ask for less (a smaller limit or depth).
503unavailableThe data source is unreachable for a moment. Nothing was charged. Retry later.
500internalSomething broke on our side. Retry, and contact support with the call_id if it keeps happening.

Limits#

  • A call runs for at most 50 seconds by default. Each tool's deadline is in GET /tools.
  • Per organization, REST and MCP together allow 240 requests and 120 tool calls a minute, with 10 calls running at once and 5 on any one source. Past a limit the answer is HTTP 429 rate-limited with retry_after_seconds and a Retry-After header.
  • Three articles can be written at once per organization.
  • List tools take a limit. The hold is sized by it, and max_credits lowers it.