Build

Errors and status codes.

What each refusal means, whether anything was charged, and what to do next.

On this page

A refused request has this shape, on every endpoint except the Messages format:

{ "error": { "message": "…", "type": "…", "param": null, "code": "…" } }

type is the class of error. code names the exact reason, or is null for a plain validation error. message says what to change. param names the request field at fault, or is null. A refusal below a minimum also carries minimum_usdf, the minimum in USDF. A 5xx answer carries request_id, also sent as the x-request-id header: quote it to support.

Four answers add to it or differ:

  • The Messages format (/v1/messages) answers in its own envelope, { "type": "error", "error": { "type": "…", "message": "…", "code": "…" } }. Its types follow the status: invalid_request_error (400, 405), authentication_error (401), billing_error (402), permission_error (403), not_found_error (404), request_too_large (413), rate_limit_error (429), overloaded_error (503), timeout_error (504) and api_error for the rest. The gateway's own code stays alongside.
  • A 402 quote, or a refused MPP credential, adds the quote and payment fields, and the problem fields type, title, status and detail.
  • An agent's request held for approval is answered 202 with the approval hold itself. See Approvals.
  • A stream that fails after it started sends the error as a data: event before [DONE].

What to retry:

  • Do not send a 400 again unchanged. A 402 or 403 clears only when its cause does: fund the balance, raise the cap, pay the quote, resume the key or confirm it's you. Then send the same request again.
  • Retry a 429 or 503 after Retry-After, in seconds.
  • A 502 or 504 was not charged, or was refunded, except a tool call its upstream billed (tool_upstream_error); the message says what was charged.

The statuses the gateway answers with, their error types, and whether anything was charged:

StatusMeaningWhat to do
202approval_requiredAn agent's request is above its approval threshold and waits for the owner. The body is the approval hold, not an error.Charged: NoWait for the decision, then send it again with x-approval-id.
400invalid_request_errorThe request is malformed or asks for something the model or endpoint does not do.Charged: NoFix the request. The message says what is wrong.
401authentication_errorNo key, a key the ledger rejects, or a missing, expired or signed-out session or read token.Charged: NoSend a valid credential.
402insufficient_quotapayment_requiredThe balance, a cap or a budget cannot cover the request (insufficient_quota), or a payment is needed or was refused (payment_required). A link above the balance has the type insufficient_balance.Charged: NoFund the balance, raise the cap, or pay the quote.
403invalid_request_errorpermission_errorauthentication_errorNot allowed: a paused key, a model or tool off the allowlist, a guardrail, someone else's resource, a credential of the wrong kind, or a sign-in too old for money or key changes (reauth_required, recent_link_hold).Charged: NoChange the key's settings, or use a credential that may.
404invalid_request_errorNo such model, route, receipt or resource for this credential.Charged: NoCheck the id. A routing policy no route meets is also a 404.
405invalid_request_errorThe method is not served on this path.Charged: NoUse the method the Allow header names.
408invalid_request_errorThe body arrived too slowly, or too little time was left to serve a paid call.Charged: NoSend it again.
409invalid_request_errorupstream_errorThe resource is not in a state that allows this: a taken slug, a pending deposit, a job not ready. A failed or expired batch job, and a failed video, have the type upstream_error.Charged: NoRead the message, wait or change the request, then retry.
410invalid_request_errorA batch result, a video clip or a link is no longer held or claimable.Charged: No; a result or clip was billed when it was madeResults and clips are kept for a limited time. Fetch them sooner.
413invalid_request_errorThe body is larger than the endpoint takes. The code is null, or upstream_rejected when the provider refused the size.Charged: NoSend a smaller body.
429rate_limit_errorA rate limit, an upload or job slot, or a payment already settling.Charged: NoWait for Retry-After, in seconds, then send it again.
451permission_errorThe API is not served in the caller's region (region_blocked), or sign-up, deposits and paid use are not offered in the caller's country (region_restricted).Charged: NoNothing to retry from there. The body's terms links the terms.
500server_errorThe gateway itself failed.Charged: NoRetry. The receipt shows any refund.
502upstream_errorserver_errorEvery eligible route failed, a payment's outcome is still unknown, or the ledger did not answer.Charged: No, or refundedRetry, or pick another model.
503service_unavailableserver_errorA model cannot serve right now, or a policy, setting or chain read did not answer.Charged: NoWait for Retry-After where given, or pick another model.
504upstream_errorNo provider answered before the deadline.Charged: NoRetry, or lower max_tokens.

Models with a zero-retention route use it by default. A model marked 'provider may keep data' is served by a provider that may keep request data; choosing it is your choice. GET /v1/models shows it as may_keep_data. Picking the model is the only opt-in.

The codes the gateway sends, by what you were doing. A refusal the ledger makes names its own reason as the code, and the message always says what to change.

Requests and models

Chat, text completions, the other modalities, batch jobs, tools and MCP calls.

