Skip to main content
When a request fails, Sandbox APIs return an error response with details about what went wrong.

Error response format

All error responses follow this structure:
{
  "code": 401,
  "message": "Unauthorized",
  "timestamp": 1687602744185,
  "transaction_id": "2230d738-2ef4-4821-a510-cb7fa51d19d8"
}
code
number
http status code indicating the error type
message
string
Human-readable description of the error
timestamp
number
Unix timestamp (in milliseconds) of when the error occurred
transaction_id
string
Unique identifier for tracking the requestβ€”include this when contacting support

http status codes

The following table lists common status codes and their meanings:
Status codeDescriptionHow to resolve
2XXSuccessRequest completed successfully
400 Bad RequestMissing or invalid required fieldsCheck request body against API documentation
401 UnauthorizedInvalid API key or secretVerify your API credentials
403 ForbiddenAccess deniedCheck token validity, permissions, credits, or quota
404 Not FoundInvalid endpoint urlVerify the API endpoint path
422 Unprocessable EntityInvalid field values or formatValidate field values against schema
429 Too Many RequestsRate limit exceededReduce request frequency or wait before retrying
500 Internal Server ErrorServer-side issueRetry the request; contact support if persistent
503 Service UnavailableSource system unavailableRetry later
504 Gateway TimeoutRequest timed outRetry the request

Common 403 error reasons

A 403 Forbidden response can occur for several reasons:
  • Invalid access token
  • Expired access token
  • Insufficient permissions for the requested resource
  • Insufficient wallet credits
  • Usage quota exhausted
  • Access revoked
Include the transaction_id from the error response when contacting support for faster resolution.