Error Response Format
When an error occurs, the API returns a JSON response with details:| Field | Description |
|---|---|
code | Machine-readable error code |
message | Human-readable description |
status | HTTP status code |
Error Codes
Authentication Errors (4xx)
| Code | Status | Description | Solution |
|---|---|---|---|
invalid_api_key | 401 | API key is invalid or malformed | Check your API key is correct |
missing_api_key | 401 | No API key provided | Add Authorization: Bearer <key> header |
expired_api_key | 401 | API key has been revoked | Generate a new key in the dashboard |
insufficient_permissions | 403 | Key doesn’t have required permissions | Use a key with appropriate permissions |
Request Errors (4xx)
| Code | Status | Description | Solution |
|---|---|---|---|
invalid_request | 400 | Request body is malformed | Check your JSON syntax |
missing_required_field | 400 | Required field is missing | Include all required fields |
invalid_field_value | 400 | Field value is invalid | Check field types and formats |
agent_not_found | 404 | Agent doesn’t exist | Verify the agent name |
rate_limit_exceeded | 429 | Too many requests | Slow down and retry with backoff |
Server Errors (5xx)
| Code | Status | Description | Solution |
|---|---|---|---|
internal_error | 500 | Unexpected server error | Retry the request; contact support if persistent |
agent_error | 500 | Agent execution failed | Check agent logs in dashboard |
timeout | 504 | Request timed out | Use streaming or break up large tasks |
Handling Errors in SDKs
Python
TypeScript
Rate Limiting
The API enforces rate limits to ensure fair usage:| Limit | Value |
|---|---|
| Requests per minute | 60 |
| Requests per day | 10,000 |
429 response with a Retry-After header:
- Implement exponential backoff
- Cache responses when possible
- Use webhooks for async workflows
Retry Strategy
For transient errors (5xx, timeouts), implement retry with exponential backoff:Getting Help
If you encounter persistent errors:- Check the Status Page for outages
- Review agent logs in the dashboard
- Contact support@reminix.com with:
- Error code and message
- Request ID (from response headers)
- Timestamp of the error