type field is a URI that links to a page describing the problem.
Error Format
| Field | Type | Description |
|---|---|---|
type | string | URI identifying the problem type |
title | string | Short summary of the problem |
status | integer | HTTP status code |
detail | string | Human-readable explanation |
code | string | Machine-readable error code |
requestId | string | Unique request identifier for support |
errors | object | Field-level validation errors (when applicable) |
Error Types
| Type | Status | Code | Description |
|---|---|---|---|
/errors/validation | 400 | VALIDATION_ERROR | Invalid request fields |
/errors/authentication | 401 | UNAUTHORIZED | Missing or invalid API key |
/errors/insufficient-credits | 402 | INSUFFICIENT_CREDITS | Not enough credits |
/errors/authorization | 403 | FORBIDDEN | Key lacks access to resource |
/errors/not-found | 404 | NOT_FOUND | Resource doesn’t exist |
/errors/rate-limit | 429 | RATE_LIMITED | Too many requests |
Handling Errors
Check thecode field to determine how to respond:
Request ID
Every response includes arequestId. Include it when contacting support: