Build
Errors and status codes.
What each refusal means, whether anything was charged, and what to do next.
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_, the minimum in USDF. A 5xx answer carries request_, also sent as the x-request-id header: quote it to support.
Four answers add to it or differ:
- The Messages format (
/) answers in its own envelope,v1/ messages { "type": "error", "error": { "type": "…", "message": "…", "code": "…" } }. Its types follow the status:invalid_(400, 405),request_ error authentication_(401),error billing_(402),error permission_(403),error not_(404),found_ error request_(413),too_ large rate_(429),limit_ error overloaded_(503),error timeout_(504) anderror api_for the rest. The gateway's ownerror codestays alongside. - A
402quote, or a refused MPP credential, adds the quote and payment fields, and the problem fieldstype,title,statusanddetail. - An agent's request held for approval is answered
202with 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
400again unchanged. A402or403clears 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
429or503afterRetry-After, in seconds. - A
502or504was not charged, or was refunded, except a tool call its upstream billed (tool_); the message says what was charged.upstream_ error
The statuses the gateway answers with, their error types, and whether anything was charged:
| Status | Meaning | What to do |
|---|---|---|
| 202approval_required | An agent's request is above its approval threshold and waits for the owner. The body is the approval hold, not an error.Charged: No | Wait for the decision, then send it again with x-approval-id. |
| 400invalid_request_error | The request is malformed or asks for something the model or endpoint does not do.Charged: No | Fix the request. The message says what is wrong. |
| 401authentication_error | No key, a key the ledger rejects, or a missing, expired or signed-out session or read token.Charged: No | Send a valid credential. |
| 402insufficient_quotapayment_required | The balance, a cap or a budget cannot cover the request (insufficient_), or a payment is needed or was refused (payment_). A link above the balance has the type insufficient_.Charged: No | Fund the balance, raise the cap, or pay the quote. |
| 403invalid_request_errorpermission_errorauthentication_error | Not 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_, recent_).Charged: No | Change the key's settings, or use a credential that may. |
| 404invalid_request_error | No such model, route, receipt or resource for this credential.Charged: No | Check the id. A routing policy no route meets is also a 404. |
| 405invalid_request_error | The method is not served on this path.Charged: No | Use the method the Allow header names. |
| 408invalid_request_error | The body arrived too slowly, or too little time was left to serve a paid call.Charged: No | Send it again. |
| 409invalid_request_errorupstream_error | The 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_.Charged: No | Read the message, wait or change the request, then retry. |
| 410invalid_request_error | A 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 made | Results and clips are kept for a limited time. Fetch them sooner. |
| 413invalid_request_error | The body is larger than the endpoint takes. The code is null, or upstream_ when the provider refused the size.Charged: No | Send a smaller body. |
| 429rate_limit_error | A rate limit, an upload or job slot, or a payment already settling.Charged: No | Wait for Retry-After, in seconds, then send it again. |
| 451permission_error | The API is not served in the caller's region (region_), or sign-up, deposits and paid use are not offered in the caller's country (region_).Charged: No | Nothing to retry from there. The body's terms links the terms. |
| 500server_error | The gateway itself failed.Charged: No | Retry. The receipt shows any refund. |
| 502upstream_errorserver_error | Every eligible route failed, a payment's outcome is still unknown, or the ledger did not answer.Charged: No, or refunded | Retry, or pick another model. |
| 503service_unavailableserver_error | A model cannot serve right now, or a policy, setting or chain read did not answer.Charged: No | Wait for Retry-After where given, or pick another model. |
| 504upstream_error | No provider answered before the deadline.Charged: No | Retry, or lower max_. |
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 / shows it as may_. 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
- Video
- Limits, caps and balances
- Pay per request
- Sessions, keys and the account
- Agents and approvals
- Links, swaps and the pool
- Platforms and providers
- Feature gates and programs
- Public reads
Requests and models
Chat, text completions, the other modalities, batch jobs, tools and MCP calls.
| Code | Status | What happened | What to do |
|---|---|---|---|
attestation_ | 503 | A 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_ | 400 | The file can hold more than four hours of audio. | Split the file. |
bad_ | 400 | The multipart body could not be parsed. | Send a well-formed multipart body. |
batch_ | 409 | The batch job ended without a result. | Nothing was charged. Submit it again. |
batch_ | 409 | The upstream failed the batch job. | Nothing was charged. Submit it again. |
| 400 or 503 | This 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_ | 503 | The gateway is reading as many request bodies as it takes at once. | Retry after Retry-After. |
bodies_ | 429 | Too many request bodies at once from this address. | Retry after Retry-After. |
body_ | 400 | The request body ended early. | Send the whole body. |
body_ | 400 | The body is JSON but not an object: an array, a string or a number. | Send one JSON object. |
body_ | 408 | The request body arrived too slowly. | Send it again. |
| 503 | The key's budget could not be checked, so the request did not run. Nothing was charged. | Retry after Retry-After. | |
caller_ | In a receipt | Your 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_ 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_ | 400 | The prompt, with the output budget the request runs at, does not fit the model's context window. A max_ above the model's max_ is not refused: the request runs at the model's limit, and the receipt's output_ says so. | Shorten the prompt, or lower max_. |
data_ | 409 | The request's data_ 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_ | 408 | A paid MCP call had too little time left to serve. Nothing was settled. | Call again. |
endpoint_ | 400 | A model on attested hardware serves chat completions only. | Use POST /. |
engine_ | 400 | The web plugin's engine is not one this gateway serves. | Leave engine out. |
| 400 | This model has no flex tier. | Send the request without the flex tier. | |
gateway_ | 503 | The gateway is restarting and did not serve the request. Nothing was charged. | Send it again. |
guardrail_ | 403 | Every route of the model charges more than a guardrail's max_ allows. Nothing was charged. | Pick a cheaper model, or raise max_ in the key's or the account's guardrails. GET / shows both. |
guardrail_ | 403 | The account's guardrail allowed_ does not include this model. Nothing was charged. | Pick a model on the list, or add it to allowed_ with PATCH / or on the dashboard's Guardrails tab. |
guardrail_ | 403 | The account's guardrail refused the prompt as a possible injection. Nothing was charged. | Change the prompt, or loosen the guardrail. |
guardrail_ | 403 | A guardrail's allowed_ or blocked_ 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 / (guardrails. or guardrails.), or the account's with PATCH / 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 / shows the rules. |
guardrail_ | 403 | The guardrail's redaction input is larger than it takes. Nothing was charged. | Shorten the input. |
guardrail_ | 403 | A guardrail's zdr_ 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_ off in the key's or the account's guardrails. |
id_ | 400 | GET / was sent without id. Nothing was charged. | Add ?id= with a model id. |
input_ | 400 | The image model makes images in the style of reference images, and none were sent. | Send them as input_, as data URLs. |
input_ | 400 | The image model takes no style references. | Leave input_ out. |
input_ | 400 | The speech input is longer than the model takes. | Shorten the input. |
instructions_ | 400 | The Responses API's instructions is not taken on this path. | Send a system message instead. |
invalid_ | 400 | input_ is not a list of image data URLs the model can read. | Fix what the message names. |
invalid_ | 400 | The body is not valid JSON. The message says where the parser stopped. | Send one JSON object. |
invalid_ | 400 | models is not an array of model ids, or names more models than a request may try. | Send ids from GET /, no more than the message names. |
invalid_ | 400 | A 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_ | 400 | plugins is not an array, or a plugin's settings are malformed. | Fix what the message names. |
invalid_ | 400 | The 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_ | 400 | reasoning is not an object, or its effort, max_, exclude or enabled has the wrong type or value. | Fix the field the message names. |
invalid_ | 400 | service_ is not cheapest, standard, priority or flex. | Send one of those, or leave it out. |
invalid_ | 400 | The image size is not WxH within the allowed range. | Send a valid size. |
invalid_ | 400 | transforms 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_ | 400 | The speech voice is not one the model serves. | Use a voice the model names. |
| 503 | The key's privacy flags could not be read, so nothing ran. | Retry after Retry-After. | |
listing_ | 404 | No listing of the agents market has this id. | Find the id with GET /. |
max_ | 400 | max_ was sent to an endpoint not priced per token. | Drop provider. there. |
missing_ | 400 | Chat 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 /, or leave model out where Auto is on. |
model_ | 404 | No listed model has this id. | See GET /. |
| 503 | The model is listed but cannot serve right now. | Retry later, or pick another model. | |
model_ | 503 | The model has not returned a verified result. | Pick a verified model. |
models_ | 400 | This endpoint takes one model, not a fallback list. | Send a single model. |
no_ | 404 | No route meets the request's provider preferences. Nothing was held. | Relax the preferences. |
not_ | 404 | The Messages API's envelope for no such model or resource. | Check the id. |
not_ | 400 | The endpoint takes multipart/. | Send the body as multipart. |
not_ | 404 | The batch job's result is not ready. | Poll the job until it is done. |
payment_ | 400 | An MCP call sent both a key and a payment. | Send one. |
plugin_ | 400 | The request asks for a plugin this gateway does not serve. Nothing was charged. | Send the request without it. |
| 503 | The key's or agent's policy could not be read, so nothing ran. | Retry. | |
| 503 | The request's preset could not be read. Nothing was charged. | Retry shortly. | |
preset_ | 404 | The preset has no such version, or a shared preset does not give this account that version. | Use a version GET / lists, or the one the share gives. |
price_ | 402 | The request's worst case is above its price ceiling. Nothing was held. | Lower max_, or raise the ceiling. |
| 400 | This model has no priority tier. | Send the request without the priority tier. | |
| 400 | A batch job cannot run on the private tier. | Send it as a normal request. | |
private_ | 503 | A private request: the model's attested routes are not connected on this gateway. Nothing was charged. | Pick a model whose private is true. |
quality_ | 400 | The image quality is not one the model takes. | Use the quality the message names, or leave it out. |
reference_ | 400 | The image edit model works from a reference image beside the image edited, and none was sent. | Send it as the multipart field reference_. |
reference_ | 400 | The image edit model takes no reference image. | Leave reference_ out. |
response_ | 400 | The images response_ is not b64_. Images come back inline and nothing is stored, so there is no URL to give. | Send b64_, or leave it out. |
result_ | 410 | The batch result is no longer held. | Results are kept 7 days. Fetch them sooner. |
retention_ | 409 | A zero-retention ask no route of the model meets. Nothing was charged. | Pick a model with a zero-retention route, or allow retention. |
service_ | 400 | The priority and flex service tiers serve an account's requests, not requests paid per request. | Send the request with an API key. |
| 503 | The account's routing defaults could not be read, so nothing ran. | Retry. | |
smartest_ | 400 | The smartest mode needs a price cap in the request or the preset. | Send price_. |
smartest_ | 400 | The smartest mode needs several models in scope to score. | Name more models, or use another mode. |
stream_ | In a stream | The gateway restarted during the stream. Nothing was charged. | Send the request again. |
stream_ | 400 | The speech stream_ is not audio. | Send audio, or leave it out. |
stream_ | In a stream | The 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_ | 400 | stream was sent to the images endpoint. Every image comes back in the one answer. | Leave stream out. |
token_ | 400 | Embeddings input was sent as token ids. | Send the text itself. |
too_ | 400 | More than 16 images in one chat request. | Send fewer images. |
too_ | 429 | Too many uploads in progress. | Retry after Retry-After. |
tool_ | 500 | The tool failed. Nothing was charged. | Retry. |
tool_ | 400 | The input does not match the tool's input_. | Fix the input. GET / has the schema. |
tool_ | 400 or the tool's 4xx | The tool's upstream refused the input, with its own status. | Fix the input. |
tool_ | 404 | No tool has this id. | See GET /. |
tool_ | 504 | The tool's upstream did not answer in time. Nothing was charged. | Retry. |
| 409 | The tool is disabled. Nothing was held. | Use an enabled tool. | |
tool_ | 502 | The tool's upstream failed. A call the upstream billed is charged for it; the message says what was charged. | Retry. |
translation_ | 400 | The model does not translate. | Use a translation model. |
unsupported_ | 400 | The audio container cannot be bounded before the request runs. | Convert to WAV, FLAC, MP3 or Ogg. |
unsupported_ | 400 | The asked output format is not one the endpoint serves. | Use the format the message names. |
unsupported_ | 400 | functions or function_ was sent. | Use tools and tool_. |
upstream_ | 429 | The tool's upstream is rate limiting. | Retry after Retry-After. |
upstream_ | 400 or the provider's 4xx | The 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_ | 504 | No 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_. | Retry, or pick another model. |
| 502 | Every eligible route failed. Nothing was charged. | Retry, or pick another model. | |
variant_ | 400 | The model's variant suffix is not one it serves. | Use one of the variants the model names. |
web_ | 502 | The 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_ | 400 | Web 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_ | 400 | Web search runs on synchronous requests only, not on a batch job. Nothing was charged. | Send it without batch, or without the web plugin. |
wrong_ | 400 | The model does not serve this endpoint. | Use one of the endpoints the message names. |
| 503 | The 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.
| Code | Status | What happened | What to do |
|---|---|---|---|
aspect_ | 400 | The model does not take this aspect_, or takes none. | Use one the message names, or leave it out. |
gateway_ | 503 | The gateway restarted before the clip was made or fetched. Nothing was charged. | Send the request again. |
image_ | 400 | The model makes video from a first frame. | Send image as a PNG or JPEG data URL. |
image_ | 400 | The first frame is too large. | Send a smaller image. |
image_ | 400 | The model makes video from text only. | Leave image out. |
invalid_ | 400 | image is not a PNG or JPEG data URL that can be read. | Send a PNG or JPEG data URL. |
invalid_ | 400 | seconds is not a whole number the model takes. | Use the range the message names. |
negative_ | 400 | negative_ is longer than the model takes. | Shorten it. |
negative_ | 400 | The model takes no negative_. | Leave it out. |
prompt_ | 400 | The prompt is longer than the model takes. | Shorten the prompt. |
read_ | 401 | A video job paid per request needs its read token. | Send Authorization: Bearer <read_. |
restarting | 503 | This gateway instance takes no new video jobs while it restarts. | Retry shortly. |
size_ | 400 | size is not taken: each model is sold at one resolution. | Send aspect_ instead. |
too_ | 429 | The key has two unbilled video jobs, or the gateway is at capacity. | Fetch or wait for one first. |
unsupported_ | 400 | resolution is not the model's one resolution. | Send the model's resolution, or leave it out. |
video_ | 410 | The clip is no longer held. | Clips are kept 30 minutes. Fetch them sooner. |
video_ | 409 | The video job failed. Nothing was charged. | Start a new job. |
video_ | 409 | The 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.
| Code | Status | What happened | What to do |
|---|---|---|---|
address_ | 429 | Too 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_ | 429 | Card top-ups are paused for this account for now. A purchase already paid is still credited. | Wait for Retry-After, or contact support. |
insufficient_ | 402 | The balance cannot cover the request's hold, a payment or a link. | Fund the balance, or lower max_. |
key_ | 402 | The 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_. |
key_ | 429 | The account made the most keys it can in this window. | Wait, or revoke a key you no longer use. |
key_ | 403 | The key is paused. | Resume it with paused set to false. |
model_ | 403 | The key's or the agent's allowlist does not include this model. | Add it to the allowlist, or pick another model. |
rate_ | 429 | Over a rate limit. | Retry after Retry-After. |
request_ | 402 | The request's worst case is above the agent's per-request cap. | Lower max_, or raise the cap. |
rpc_ | 429 | The chain read endpoint's daily cap for this caller. | Retry tomorrow, or read through your own endpoint. |
rpc_ | 400 | The chain read's gas is above the endpoint's cap. | Lower the call's gas. |
rpc_ | 400 | The logs read's block range is outside the endpoint's bounds. | Read a smaller range. |
rpc_ | 403 | The chain read endpoint does not serve this method. | Use a read method. |
rpc_ | 403 | The chain read endpoint does not serve this origin. | Read from an allowed origin. |
rpc_ | 429 | Over the chain read endpoint's rate limit. | Retry after Retry-After. |
spend_ | 402 | A key's or agent's hourly, daily or monthly cap is reached. | Wait for the window to move on, or raise the cap. |
tool_ | 403 | The 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.
| Code | Status | What happened | What to do |
|---|---|---|---|
agent_ | 400 | The x-erc8004-agent value is malformed, or names another registry. | Send the agent id, or the registry this gateway checks. |
agent_ | 403 | The payer is not the named agent's owner or wallet. | Pay from the identity's wallet, or drop the header. |
agent_ | 400 | The x-erc8004-agent id is not in the registry. | Check the agent id. |
| 402 | This payment signature was already used. | Sign a new payment. | |
funds_ | 503 | Payments and gasless deposits pause briefly while gateway instances hand over. Nothing was charged. | Retry after Retry-After. |
insufficient_ | 402 | The payer's wallet cannot fund the payment. For one minute after this or permit2_, 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_ | 400 | The wallet address is not a valid hex address. | Send the wallet's full address. |
invalid_ | 400 | The way to pay is not one this gateway offers. | Send a method the methods list names. |
mpp_ | 402 | The MPP challenge was not issued here, was altered, or is already paid. | Use a fresh challenge from a new 402. |
mpp_ | 402 | The MPP payload does not have the shape its type needs. | Check the credential's payload. |
mpp_ | 402 | The MPP credential could not be read. | Send base64url JSON with challenge, payload and source. |
mpp_ | 402 | The MPP challenge or signature has expired. | Ask for a new challenge. |
payer_ | 429 | Too many paid requests a minute from this payer. Nothing was charged. | Retry after Retry-After. |
payment_ | 409 | This payment was already settled another way, for example refunded. Nothing was served. | Sign a new payment. |
payment_ | 400 | Both an x402 payment and an MPP credential were sent, or two credentials. | Send one. |
payment_ | 429 | Another payment from this address is still settling. | Retry after Retry-After. |
payment_ | 402 | The payment does not verify. | Check the typed data and the accept signed. |
payment_ | 409 | The 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_ | 409 | This 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_ | 503 | The payment's state could not be read from the chain. It was not settled, and nothing was charged. | Retry after Retry-After. |
payment_ | 503 | The payment could not be recorded, so it was not settled and nothing was charged. | Retry shortly. If the retry is refused as payment_, sign a new payment. |
payments_ | 429 | The gateway is settling at capacity. | Retry after Retry-After. |
permit2_ | 402 | USDF is not approved to the signature-transfer contract. | Approve once, then pay again after a minute. Paying in USDG is not affected. |
pool_ | 409 | The program's pool cannot cover this right now. | Retry later. |
quote_ | 400 | The quote is below what refunding it would cost in gas. | Send a larger request, or pay with a key. |
quote_ | 402 | The payment does not match the current quote. | Ask for a new quote. |
refund_ | 503 | The 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_ | 402 | The payment was made for another resource's quote. | Pay the quote this request's 402 gives. |
settlement_ | 402 | The transfer did not settle. Nothing was served. | Pay again. |
settlement_ | 502 | The 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. |
x402 | 402 | Payment 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.
| Code | Status | What happened | What to do |
|---|---|---|---|
account_ | 401 | The sign-in is not linked to an account. | Finish signing in on the site. |
address_ | 409 | This wallet is linked to another account or sub-key. | Link a wallet of your own. |
address_ | 403 | The withdrawal address did not pass the screening. | Withdraw to another address. |
already_ | 409 | The account already has a referrer. | A referral is attached once. |
attach_ | 429 | Too many accounts attached a referral code from this address. | Retry later. |
| 400 | The USDG deposit authorization was refused. Nothing was taken. | Sign the typed data the gateway returned. | |
| 400 | The device code's owner has not decided. | Keep polling at the interval the answer names. | |
authorization_ | 409 | This USDG deposit authorization was already used or cancelled. | Ask for new typed data and sign again. |
bad_ | 400 | The wallet signature does not match. | Sign the exact message returned. |
below_ | 400 or 409 | The 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. carries it. | Send at least error.. |
| 503 | Card payments are not configured on the gateway right now. | Add funds from a wallet instead, or retry later. | |
code_ | 410 | The device code expired. | Start the device sign-in again. |
code_ | 404 | No device sign-in has this code. | Check the code. |
| 503 | A referral code could not be allocated. | Retry shortly. | |
code_ | 409 | The device code was already decided. | Start the device sign-in again. |
credential_ | 403 | A node's credential cannot claim earnings to an account's balance. | Claim with the account's session or key. |
daily_ | 429 | The amount is above what the account may take out in a day. | Ask for less, or from the time the message names. |
daily_ | 429 | The account made the most gasless deposits it can in a day. Nothing was taken. | Retry later, or send USDF. |
deposit_ | 429 | A gasless deposit for this account is still being processed. | Retry once it has finished. |
deposit_ | 409 | A deposit is not final at the chain's safe head. | Retry in a few minutes. |
feature_ | 404 | This 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_ | 400 | The statement's month has not started. | Ask for a past or the current month. |
gas_ | 503 | Gasless deposits pause while the gateway's gas is refilled. Nothing was taken. | Retry later, or send USDF. |
hourly_ | 429 | The amount is above what the account may take out in an hour. | Ask for less, or from the time the message names. |
hourly_ | 429 | The account asked for the most withdrawals it can in an hour. | Ask again from the time the message names. |
idempotency_ | 409 | This 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_ | 409 | A request with this Idempotency-Key is still being served. | Retry shortly with the same key. |
| 503 | This gateway's ledger does not take idempotency keys. Nothing was moved. | Retry later, or send the request without Idempotency-Key. | |
idempotency_ | 409 | The 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_ | 409 | Held amounts are not available. | Wait for the holds to clear, or add funds. |
insufficient_ | 409 | The linked wallet holds less USDG than the deposit. | Deposit less, or add USDG. |
invalid_ | 401 | A route that takes an API key was sent none, or a key the ledger rejects. | Send a valid key as a Bearer token. |
| 400 | The deposit authorization is malformed. | Send the fields the typed data names. | |
invalid_ | 400 | The Idempotency-Key header is malformed. Nothing was moved. | Send a key of the length and characters the message names. |
invalid_ | 409 | The wallet link nonce expired or was already used. | Ask for a new nonce. |
invalid_ | 401 | The session token is not valid. | Sign in again. |
invalid_ | 400 | The signature is not a hex signature of the right length. | Send the wallet's signature of the typed data. |
invalid_ | 400 | units is not a positive whole number of base units. | Send units as a string of digits. |
invalid_ | 400 | A key field is outside what the ledger takes. | Read the message, and change that field. |
invite_ | 410 | The team invite has expired. | Ask for a new one. |
invite_ | 409 | The team has the most open invites it can have. | Withdraw some, or wait for answers. |
ip_ | 403 | The key's IP allowlist does not include this address. | Send from an allowed address, or change the key's allowlist. |
key_ | 401 | The key passed its expiry. | Make a new one in the dashboard. |
key_ | 409 | The team has the most live keys it can have. | Revoke one first. |
key_ | 502 | The ledger did not return the new key. | List the keys to see whether it was made. |
key_ | 409 | The ledger refused the key change: the active-key or hourly limit. | Revoke a key, or wait. |
key_ | 401 | The key was revoked. | Make a new one in the dashboard. |
key_ | 403 | This credential cannot read or act on that resource. | Use the key that made it, or a session. |
| 502 or 503 | The ledger could not be read or did not answer. | Retry shortly. | |
link_ | 409 | The wallet could not be linked. | Read the message, then link again. |
missing_ | 401 | A 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_ | 404 | There is no ledger account for this session. | Sign in again. |
not_ | 403 | A team key can be changed only by the member who created it. | Ask its creator. |
not_ | 400 or 409 | The authorization is not signed by the account's linked wallet. | Sign with the linked wallet. |
not_ | 409 | The gasless deposit could not be opened. | Read the message, then try again. |
not_ | 403 | This account is not a member of that team. | GET / lists your teams. |
not_ | 403 or 409 | This 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_ | 410 | Custody 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_ | 410 | The team was deleted. Nothing was changed or moved. | Read your teams again: GET /. |
org_ | 409 | Requests 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_ | 403 | Only the team's owner may do this. | Ask the owner. |
org_ | 400 | The ledger refused the team change. | Read the message, and change the request. |
org_ | 403 | A team's viewer shares nothing with it. | Ask an owner, an admin or a member. |
org_ | 403 | This needs the team's owner or an admin. | Ask an owner or admin. |
owner_ | 403 | The owner cannot leave a team. | Delete the team instead: DELETE /. |
owner_ | 409 | The top-up permit is not signed by the linked wallet. | Sign the permit with the linked wallet. |
owner_ | 400 or 403 | The owner's role cannot change, and the owner cannot leave. | Invite admins or members instead. |
permit_ | 400 | The top-up permit was refused. | Sign the permit the gateway returned. |
preset_ | 409 | A preset with this name was made at the same moment. | Read it and save again. |
preset_ | 400 | A preset does not keep the fields the message names. | Keep only the fields it lists. |
preset_ | 409 | The account keeps the most presets it can. | Delete one first. |
private_ | 409 | A Private-tier key is never logged, so retain cannot be set on it. | Turn private_ off first. |
pull_ | 409 | A top-up pull is in progress. | Retry once it has settled. |
reauth_ | 403 | Money 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_ | 403 | A sign-in method was added in the last 24 hours, so money leaves the account only from lifts_. | Wait until then, or confirm it's you with a method the account had before. |
region_ | 451 | The API is not served in the caller's region. | Nothing to retry from there. The body's terms links the terms. |
region_ | 451 | Sign-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_ | 400 | This call needs the secret it was set up with. | Send the secret. |
self_ | 409 | An account cannot refer itself. | Use another code. |
self_ | 409 | The code belongs to an account with the same linked wallet. | Use another code. |
session_ | 401 | The session was signed out. | Sign in again. |
session_ | 403 | This needs a signed-in session, not a key. | Use the session token. |
session_ | 401 | This kind of session is no longer accepted. | Sign in again on the site. |
| 409 | The team holds the most shared presets it can, or the preset is shared with the most teams it can be. | Withdraw a share first. | |
| 403 | A 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. | |
| 503 | A contract wallet's signature could not be checked onchain. | Retry shortly. | |
| 401 or 503 | The sign-in check is unavailable. | Retry shortly. | |
statement_ | 503 | The statement is still being issued. | Retry shortly. |
still_ | 409 | The resource is still in use and cannot change. | Stop what uses it, then retry. |
| 503 | The referral terms could not be read. | Retry shortly. | |
topup_ | 409 | A top-up pull from the current wallet is in progress. | Link the new wallet once it has settled. |
unauthenticated | 401 | This needs a signed-in session, or the session expired. | Sign in and send the session token. |
unknown_ | 404 or 409 | There is no account for this session. | Sign in again. |
unknown_ | 404 | No account has that referral code. | Check the code. |
version_ | 409 | The preset keeps the most versions it can. | Save it under a new name. |
wallet_ | 409 | The account is a wallet account; this acts on a sign-in account. | Use the wallet, or a sign-in account. |
wallet_ | 409 | The balance must be withdrawn before another wallet is linked. | Withdraw first, then link the new wallet. |
wallet_ | 409 | This needs a linked wallet. | Link a wallet first. |
wallet_ | 409 | The 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_ | 409 | This needs a linked wallet: deposits, top-ups and earnings use it. | Link a wallet first. |
window_ | 400 | The asked window is longer than the read serves. | Ask for a shorter window. |
withdrawal_ | 409 | The amount is below the smallest withdrawal or redemption. The message names it in USDF ("The minimum is 0.10 USDF.") and error. carries it. | Withdraw at least error.. |
withdrawal_ | 409 | The ledger refused the withdrawal: the minimum, the balance, or the open and daily limits. | Read the message, then change the amount or wait. |
withdrawals_ | 409 | Ten withdrawals in 24 hours. | Try again once the oldest is a day old. |
withdrawals_ | 409 | Three withdrawals are already waiting. | Wait until one is sent. |
Agents and approvals
Creating, funding and paying agents, and approvals.
| Code | Status | What happened | What to do |
|---|---|---|---|
agent_ | 409 | The ledger did not create the agent. | Read the message, then try again. |
already_ | 409 | The approval was already decided. | Read the queue for its status. |
approval_ | 403 | The owner denied this approval. | Change the request, or ask again. |
approval_ | 403 | The approval expired. | Send the request again to queue a new one. |
approval_ | 403 | The approval was given for a different request. | Send the approval with the request it covers. |
approval_ | 403 | The agent asked for this approval itself; it does not release a held request. | Send the request without it, to be held. |
approval_ | 500 | The approval was not recorded. | Retry. |
approval_ | 403 | The request could cost more than the approval covers. | Lower the request's worst case, or ask again. |
approval_ | 202 | Held for the owner's approval. Nothing was charged. | Poll the approval, then resend with x-approval-id. |
| 503 | The agent's approval threshold could not be read, so nothing ran. | Retry after Retry-After. | |
approval_ | 403 | No approval with this id for this agent. | Check the approval id. |
approval_ | 403 | The approval was already used. | Each approval is single use. Ask again. |
approvals_ | 429 | Too many of the agent's requests wait for approval. | Wait for the owner's decisions. |
bad_ | 400 | x-approval-id is not an approval id. | Send the digits of the approval id. |
directory_ | 409 | The gateway's agent directory is full. | Use an existing agent, or retry later. |
idempotency_ | 409 | The same Idempotency-Key came with a different amount or recipient. | Use a new key for a new payment. |
key_ | 409 | No key was issued for the agent. | Read the message, then retry. |
no_ | 409 | The agent has no active key. | Issue one with POST /. |
not_ | 403 | Only the agent's owner may do this. | Use the owner's session. |
not_ | 409 | The agent has no account of its own. | Retry shortly. |
not_ | 403 | This key is not the agent's own. | Use the agent's key. |
recipient_ | 403 | Under the owner's session, a payment must go to an agent. | Withdraw to move a balance out. |
same_ | 400 | A payment to the paying account itself. | Pay another account. |
slug_ | 400 | The agent slug is reserved. | Choose another slug. |
slug_ | 409 | Another agent has this slug. | Choose another slug. |
too_ | 409 | The owner has five agents already. | Use an existing agent. |
unknown_ | 404 | No agent or account with that id. | Check the recipient. |
Links, swaps and the pool
USDF links, swap quotes and the USDF/USDG pool.
| Code | Status | What happened | What to do |
|---|---|---|---|
already_ | 409 | The link was already claimed. | Nothing to claim or cancel. |
amount_ | 400 | The amount swaps to less than one base unit of USDF. | Swap more. |
bad_ | 400 | amount is not a positive integer in the token's base units. | Send the amount in base units: wei for ETH. |
bad_ | 400 | recipient is not the address that receives the USDF. | Send a valid address. |
bad_ | 400 | slippage_ is outside the range the gateway takes. | Use the range the message names. |
bad_ | 400 | token is not an ERC-20 address or eth. | Send a token address, or eth. |
link_ | 409 or 410 | The link was cancelled. | Nothing to claim. |
link_ | 409 or 410 | The link expired, and its amount went back to the sender. | Ask the sender for a new link. |
link_ | 404 | No link has this token. | Check the link. |
no_ | 404 | No pool can fill the whole amount for this token. | Swap less, or another token. |
no_ | 400 | The token is USDG or USDF already. | Deposit USDG with depositFor, or use the USDF. |
own_ | 409 | This is your own link. | Cancel it to get the amount back. |
| 503 | The pool could not be read. | Retry shortly. | |
| 503 | The chain did not answer the quote. | Retry shortly. | |
token_ | 400 | token is missing. | Send an ERC-20 address, or eth. |
too_ | 409 | The account has the most unclaimed links it can have. | Cancel some, or wait for claims. |
x_ | 403 | The link is addressed to another X account. | Sign in with that X account. |
| 503 | Swap 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.
| Code | Status | What happened | What to do |
|---|---|---|---|
account_ | 403 | An endpoint of this account is suspended. | Wait for the review. |
bad_ | 400 | end_ is empty or too long. | Send a shorter reference. |
bad_ | 400 | models is empty or has more models than the gateway takes. | Send the number the message names. |
bad_ | 400 | wallet_ is not the end user's own wallet. | Send the end user's wallet. |
balance_ | 409 | The sub-key still holds the end user's USDF. | Withdraw it to the sub-key's wallet first. |
cross_ | 409 | The balance came in on another chain. | Withdraw it on the chain it was deposited on. |
duplicate_ | 400 | A model is listed twice. | List each model once. |
end_ | 409 | This end_ already has a live sub-key. | Revoke it first, or reuse it. |
host_ | 403 | An endpoint on this host is suspended. | Wait for the review. |
id_ | 409 | That provider slug belongs to another account. | Choose another slug. |
invalid_ | 400 | base_ is not an https URL on a public host. | Fix base_. |
invalid_ | 401 | The platform key is not valid. | Send a live platform key. |
invalid_ | 400 | A registration field is invalid. | Read the message, and fix that field. |
no_ | 409 | The sub-key has no wallet to return the balance to. | Set one first. |
not_ | 403 | This key is not a platform key. | Create one with POST /. |
platform_ | 409 | The account already has a live platform key. | Revoke it first. |
priced_ | 400 | A price is not far enough below the cheapest listed route. | Lower it below the ceiling the message names. |
private_ | 400 | base_ resolves to a private address. | Use a public host. |
proof_ | 400 | No wallet proof was issued. | Read the message, then ask again. |
| 503 | The promised rates could not be read, so prices were not checked. | Retry shortly. | |
rate_ | 409 | A price would raise a rate a published sheet still promises. | Keep it at or below the promised rate until the date named. |
sub_ | 429 | The platform has the most sub-keys it can have. | Revoke unused sub-keys. |
supplier_ | 403 | Only 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_ | 409 | The gateway lists the most providers' new models it can. | Register catalog models, or fewer new ones. |
suspended | 403 | This endpoint is suspended. | Wait for the review. |
too_ | 429 | The sub-key has the most open withdrawals it can have. | Wait for one to be sent. |
too_ | 409 | The account has the most endpoints it can register. | Remove one first. |
too_ | 429 | The sub-key made the most withdrawals it can today. | Retry tomorrow. |
too_ | 429 | The endpoint was changed moments ago. | Retry shortly. |
unresolved_ | 400 | base_'s host does not resolve. | Fix the host name. |
wallet_ | 400 | The wallet proof is missing, expired, already used, or for another user or address. | Ask for a new proof with POST /. |
Feature gates and programs
Features and programs that are switched off or not armed on this gateway. Nothing is charged or moved.
| Code | Status | What happened | What to do |
|---|---|---|---|
account_ | 409 | The switch program's bonus was already claimed for this account. | One bonus per account, ever. |
activity_ | 409 | The old key's read window does not cover the days the claim needs. | Send the key read over the window the message names. |
| 503 | The 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_ | 409 | Staking on the coin is not open. | Try again later. |
holder_ | 409 | Holder payouts on plain USDF are closed; nothing is claimed. | Nothing to do. |
market_ | 503 | Calls to marketplace listings are off on this gateway. Nothing was charged. | GET /v1/agents/market/status says whether calls are on (calls.open). |
network_ | 403 | The node cannot take this request's service-level ask. | Serve requests without it. |
no_ | 404 | No switch-program claim for this account. | Claim first with the old gateway's key. |
no_ | 404 | The account has no live platform key. | Create one with POST /. |
preset_ | 404 | No preset of the account has this name, or no shared preset has this id. | GET / lists the account's own; GET / lists the shared ones you see. |
redeem_ | 409 | Direct redemption out is not armed. | Withdraw to your wallet and redeem on Buy. |
release_ | 410 | A newer node release replaced this one. | Install the current release. |
| 503 | Reservations could not be read right now. Nothing was submitted. While reservations are not open, the answer is 404 feature_. | Retry after Retry-After. | |
signup_ | 409 | Signup credits are not offered. | Add funds instead. |
source_ | 409 | The old account's key was already used for a switch claim. | One bonus per old account, ever. |
switch_ | 503 | The switch program is closed. | Nothing to claim. |
version_ | 409 | The 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.
| Code | Status | What happened | What to do |
|---|---|---|---|
| 400 or 503 | The chain could not be read, or is not open for this action. | Retry shortly. | |
loading | 503 | The list is still loading. | Retry shortly. |
log_ | 500 | The usage log is withheld while a fault is checked. | Retry later. |
method_ | 405 | The method is not served on this path. | Use the method the Allow header names. |
not_ | 404 | No such receipt, job or resource for this credential. | Check the id and the credential. |
not_ | 404 or 503 | The request is not in the published log, or the log is loading. | Retry in a few seconds. |
spend_ | 502 | The key was changed, but its spend and limits could not be read back. | Read the key again with GET /. |
unknown_ | 400 | The chain is not one this gateway serves. | Use a chain the message names. |
unknown_ | 400 | before names no listed payment. | Pass the last receipt_ of a page. |
A refused MPP credential gets 402, fresh challenges and one of these problem types. The gateway's own error. is kept beside it.
| Problem type | Meaning | error.code beside it |
|---|---|---|
invalid-challenge | Not issued by this gateway, altered, or already paid. | mpp_ |
invalid-payload | The payload does not have the shape its type needs. | mpp_ |
malformed-credential | The credential could not be read. | mpp_ |
payment-expired | The challenge or the signature has expired. | mpp_ |
verification-failed | The payment does not match the challenge, or the payer cannot fund it. | payment_, insufficient_, permit2_, quote_, authorization_ and the rest |
After permit2_ or insufficient_, that address is refused in that asset for one minute, with insufficient_ and Retry-After. It can still pay in the other asset. Refunds after payment are in Refunds and refusals.
Retry-Afteris in seconds. Wait that long before sending the request again.- An agent's
fundandpaytake anIdempotency-Key. Repeating the call with the same key returns the first receipt and moves nothing. The same key with another amount or recipient gets409 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.