Skip to content

Errors ​

Shape ​

Errors are returned as JSON with a message describing what went wrong:

json
{
  "error": "Invalid or expired token"
}

Streaming (SSE) endpoints emit an error event with the same shape instead of an HTTP error status, since the response has already started streaming.

Common status codes ​

StatusMeaning
400Malformed request — check required fields and types.
401Missing or invalid authentication token.
402Insufficient balance to run the requested agent action — your wallet is empty, or a team budget has hit its member limit, monthly ceiling or empty pool.
403Authenticated, but not allowed to access this resource — including a team action your role does not permit.
404Resource not found (or you don't have access to it).
409Conflicting state — for example, a suspended team, or deleting a team that still holds funds.
413Request body too large (for example, an oversized attachment).
429Rate limited — back off and retry.
503A billing target could not be read safely. The server refuses rather than guessing with your money — retry.
5xxServer error — safe to retry with backoff; if it persists, it's on us.

Retrying safely ​

Network interruptions during a long-running agent stream (a build, a chat turn) are common and expected — the official clients (CLI, VS Code extension) automatically detect a dropped connection mid-stream and transparently reconnect without losing your place. If you're calling the streaming API directly, treat a mid-stream disconnect as retryable and resume rather than restarting the whole request from scratch.

Built by Maxrall, Inc.