Guides
Erreurs
Consultez l’enveloppe d’erreur stable et les principaux codes d’erreur publics.
Stable error envelope
{
"error": {
"code": "missing_api_key",
"message": "Missing API key.",
"requestId": "req_123"
}
}Expect a stable JSON envelope and use the error code for logic, not the human message alone.
Common public error codes
missing_api_keyinvalid_api_keycredential_not_foundcredential_revokedcredential_expiredworkspace_public_api_disabledworkspace_public_api_suspendedforbiddenrate_limitedinsufficient_creditsinternal_error
Status code guidance
- 401: missing or invalid authentication
- 402: insufficient credits for the requested work
- 403: authenticated but not allowed
- 404: the requested resource was not found
- 429: rate limited; check
Retry-After