CodeStatusWhat happenedWhat to do
attestation_unverified503A private request: no attested route of the model is verified now. Nothing was charged.Retry after Retry-After, or pick a model whose private is true.
audio_too_long400The file can hold more than four hours of audio.Split the file.
bad_multipart400The multipart body could not be parsed.Send a well-formed multipart body.
batch_expired409The batch job ended without a result.Nothing was charged. Submit it again.
batch_failed409The upstream failed the batch job.Nothing was charged. Submit it again.
batch_unavailable400 or 503This model, key or request cannot run as a batch job, or the gateway is not taking jobs right now (503).Use a model with batch rates, a key without no-logs, and no stream.
bodies_busy503The gateway is reading as many request bodies as it takes at once.Retry after Retry-After.
bodies_per_address429Too many request bodies at once from this address.Retry after Retry-After.
body_incomplete400The request body ended early.Send the whole body.
body_not_object400The body is JSON but not an object: an array, a string or a number.Send one JSON object.
body_timeout408The request body arrived too slowly.Send it again.
budget_unavailable503The key's budget could not be checked, so the request did not run. Nothing was charged.Retry after Retry-After.
caller_cancelledIn a receiptYour client closed the connection before any output reached it. Within the key's free early disconnects of the day nothing is charged: the receipt says failed_refunded with this reason and the hold goes back. Past them, what the provider produced is billed.Keep the connection open until the answer ends.
context_length_exceeded400The prompt, with the output budget the request runs at, does not fit the model's context window. A max_tokens above the model's max_output is not refused: the request runs at the model's limit, and the receipt's output_budget says so.Shorten the prompt, or lower max_tokens.
data_collection_denied409The request's data_collection ask conflicts with the key's or account's setting. Nothing was charged.Match the key's setting, or change it in the dashboard.
deadline_too_close408A paid MCP call had too little time left to serve. Nothing was settled.Call again.
endpoint_not_supported400A model on attested hardware serves chat completions only.Use POST /v1/chat/completions.
engine_unsupported400The web plugin's engine is not one this gateway serves.Leave engine out.
flex_unavailable400This model has no flex tier.Send the request without the flex tier.
gateway_restarting503The gateway is restarting and did not serve the request. Nothing was charged.Send it again.
guardrail_max_price403Every route of the model charges more than a guardrail's max_price allows. Nothing was charged.Pick a cheaper model, or raise max_price in the key's or the account's guardrails. GET /v1/guardrails shows both.
guardrail_model_not_allowed403The account's guardrail allowed_models does not include this model. Nothing was charged.Pick a model on the list, or add it to allowed_models with PATCH /v1/guardrails or on the dashboard's Guardrails tab.
guardrail_prompt_injection403The account's guardrail refused the prompt as a possible injection. Nothing was charged.Change the prompt, or loosen the guardrail.
guardrail_provider_not_allowed403A guardrail's allowed_providers or blocked_providers leaves no route that can serve the model. The rule is the key's own or the account's, and the message names which, its list and the routes it left out. Nothing was charged.Change the key's allowed routes with PATCH /v1/keys/{id} (guardrails.allowed_providers or guardrails.blocked_providers), or the account's with PATCH /v1/guardrails or on the dashboard's Guardrails tab. Both apply and the stricter wins: allow lists intersect and block lists add up. A list names providers or kinds of route (hosted, network, private). GET /v1/guardrails shows the rules.
guardrail_redact_too_large403The guardrail's redaction input is larger than it takes. Nothing was charged.Shorten the input.
guardrail_zdr_only403A guardrail's zdr_only leaves no route of the model with a verified zero data retention policy. Nothing was charged.Pick a model with a zero-retention route, or turn zdr_only off in the key's or the account's guardrails.
id_required400GET /v1/models/resolve was sent without id. Nothing was charged.Add ?id= with a model id.
input_references_required400The image model makes images in the style of reference images, and none were sent.Send them as input_references, as data URLs.
input_references_unsupported400The image model takes no style references.Leave input_references out.
input_too_long400The speech input is longer than the model takes.Shorten the input.
instructions_unsupported400The Responses API's instructions is not taken on this path.Send a system message instead.
invalid_input_references400input_references is not a list of image data URLs the model can read.Fix what the message names.
invalid_json400The body is not valid JSON. The message says where the parser stopped.Send one JSON object.
invalid_models400models is not an array of model ids, or names more models than a request may try.Send ids from GET /v1/models, no more than the message names.
invalid_parameter400A field or query parameter holds a value the endpoint does not take: more than 4 stop strings on chat completions, or one longer than 200 characters; a playground setting outside its range; a file list limit outside 1 to 1000, or an order other than asc. The message names the field. Nothing was charged.Fix the field the message names.
invalid_plugins400plugins is not an array, or a plugin's settings are malformed.Fix what the message names.
invalid_preset400The preset in model or preset is not a preset's name, the request names two presets, or the preset names no model and the request sends none.Fix what the message names.
invalid_reasoning400reasoning is not an object, or its effort, max_tokens, exclude or enabled has the wrong type or value.Fix the field the message names.
invalid_service_tier400service_tier is not cheapest, standard, priority or flex.Send one of those, or leave it out.
invalid_size400The image size is not WxH within the allowed range.Send a valid size.
invalid_transforms400transforms is not an array of strings, or names a transform that is not served. The one transform is middle-out.Send middle-out, or an empty array.
invalid_voice400The speech voice is not one the model serves.Use a voice the model names.
key_privacy_unavailable503The key's privacy flags could not be read, so nothing ran.Retry after Retry-After.
listing_not_found404No listing of the agents market has this id.Find the id with GET /v1/agents/market.
max_price_unsupported400max_price was sent to an endpoint not priced per token.Drop provider.max_price there.
missing_model400Chat completions, text completions or the Responses API: model was sent as an empty string, or left out where Auto is off. Nothing was charged. Where Auto is on, a request that leaves model out runs on Auto.Name a model from GET /v1/models, or leave model out where Auto is on.
model_not_found404No listed model has this id.See GET /v1/models.
model_unavailable503The model is listed but cannot serve right now.Retry later, or pick another model.
model_unverified503The model has not returned a verified result.Pick a verified model.
models_unsupported400This endpoint takes one model, not a fallback list.Send a single model.
no_route_for_policy404No route meets the request's provider preferences. Nothing was held.Relax the preferences.
not_found_error404The Messages API's envelope for no such model or resource.Check the id.
not_multipart400The endpoint takes multipart/form-data.Send the body as multipart.
not_ready404The batch job's result is not ready.Poll the job until it is done.
payment_with_key400An MCP call sent both a key and a payment.Send one.
plugin_unsupported400The request asks for a plugin this gateway does not serve. Nothing was charged.Send the request without it.
policy_unavailable503The key's or agent's policy could not be read, so nothing ran.Retry.
preset_unavailable503The request's preset could not be read. Nothing was charged.Retry shortly.
preset_version_not_found404The preset has no such version, or a shared preset does not give this account that version.Use a version GET /v1/presets/{slug}/versions lists, or the one the share gives.
price_ceiling_exceeded402The request's worst case is above its price ceiling. Nothing was held.Lower max_tokens, or raise the ceiling.
priority_unavailable400This model has no priority tier.Send the request without the priority tier.
private_batch_unavailable400A batch job cannot run on the private tier.Send it as a normal request.
private_unarmed503A private request: the model's attested routes are not connected on this gateway. Nothing was charged.Pick a model whose private is true.
quality_unsupported400The image quality is not one the model takes.Use the quality the message names, or leave it out.
reference_required400The image edit model works from a reference image beside the image edited, and none was sent.Send it as the multipart field reference_image.
reference_unsupported400The image edit model takes no reference image.Leave reference_image out.
response_format_unsupported400The images response_format is not b64_json. Images come back inline and nothing is stored, so there is no URL to give.Send b64_json, or leave it out.
result_expired410The batch result is no longer held.Results are kept 7 days. Fetch them sooner.
retention_required409A zero-retention ask no route of the model meets. Nothing was charged.Pick a model with a zero-retention route, or allow retention.
service_tier_needs_account400The priority and flex service tiers serve an account's requests, not requests paid per request.Send the request with an API key.
settings_unavailable503The account's routing defaults could not be read, so nothing ran.Retry.
smartest_needs_price_cap400The smartest mode needs a price cap in the request or the preset.Send price_cap.
smartest_needs_several_models400The smartest mode needs several models in scope to score.Name more models, or use another mode.
stream_cutIn a streamThe gateway restarted during the stream. Nothing was charged.Send the request again.
stream_format_unsupported400The speech stream_format is not audio.Send audio, or leave it out.
stream_interruptedIn a streamThe provider's stream ended before it closed the answer. What was produced is billed, and the receipt says partial.Send it again for the rest.
stream_unsupported400stream was sent to the images endpoint. Every image comes back in the one answer.Leave stream out.
token_input_unsupported400Embeddings input was sent as token ids.Send the text itself.
too_many_images400More than 16 images in one chat request.Send fewer images.
too_many_uploads429Too many uploads in progress.Retry after Retry-After.
tool_error500The tool failed. Nothing was charged.Retry.
tool_input_invalid400The input does not match the tool's input_schema.Fix the input. GET /v1/tools has the schema.
tool_input_rejected400 or the tool's 4xxThe tool's upstream refused the input, with its own status.Fix the input.
tool_not_found404No tool has this id.See GET /v1/tools.
tool_timeout504The tool's upstream did not answer in time. Nothing was charged.Retry.
tool_unavailable409The tool is disabled. Nothing was held.Use an enabled tool.
tool_upstream_error502The tool's upstream failed. A call the upstream billed is charged for it; the message says what was charged.Retry.
translation_unsupported400The model does not translate.Use a translation model.
unsupported_audio400The audio container cannot be bounded before the request runs.Convert to WAV, FLAC, MP3 or Ogg.
unsupported_format400The asked output format is not one the endpoint serves.Use the format the message names.
unsupported_parameter400functions or function_call was sent.Use tools and tool_choice.
upstream_rate_limited429The tool's upstream is rate limiting.Retry after Retry-After.
upstream_rejected400 or the provider's 4xxThe provider rejected the request itself. Chat and keyed modalities answer 400; video, batch jobs and modalities paid per request pass the provider's own 4xx through, 413 for example. Nothing is charged, and a payment is refunded in full.Fix the request.
upstream_timeout504No provider answered before the deadline. Nothing was charged. A music request gets this answer as JSON, not audio: its hold is refunded, and the answer carries its receipt with the status failed_refunded.Retry, or pick another model.
upstream_unavailable502Every eligible route failed. Nothing was charged.Retry, or pick another model.
variant_unsupported400The model's variant suffix is not one it serves.Use one of the variants the model names.
web_search_failed502The web search service answered without results. The search was paid, and the model was not called.Retry, or send the request without the web plugin.
web_search_retention400Web search sends the query to a search service that keeps its own records, so it does not run on a request that asks for zero retention or runs privately. Nothing was charged.Send the request without the web plugin, or without that ask.
web_search_unsupported400Web search runs on synchronous requests only, not on a batch job. Nothing was charged.Send it without batch, or without the web plugin.
wrong_endpoint400The model does not serve this endpoint.Use one of the endpoints the message names.
zero_retention_unavailable503The model has routes that keep no request data, so it is served on those alone, and none of them can take the request now. Nothing was charged.Retry later, or pick another model.

Video

Video jobs, polling and the clip.

CodeStatusWhat happenedWhat to do
aspect_ratio_unsupported400The model does not take this aspect_ratio, or takes none.Use one the message names, or leave it out.
gateway_restart503The gateway restarted before the clip was made or fetched. Nothing was charged.Send the request again.
image_required400The model makes video from a first frame.Send image as a PNG or JPEG data URL.
image_too_large400The first frame is too large.Send a smaller image.
image_unsupported400The model makes video from text only.Leave image out.
invalid_image400image is not a PNG or JPEG data URL that can be read.Send a PNG or JPEG data URL.
invalid_seconds400seconds is not a whole number the model takes.Use the range the message names.
negative_prompt_too_long400negative_prompt is longer than the model takes.Shorten it.
negative_prompt_unsupported400The model takes no negative_prompt.Leave it out.
prompt_too_long400The prompt is longer than the model takes.Shorten the prompt.
read_token_required401A video job paid per request needs its read token.Send Authorization: Bearer <read_token>.
restarting503This gateway instance takes no new video jobs while it restarts.Retry shortly.
size_unsupported400size is not taken: each model is sold at one resolution.Send aspect_ratio instead.
too_many_video_jobs429The key has two unbilled video jobs, or the gateway is at capacity.Fetch or wait for one first.
unsupported_resolution400resolution is not the model's one resolution.Send the model's resolution, or leave it out.
video_expired410The clip is no longer held.Clips are kept 30 minutes. Fetch them sooner.
video_failed409The video job failed. Nothing was charged.Start a new job.
video_not_ready409The clip is still being made.Poll the job until it is completed.

