If there is an issue fulfilling a request the API will respond with defined responses depending on the error, along with a response in JSON with a simple generic format:
{
"message": "ValidationError",
"details": {
"email": "Email is required"
}
}
A message
will always be provided while details
is optional depending on the context of the failure and if extra information is available.
Possible HTTP status codes returned by the API include:
Status Code | Message | Description |
---|---|---|
200 | OK | Everything is working as expected |
401 | Not Authorized | No Valid API key provided |
404 | Not Found | The resource requests can not be found or has been deleted. |
422 | Validation Error | The request cannot be validated against the OpenAPI spec. Check details for more information. |
429 | Too Many Requests | Too many requests were made too quickly. |
500 | Server Error | Something went wrong on our end. |
Rate Limiting
Our APIs are all rate limited against the Userback account authenticated against and we currently allow for 600 requests per minute.
When an error occurs with rate limiting, you will receive a HTTP 429 response along with a Retry-After
header that will inform how many seconds you should wait until the rate limit has been reset.