Errors
API error codes
Machine-readable error.code values for external API clients.
Error envelope:
{
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key.",
"request_id": "OUI-REQ-01M2S18..."
}
}Authentication and access
error.code | HTTP | Meaning |
|---|---|---|
MISSING_API_KEY | 401 | No Bearer / X-Api-Key credential |
INVALID_API_KEY | 401 | Unknown or inactive key |
KEY_REVOKED | 401 | Key revoked |
API_KEY_EXPIRED | 401 | Key past expires_at |
PUBLIC_KEY_NOT_ALLOWED | 403 | pk_* used on a server route |
IP_DENIED | 403 | Source IP not allowlisted |
FEATURE_DISABLED | 403 | Developer feature is off |
OWNER_ACCOUNT_REQUIRED | 403 | App has no usable owner account |
DEVELOPER_OPT_IN_REQUIRED | 403 | Developer access not enabled |
Other common codes
error.code | HTTP | Meaning |
|---|---|---|
VALIDATION_ERROR | 400 | Request failed validation |
NOT_FOUND | 404 | Unknown resource |
RATE_LIMITED | 429 | Too many requests |
Always log request_id when contacting support.