Limits, caps and balances

Rate limits, spend caps, budgets, allowlists and pauses, on keys and agents alike.

CodeStatusWhat happenedWhat to do
address_blocked429Too many requests with keys that do not open this API came from this address, so it is refused for a while.Wait for Retry-After, then send a valid key.
card_velocity429Card top-ups are paused for this account for now. A purchase already paid is still credited.Wait for Retry-After, or contact support.
insufficient_balance402The balance cannot cover the request's hold, a payment or a link.Fund the balance, or lower max_tokens.
key_budget_exceeded402The request's hold, a tool call or a payment is above what is left of the key's own budget (the most it may ever spend). The balance is not what refused it, and nothing was charged.Raise or clear the key's budget, use another key, or lower max_tokens.
key_creation_limit429The account made the most keys it can in this window.Wait, or revoke a key you no longer use.
key_paused403The key is paused.Resume it with paused set to false.
model_not_allowed403The key's or the agent's allowlist does not include this model.Add it to the allowlist, or pick another model.
rate_limited429Over a rate limit.Retry after Retry-After.
request_cap_exceeded402The request's worst case is above the agent's per-request cap.Lower max_tokens, or raise the cap.
rpc_day_cap429The chain read endpoint's daily cap for this caller.Retry tomorrow, or read through your own endpoint.
rpc_gas_cap400The chain read's gas is above the endpoint's cap.Lower the call's gas.
rpc_logs_bounds400The logs read's block range is outside the endpoint's bounds.Read a smaller range.
rpc_method_not_allowed403The chain read endpoint does not serve this method.Use a read method.
rpc_origin_not_allowed403The chain read endpoint does not serve this origin.Read from an allowed origin.
rpc_rate_limited429Over the chain read endpoint's rate limit.Retry after Retry-After.
spend_limit_exceeded402A key's or agent's hourly, daily or monthly cap is reached.Wait for the window to move on, or raise the cap.
tool_not_allowed403The agent's tool allowlist does not include this tool.Add it, or use another tool.

Pay per request

x402 and MPP payments on the /x402 paths and keyless MCP calls.

CodeStatusWhat happenedWhat to do
agent_identity_invalid400The x-erc8004-agent value is malformed, or names another registry.Send the agent id, or the registry this gateway checks.
agent_identity_not_payer403The payer is not the named agent's owner or wallet.Pay from the identity's wallet, or drop the header.
agent_identity_unknown400The x-erc8004-agent id is not in the registry.Check the agent id.
authorization_used402This payment signature was already used.Sign a new payment.
funds_lease503Payments and gasless deposits pause briefly while gateway instances hand over. Nothing was charged.Retry after Retry-After.
insufficient_funds402The payer's wallet cannot fund the payment. For one minute after this or permit2_allowance_required, the address is refused in that asset with this code and Retry-After.Hold enough of the asset, then pay again. The other asset is not affected.
invalid_address400The wallet address is not a valid hex address.Send the wallet's full address.
invalid_method400The way to pay is not one this gateway offers.Send a method the methods list names.
mpp_invalid_challenge402The MPP challenge was not issued here, was altered, or is already paid.Use a fresh challenge from a new 402.
mpp_invalid_payload402The MPP payload does not have the shape its type needs.Check the credential's payload.
mpp_malformed_credential402The MPP credential could not be read.Send base64url JSON with challenge, payload and source.
mpp_payment_expired402The MPP challenge or signature has expired.Ask for a new challenge.
payer_rate_limited429Too many paid requests a minute from this payer. Nothing was charged.Retry after Retry-After.
payment_already_resolved409This payment was already settled another way, for example refunded. Nothing was served.Sign a new payment.
payment_conflict400Both an x402 payment and an MPP credential were sent, or two credentials.Send one.
payment_in_flight429Another payment from this address is still settling.Retry after Retry-After.
payment_invalid402The payment does not verify.Check the typed data and the accept signed.
payment_refused409The ledger refused a payment the gateway was to make for you, such as for a web search or a pay-per-use tool. Nothing was paid.Fix what the message names, then send the request again.
payment_replayed409This payment was already received. It is never settled or served twice, and nothing more was charged.Sign a new payment to send the request again.
payment_state_unread503The payment's state could not be read from the chain. It was not settled, and nothing was charged.Retry after Retry-After.
payment_unrecorded503The payment could not be recorded, so it was not settled and nothing was charged.Retry shortly. If the retry is refused as payment_replayed, sign a new payment.
payments_busy429The gateway is settling at capacity.Retry after Retry-After.
permit2_allowance_required402USDF is not approved to the signature-transfer contract.Approve once, then pay again after a minute. Paying in USDG is not affected.
pool_short409The program's pool cannot cover this right now.Retry later.
quote_below_refund_gas400The quote is below what refunding it would cost in gas.Send a larger request, or pay with a key.
quote_mismatch402The payment does not match the current quote.Ask for a new quote.
refund_gas_unread503The gas of returning a payment could not be read from the chain, so no payment is asked for. Nothing was charged.Retry after Retry-After.
resource_mismatch402The payment was made for another resource's quote.Pay the quote this request's 402 gives.
settlement_failed402The transfer did not settle. Nothing was served.Pay again.
settlement_unconfirmed502The transfer's outcome is still unknown. Nothing was served; if it lands, it is refunded automatically.Keep the transaction the message names. Pay again if you need the answer now.
x402402Payment required: the body carries the quote.Pay the quote and send the request again.

Sessions, keys and the account

Signing in, API keys, wallet linking, deposits, withdrawals, settings, statements, teams and referrals.

CodeStatusWhat happenedWhat to do
account_not_linked401The sign-in is not linked to an account.Finish signing in on the site.
address_in_use409This wallet is linked to another account or sub-key.Link a wallet of your own.
address_refused403The withdrawal address did not pass the screening.Withdraw to another address.
already_referred409The account already has a referrer.A referral is attached once.
attach_velocity429Too many accounts attached a referral code from this address.Retry later.
authorization_invalid400The USDG deposit authorization was refused. Nothing was taken.Sign the typed data the gateway returned.
authorization_pending400The device code's owner has not decided.Keep polling at the interval the answer names.
authorization_used409This USDG deposit authorization was already used or cancelled.Ask for new typed data and sign again.
bad_signature400The wallet signature does not match.Sign the exact message returned.
below_minimum400 or 409The amount is below the minimum for a link, a USDG deposit or a withdrawal to an address. The message names it in USDF ("The minimum is 0.10 USDF.") and error.minimum_usdf carries it.Send at least error.minimum_usdf.
card_unavailable503Card payments are not configured on the gateway right now.Add funds from a wallet instead, or retry later.
code_expired410The device code expired.Start the device sign-in again.
code_not_found404No device sign-in has this code.Check the code.
code_unavailable503A referral code could not be allocated.Retry shortly.
code_used409The device code was already decided.Start the device sign-in again.
credential_cannot_claim403A node's credential cannot claim earnings to an account's balance.Claim with the account's session or key.
daily_amount_limit429The amount is above what the account may take out in a day.Ask for less, or from the time the message names.
daily_cap429The account made the most gasless deposits it can in a day. Nothing was taken.Retry later, or send USDF.
deposit_in_flight429A gasless deposit for this account is still being processed.Retry once it has finished.
deposit_pending409A deposit is not final at the chain's safe head.Retry in a few minutes.
feature_off404This feature is not open on this gateway, for example holder claims or reservations. The message says which, in plain words. Nothing was read, charged or moved.Nothing to send; it answers once the feature opens.
future_month400The statement's month has not started.Ask for a past or the current month.
gas_low503Gasless deposits pause while the gateway's gas is refilled. Nothing was taken.Retry later, or send USDF.
hourly_amount_limit429The amount is above what the account may take out in an hour.Ask for less, or from the time the message names.
hourly_count_limit429The account asked for the most withdrawals it can in an hour.Ask again from the time the message names.
idempotency_conflict409This Idempotency-Key was already used on this route for another request, or for a withdrawal or redemption of another amount or destination. Nothing was moved.Send a new key for a new request.
idempotency_in_flight409A request with this Idempotency-Key is still being served.Retry shortly with the same key.
idempotency_unavailable503This gateway's ledger does not take idempotency keys. Nothing was moved.Retry later, or send the request without Idempotency-Key.
idempotency_unresolved409The first request with this Idempotency-Key ended without an answer that can be repeated: it may or may not have been made.Check the account's records for it, then send a new key for a new request.
insufficient_available_balance409Held amounts are not available.Wait for the holds to clear, or add funds.
insufficient_usdg409The linked wallet holds less USDG than the deposit.Deposit less, or add USDG.
invalid_api_key401A route that takes an API key was sent none, or a key the ledger rejects.Send a valid key as a Bearer token.
invalid_authorization400The deposit authorization is malformed.Send the fields the typed data names.
invalid_idempotency_key400The Idempotency-Key header is malformed. Nothing was moved.Send a key of the length and characters the message names.
invalid_nonce409The wallet link nonce expired or was already used.Ask for a new nonce.
invalid_session401The session token is not valid.Sign in again.
invalid_signature400The signature is not a hex signature of the right length.Send the wallet's signature of the typed data.
invalid_units400units is not a positive whole number of base units.Send units as a string of digits.
invalid_value400A key field is outside what the ledger takes.Read the message, and change that field.
invite_expired410The team invite has expired.Ask for a new one.
invite_limit409The team has the most open invites it can have.Withdraw some, or wait for answers.
ip_not_allowed403The key's IP allowlist does not include this address.Send from an allowed address, or change the key's allowlist.
key_expired401The key passed its expiry.Make a new one in the dashboard.
key_limit409The team has the most live keys it can have.Revoke one first.
key_not_returned502The ledger did not return the new key.List the keys to see whether it was made.
key_refused409The ledger refused the key change: the active-key or hourly limit.Revoke a key, or wait.
key_revoked401The key was revoked.Make a new one in the dashboard.
key_scope403This credential cannot read or act on that resource.Use the key that made it, or a session.
ledger_unavailable502 or 503The ledger could not be read or did not answer.Retry shortly.
link_failed409The wallet could not be linked.Read the message, then link again.
missing_api_key401A read that takes an API key or a signed-in session, such as the price sheet, was sent neither.Send your key as a Bearer token, or sign in.
no_account404There is no ledger account for this session.Sign in again.
not_key_owner403A team key can be changed only by the member who created it.Ask its creator.
not_linked_wallet400 or 409The authorization is not signed by the account's linked wallet.Sign with the linked wallet.
not_opened409The gasless deposit could not be opened.Read the message, then try again.
not_org_member403This account is not a member of that team.GET /v1/orgs lists your teams.
not_own_key403 or 409This needs one of the account's own keys, not an agent's, a team's, a platform's or an app's.Use one of the account's own keys, or sign in.
org_custody_closed410Custody is closed, so the team's balance can't move right now: deleting a team that holds a balance, or moving its balance back, is refused. Nothing was changed or moved.Leave the balance with the team for now. An empty team can be deleted any time.
org_deleted410The team was deleted. Nothing was changed or moved.Read your teams again: GET /v1/orgs.
org_funds_held409Requests on the team's keys are still running, so the team cannot be deleted now. Nothing was changed.Try again in a minute or two.
org_owner_required403Only the team's owner may do this.Ask the owner.
org_refused400The ledger refused the team change.Read the message, and change the request.
org_role_read_only403A team's viewer shares nothing with it.Ask an owner, an admin or a member.
org_role_required403This needs the team's owner or an admin.Ask an owner or admin.
owner_cannot_leave403The owner cannot leave a team.Delete the team instead: DELETE /v1/orgs/{id}.
owner_not_linked409The top-up permit is not signed by the linked wallet.Sign the permit with the linked wallet.
owner_role_fixed400 or 403The owner's role cannot change, and the owner cannot leave.Invite admins or members instead.
permit_invalid400The top-up permit was refused.Sign the permit the gateway returned.
preset_exists409A preset with this name was made at the same moment.Read it and save again.
preset_field_unsupported400A preset does not keep the fields the message names.Keep only the fields it lists.
preset_limit409The account keeps the most presets it can.Delete one first.
private_tier_key409A Private-tier key is never logged, so retain cannot be set on it.Turn private_tier off first.
pull_in_flight409A top-up pull is in progress.Retry once it has settled.
reauth_required403Money leaving the account (5 minutes) or a key, wallet or similar change (15 minutes) needs a more recent sign-in. API keys are never asked.Confirm it's you on the site (a signature from your wallet, or an email code), or sign in again, and send it once more.
recent_link_hold403A sign-in method was added in the last 24 hours, so money leaves the account only from lifts_at.Wait until then, or confirm it's you with a method the account had before.
region_blocked451The API is not served in the caller's region.Nothing to retry from there. The body's terms links the terms.
region_restricted451Sign-up, deposits and paid use are not offered in the caller's country. The site and the docs can still be read.Nothing to retry from there. The message says why, and terms links the terms.
secret_required400This call needs the secret it was set up with.Send the secret.
self_referral409An account cannot refer itself.Use another code.
self_referral_wallet409The code belongs to an account with the same linked wallet.Use another code.
session_ended401The session was signed out.Sign in again.
session_required403This needs a signed-in session, not a key.Use the session token.
session_retired401This kind of session is no longer accepted.Sign in again on the site.
share_limit409The team holds the most shared presets it can, or the preset is shared with the most teams it can be.Withdraw a share first.
share_not_allowed403A share is moved by its preset's owner alone, and withdrawn by that owner or by the team's owner or an admin.Ask the preset's owner.
signature_check_unavailable503A contract wallet's signature could not be checked onchain.Retry shortly.
signin_unavailable401 or 503The sign-in check is unavailable.Retry shortly.
statement_issuing503The statement is still being issued.Retry shortly.
still_in_use409The resource is still in use and cannot change.Stop what uses it, then retry.
terms_unavailable503The referral terms could not be read.Retry shortly.
topup_in_flight409A top-up pull from the current wallet is in progress.Link the new wallet once it has settled.
unauthenticated401This needs a signed-in session, or the session expired.Sign in and send the session token.
unknown_account404 or 409There is no account for this session.Sign in again.
unknown_code404No account has that referral code.Check the code.
version_limit409The preset keeps the most versions it can.Save it under a new name.
wallet_account409The account is a wallet account; this acts on a sign-in account.Use the wallet, or a sign-in account.
wallet_locked409The balance must be withdrawn before another wallet is linked.Withdraw first, then link the new wallet.
wallet_not_linked409This needs a linked wallet.Link a wallet first.
wallet_pays409The account pays from its own Foundry wallet, so its balance goes to usage alone. Nothing was recorded.Send, withdraw or fund from the wallet itself.
wallet_required409This needs a linked wallet: deposits, top-ups and earnings use it.Link a wallet first.
window_too_long400The asked window is longer than the read serves.Ask for a shorter window.
withdrawal_below_minimum409The amount is below the smallest withdrawal or redemption. The message names it in USDF ("The minimum is 0.10 USDF.") and error.minimum_usdf carries it.Withdraw at least error.minimum_usdf.
withdrawal_refused409The ledger refused the withdrawal: the minimum, the balance, or the open and daily limits.Read the message, then change the amount or wait.
withdrawals_daily_limit409Ten withdrawals in 24 hours.Try again once the oldest is a day old.
withdrawals_open_limit409Three withdrawals are already waiting.Wait until one is sent.

