HTTP Status Codes
| Status Code | Meaning | Description |
|---|---|---|
200 OK | Success | The request was successful. The response body will contain the requested data. |
400 Bad Request | Bad Request | The request was malformed. This could be due to missing required fields or invalid data types. |
401 Unauthorized | Unauthorized | The request lacks valid authentication credentials. This usually means the Authorization header is missing or the token is expired. |
403 Forbidden | Forbidden | The authenticated user does not have permission to perform the requested action. |
422 Unprocessable Entity | Unprocessable Entity | The request was well-formed, but the server was unable to process it due to semantic errors (e.g., invalid value for a specific field). |
Common Error Scenarios & Responses
Authentication Errors
These errors occur when there’s an issue with your API key or bearer token. They can apply to any endpoint.401 Unauthorized
This error is returned when theAuthorization header is missing from your request.
403 Forbidden
This error is returned when your token is valid, but the associated user or API key does not have the necessary permissions for the requested resource.Validation Errors
These errors typically return a422 Unprocessable Entity or 400 Bad Request status code and indicate a problem with the parameters or body of your request.
Missing a Required Parameter
Occurs when a required query parameter (likechat_id or message_id) is not included in the request.
Invalid Enum Value
Occurs when you provide a value for a field that is not in the list of allowed values (e.g., providing an invalidchat_field when updating a chat).
Invalid Data Type or Value
Occurs when the value for a field is of the wrong type (e.g., sending a string for a booleanpin field).

