Skip to main content
Every non-2xx response includes one error object.

The error envelope

Error types

error.type is one of a fixed set: Two cases share 429: rate_limit means you’re calling too fast (back off and retry), while quota_exceeded means a plan ceiling like concurrent sessions is full (retrying won’t help until capacity frees up). Branch on error.type to tell them apart.

Rate limits and retries

429 and 503 responses may include Retry-After in seconds. Use that delay before retrying.

Quota exhaustion

A quota_exceeded error names the exhausted resource in error.code. Credit exhaustion uses HTTP 402 with code: "insufficient_credit_balance". Runtime limits, such as concurrent sessions, use HTTP 429.

Handling errors

For API integrations, use the HTTP status and error.code for control flow. error.message is written for humans and may change.

Next

Quotas

Session caps, usage rounding, and credit behavior.

API Reference

Endpoint schema generated from OpenAPI.