Agents and approvals

Creating, funding and paying agents, and approvals.

CodeStatusWhat happenedWhat to do
agent_not_created409The ledger did not create the agent.Read the message, then try again.
already_decided409The approval was already decided.Read the queue for its status.
approval_denied403The owner denied this approval.Change the request, or ask again.
approval_expired403The approval expired.Send the request again to queue a new one.
approval_mismatch403The approval was given for a different request.Send the approval with the request it covers.
approval_not_a_hold403The agent asked for this approval itself; it does not release a held request.Send the request without it, to be held.
approval_not_recorded500The approval was not recorded.Retry.
approval_over_approved403The request could cost more than the approval covers.Lower the request's worst case, or ask again.
approval_required202Held for the owner's approval. Nothing was charged.Poll the approval, then resend with x-approval-id.
approval_unavailable503The agent's approval threshold could not be read, so nothing ran.Retry after Retry-After.
approval_unknown_approval403No approval with this id for this agent.Check the approval id.
approval_used403The approval was already used.Each approval is single use. Ask again.
approvals_pending429Too many of the agent's requests wait for approval.Wait for the owner's decisions.
bad_approval_id400x-approval-id is not an approval id.Send the digits of the approval id.
directory_full409The gateway's agent directory is full.Use an existing agent, or retry later.
idempotency_key_reused409The same Idempotency-Key came with a different amount or recipient.Use a new key for a new payment.
key_not_issued409No key was issued for the agent.Read the message, then retry.
no_key409The agent has no active key.Issue one with POST /v1/agents/{slug}/key.
not_owner403Only the agent's owner may do this.Use the owner's session.
not_provisioned409The agent has no account of its own.Retry shortly.
not_this_agent403This key is not the agent's own.Use the agent's key.
recipient_not_agent403Under the owner's session, a payment must go to an agent.Withdraw to move a balance out.
same_account400A payment to the paying account itself.Pay another account.
slug_reserved400The agent slug is reserved.Choose another slug.
slug_taken409Another agent has this slug.Choose another slug.
too_many_agents409The owner has five agents already.Use an existing agent.
unknown_recipient404No agent or account with that id.Check the recipient.

