Response Structure
Every API response includes these standard fields:Indicates if the request was successful.
true
for successful requests, false
for failures.Present only on successful requests (
success: true
). Contains the actual response data.Present only on failed requests (
success: false
). Contains a human-readable error message.Optional field present on failed requests. Contains additional error details or validation errors.
The HTTP status code of the response.
Success Response
A successful response always hassuccess: true
and includes the response data in the data
field:
Error Response
Error responses always havesuccess: false
and include an error message:
Validation Errors
When validation fails, the response includes detailed error information in thedetails
field:
Status Codes
The API uses standard HTTP status codes to indicate the success or failure of requests:2xx: Success
2xx: Success
200 OK
: Request succeeded
4xx: Client Errors
4xx: Client Errors
400 Bad Request
: Invalid request or validation error401 Unauthorized
: Missing or invalid API key404 Not Found
: Requested resource doesnβt exist
5xx: Server Errors
5xx: Server Errors
500 Internal Server Error
: Something went wrong on our end