Skip to main content
In case of an error, the API returns a JSON response containing a specific error code and a user-friendly message.

Error Response Format

{
  "message": {
    "code": 400,
    "error": ["Description of the error"]
  },
  "data": [],
  "type": "error"
}

Best Practices

  • Always check the type field in the response (success or error)
  • Log error responses for debugging
  • Display user-friendly messages based on the error code
  • Implement retry logic with exponential backoff for transient errors (429, 5xx)