Handling Responses
The API will always return the same response structure unless a 5xx Server error occurs.
Response body
Success
{
"status": "success",
"data": "..."
}
Error Handling
{
"status": "error",
"data" : {
"code": "INVALID_REQUEST",
"message": "Could not complete the request",
"details": "The endpoint you are trying to access does not exists at /v0/bad_endpoint"
}
}
Response codes
| Status Code | Response Type |
|---|---|
| 2xx | Success |
| 4xx | Client error |
| 5xx | Server error |