Error Response Format
HTTP Status Codes
Bad Request
Invalid request parameters
Unauthorized
Invalid or missing API key
Not Found
Resource not found
Too Many Requests
Rate limit exceeded
Internal Server Error
Server error
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understanding and handling API errors
{
"error": "error_code",
"message": "Human readable message",
"details": {}
}
try {
const response = await fetch('/api/v1/leads');
if (!response.ok) {
const error = await response.json();
console.error(error.message);
}
} catch (error) {
console.error('Network error:', error);
}