Skip to main content

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 CodeResponse Type
2xxSuccess
4xxClient error
5xxServer error