Clatter LabsHelp Center

What do all the Agent API error codes mean?

ReferenceUpdated

Errors are JSON with a stable code and a human-readable message:

{ "error": { "code": "out_of_credits", "message": "You're out of Clatter Labs credits. ..." } }
StatuscodeWhat to do
400bad_requestMissing input or a bad tier: fix the request
401invalid_api_keyCheck the key, or create a new one
401missing_account_idSend X-Clatter-Account
401account_mismatchUse the key owner's Account ID
402out_of_creditsAdd credits
403insufficient_scopeCreate a key with that permission
403early_accessAsk for access
403no_cloud_accountSet up Cosmos Agent for the account, then retry
403account_suspendedWait until resets_at, or appeal
404not_foundCheck the run id
405method_not_allowedUse the right HTTP method
413too_largeTrim input, metadata or the body
429rate_limitedWait Retry-After seconds
429too_many_runsWait for or cancel a run
502upstreamRetry with backoff
503unavailableRetry with backoff

Branch on code, not on message. See Errors.

Related articles

Still need help?

Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyz
For deleting your whole account or the data of one service.