USDF links, swap quotes and the USDF/USDG pool.

CodeStatusWhat happenedWhat to do
already_claimed409The link was already claimed.Nothing to claim or cancel.
amount_too_small400The amount swaps to less than one base unit of USDF.Swap more.
bad_amount400amount is not a positive integer in the token's base units.Send the amount in base units: wei for ETH.
bad_recipient400recipient is not the address that receives the USDF.Send a valid address.
bad_slippage400slippage_bps is outside the range the gateway takes.Use the range the message names.
bad_token400token is not an ERC-20 address or eth.Send a token address, or eth.
link_cancelled409 or 410The link was cancelled.Nothing to claim.
link_expired409 or 410The link expired, and its amount went back to the sender.Ask the sender for a new link.
link_not_found404No link has this token.Check the link.
no_route404No pool can fill the whole amount for this token.Swap less, or another token.
no_swap_needed400The token is USDG or USDF already.Deposit USDG with depositFor, or use the USDF.
own_link409This is your own link.Cancel it to get the amount back.
pool_unavailable503The pool could not be read.Retry shortly.
quote_unavailable503The chain did not answer the quote.Retry shortly.
token_required400token is missing.Send an ERC-20 address, or eth.
too_many_open_links409The account has the most unclaimed links it can have.Cancel some, or wait for claims.
x_identity_mismatch403The link is addressed to another X account.Sign in with that X account.
zap_unavailable503Swap quotes are served on Robinhood Chain mainnet only.Use the mainnet gateway.

Platforms and providers

Platform keys and sub-keys, and serving your own endpoint.

