Errors and Troubleshooting
API requests that result in an error will return an HTTP error status code and description. If the API encounters an error in carrying out the request, it will include an error message in the response body. Use these error codes and messages to help diagnose issues related to request validation, authentication, configuration, and data formatting.
Common Error Codes
Below is a list of common error codes and their meanings:
| Status Code | Description |
|---|---|
| 400 | Bad Request: The request is malformed or missing required parameters. Check the request body and headers for errors. |
| 400 | Invalid Integration Type: The provided integration_type is not valid. Ensure that you are using a supported integration type. |
| 401 | Unauthorized: Authentication failed due to a missing or invalid API key. Verify your API credentials. |
| 403 | Forbidden: The request is authenticated but does not have permission to access the resource. Ensure your API key has the necessary permissions. |
| 500 | Internal Server Error: An unexpected error occurred on the server. Try again later or contact support if the issue persists. |
Sample Error Codes
{
"code": 400,
"message": "Bad Request: Invalid JSON"
},
{
"code": 400,
"message": "Invalid integration type. This is for internal use only."
},
{
"code": 400,
"message": "Failed to get content: last message in input list cannot be empty."
}