Error Format
All error responses follow the same format:HTTP Status Codes
| Code | Description | Common causes |
|---|---|---|
400 | Bad Request | Missing required fields, invalid parameters |
401 | Unauthorized | Missing or invalid API key |
403 | Forbidden | Insufficient permissions for the operation |
404 | Not Found | Resource doesn’t exist or doesn’t belong to your company |
500 | Internal Error | Server-side error |
Common Errors
Missing company_id
Invalid API key
Insufficient permissions
Resource not found
Missing required fields
Invalid status value
Business rule violations
Best Practices
- Always check the HTTP status code before parsing the response body
- Use the
errormessage for debugging, not for programmatic logic - Implement retry logic with exponential backoff for
500errors - Log error responses for troubleshooting