CodeStatusWhat happenedWhat to do
account_suspended403An endpoint of this account is suspended.Wait for the review.
bad_end_user_ref400end_user_ref is empty or too long.Send a shorter reference.
bad_models400models is empty or has more models than the gateway takes.Send the number the message names.
bad_wallet400wallet_address is not the end user's own wallet.Send the end user's wallet.
balance_remaining409The sub-key still holds the end user's USDF.Withdraw it to the sub-key's wallet first.
cross_chain_limit409The balance came in on another chain.Withdraw it on the chain it was deposited on.
duplicate_model400A model is listed twice.List each model once.
end_user_exists409This end_user_ref already has a live sub-key.Revoke it first, or reuse it.
host_suspended403An endpoint on this host is suspended.Wait for the review.
id_taken409That provider slug belongs to another account.Choose another slug.
invalid_base_url400base_url is not an https URL on a public host.Fix base_url.
invalid_key401The platform key is not valid.Send a live platform key.
invalid_provider400A registration field is invalid.Read the message, and fix that field.
no_wallet409The sub-key has no wallet to return the balance to.Set one first.
not_platform_key403This key is not a platform key.Create one with POST /v1/platform/create.
platform_key_exists409The account already has a live platform key.Revoke it first.
priced_above_sheet400A price is not far enough below the cheapest listed route.Lower it below the ceiling the message names.
private_address400base_url resolves to a private address.Use a public host.
proof_failed400No wallet proof was issued.Read the message, then ask again.
rate_lock_unavailable503The promised rates could not be read, so prices were not checked.Retry shortly.
rate_locked409A price would raise a rate a published sheet still promises.Keep it at or below the promised rate until the date named.
sub_key_limit429The platform has the most sub-keys it can have.Revoke unused sub-keys.
supplier_payer_refused403Only providers' own endpoints or network compute could serve this request, and they serve requests paid from a user account's own balance.Use an account key, or another model.
supply_full409The gateway lists the most providers' new models it can.Register catalog models, or fewer new ones.
suspended403This endpoint is suspended.Wait for the review.
too_many_open429The sub-key has the most open withdrawals it can have.Wait for one to be sent.
too_many_providers409The account has the most endpoints it can register.Remove one first.
too_many_today429The sub-key made the most withdrawals it can today.Retry tomorrow.
too_soon429The endpoint was changed moments ago.Retry shortly.
unresolved_host400base_url's host does not resolve.Fix the host name.
wallet_proof_required400The wallet proof is missing, expired, already used, or for another user or address.Ask for a new proof with POST /v1/platform/wallet-proof.

Feature gates and programs

Features and programs that are switched off or not armed on this gateway. Nothing is charged or moved.

CodeStatusWhat happenedWhat to do
account_already_claimed409The switch program's bonus was already claimed for this account.One bonus per account, ever.
activity_not_covered409The old key's read window does not cover the days the claim needs.Send the key read over the window the message names.
byok_unavailable503The account's own provider key cannot serve and no other route may take over.Fix the stored key, or allow Foundry's key for that provider.
coin_not_launched409Staking on the coin is not open.Try again later.
holder_rewards_pushed409Holder payouts on plain USDF are closed; nothing is claimed.Nothing to do.
market_calls_unarmed503Calls to marketplace listings are off on this gateway. Nothing was charged.GET /v1/agents/market/status says whether calls are on (calls.open).
network_sla_unsupported403The node cannot take this request's service-level ask.Serve requests without it.
no_claim404No switch-program claim for this account.Claim first with the old gateway's key.
no_platform_key404The account has no live platform key.Create one with POST /v1/platform/create.
preset_not_found404No preset of the account has this name, or no shared preset has this id.GET /v1/presets lists the account's own; GET /v1/preset-shares lists the shared ones you see.
redeem_out_unarmed409Direct redemption out is not armed.Withdraw to your wallet and redeem on Buy.
release_superseded410A newer node release replaced this one.Install the current release.
reservations_unavailable503Reservations could not be read right now. Nothing was submitted. While reservations are not open, the answer is 404 feature_off.Retry after Retry-After.
signup_credit_off409Signup credits are not offered.Add funds instead.
source_account_already_claimed409The old account's key was already used for a switch claim.One bonus per old account, ever.
switch_closed503The switch program is closed.Nothing to claim.
version_not_offered409The shared preset's owner has not offered that version to you.Use a version the share offers.

Public reads

Receipts, the usage log, the chain and other reads with no key.

CodeStatusWhat happenedWhat to do
chain_unavailable400 or 503The chain could not be read, or is not open for this action.Retry shortly.
loading503The list is still loading.Retry shortly.
log_integrity500The usage log is withheld while a fault is checked.Retry later.
method_not_allowed405The method is not served on this path.Use the method the Allow header names.
not_found404No such receipt, job or resource for this credential.Check the id and the credential.
not_yet_published404 or 503The request is not in the published log, or the log is loading.Retry in a few seconds.
spend_read_failed502The key was changed, but its spend and limits could not be read back.Read the key again with GET /v1/keys/{id}/limits.
unknown_chain400The chain is not one this gateway serves.Use a chain the message names.
unknown_cursor400before names no listed payment.Pass the last receipt_id of a page.

A refused MPP credential gets 402, fresh challenges and one of these problem types. The gateway's own error.code is kept beside it.

Problem typeMeaningerror.code beside it
invalid-challengeNot issued by this gateway, altered, or already paid.mpp_invalid_challenge
invalid-payloadThe payload does not have the shape its type needs.mpp_invalid_payload
malformed-credentialThe credential could not be read.mpp_malformed_credential
payment-expiredThe challenge or the signature has expired.mpp_payment_expired
verification-failedThe payment does not match the challenge, or the payer cannot fund it.payment_invalid, insufficient_funds, permit2_allowance_required, quote_mismatch, authorization_used and the rest

After permit2_allowance_required or insufficient_funds, that address is refused in that asset for one minute, with insufficient_funds and Retry-After. It can still pay in the other asset. Refunds after payment are in Refunds and refusals.

  • Retry-After is in seconds. Wait that long before sending the request again.
  • An agent's fund and pay take an Idempotency-Key. Repeating the call with the same key returns the first receipt and moves nothing. The same key with another amount or recipient gets 409 idempotency_key_reused.
  • An x402 payment signature and an approval id are each single use. Sign or ask again for a new request.
  • A request refused before it ran was not charged. A request that failed after its hold was taken is refunded, and its receipt says so.

Still stuck? Contact support with the request id and the error code.

See the rate limits

Foundry documentation

Confirm it's you

Confirm to continue the action you started.

Checking confirmation options…