Error format
The API returns errors as JSON. The format depends on the endpoint type:Status codes
Handling errors
401 Unauthorized
Your API key is missing, invalid, or revoked.Authorization: Bearer <key> header is correct and the key hasn’t been revoked.
402 Payment Required
Your workspace has insufficient credits for the requested operation.429 Rate Limited
You’ve exceeded the request limit for this endpoint.
See Rate Limits for full details.