Error Response Format
All errors follow a consistent structure:HTTP Status Codes
| Code | Name | Description |
|---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource created successfully |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Missing or invalid API key |
403 | Forbidden | Insufficient permissions |
404 | Not Found | Resource doesn’t exist |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Something went wrong on our end |
Common Errors
Authentication Errors
Missing API Key
Missing API Key
HTTP 401Solution: Include
x-api-key header in your requestInvalid API Key
Invalid API Key
HTTP 401Solutions:
- Verify your API key is correct
- Check if the key has been revoked
- Generate a new key from the dashboard
Insufficient Permissions
Insufficient Permissions
HTTP 403Solutions:
- Upgrade from
readtowritescope - Request company-wide access
- Use a different API key
Validation Errors
Missing Required Field
Missing Required Field
HTTP 400Solution: Include all required fields in your request
Invalid Campaign
Invalid Campaign
HTTP 403Solutions:
- Verify the campaignId is correct
- Check your API key has access to this campaign
- Ensure the campaign belongs to your company
Duplicate Resource
Duplicate Resource
HTTP 400Solution: Use a different phone number or update the existing lead
Rate Limit Errors
Rate Limit Exceeded
Rate Limit Exceeded
HTTP 429Response Headers:Solutions:
- Wait until the reset time
- Implement exponential backoff
- Contact us for higher limits
Error Handling Best Practices
1. Check Status Codes
JavaScript
2. Implement Retry Logic
Python
3. Log Errors Properly
JavaScript
4. Handle Rate Limits Gracefully
Python
Getting Help
If you encounter errors you can’t resolve:- Check this documentation for common solutions
- Review API logs in your dashboard
- Contact support at info@acrely.ai
- Text the Creator! That’s right, my personal number! +l 4l2 5OO lOOl
- The HTTP status code
- The error message
- Your request (without sensitive data)
- Timestamp of the error