Rate Limits
API rate limits, headers, and handling 429 responses
Rate Limits
The Artmail API uses rate limits to ensure fair usage and system stability. Limits are applied per API key and can be configured in your dashboard.
Default Limits
| Limit | Default | Description |
|---|---|---|
| Per Second | 10 | Maximum requests per second. |
| Per Day | 10,000 | Maximum requests per 24-hour rolling window. |
Limits are configurable per API key in Settings → Developer → API Keys. Higher plans may have higher defaults; contact support for custom limits.
Rate Limit Headers
Every API response includes these headers so you can monitor your usage:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window. |
X-RateLimit-Remaining | Requests remaining before hitting the limit. |
X-RateLimit-Reset | Unix timestamp (seconds) when the limit resets. |
Example
X-RateLimit-Limit: 10000
X-RateLimit-Remaining: 9847
X-RateLimit-Reset: 1705334400
X-RateLimit-Reset corresponds to the daily window. For per-second limits, the reset is typically the next second boundary.
Handling 429 Responses
When you exceed the rate limit, the API returns:
HTTP Status: 429 Too Many Requests
Response body:
Headers (when rate limited):
X-RateLimit-Limit: 10
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1705334400
What to Do
- Stop sending — Avoid hammering the API.
- Wait — Use
X-RateLimit-Resetto know when to retry. - Retry with backoff — Exponential backoff is recommended.
- Batch when possible — Send to up to 50 recipients per request to reduce call count.
Exponential Backoff
Implement exponential backoff when you receive 429:
Best Practices
- Respect the headers — Use
X-RateLimit-Remainingto slow down before hitting the limit. - Use batch send — Send to up to 50 recipients per
/v1/sendrequest. - Implement backoff — Use exponential backoff on 429 responses.
- Queue on your side — For high volume, queue sends in your app and throttle to stay under limits.
- Use multiple keys — For very high volume, you may use multiple API keys (each with its own limit); ensure proper isolation.
Checking Your Usage
- View usage in Settings → Developer and in API key details.
- Monitor
X-RateLimit-Remainingin responses. - Set up alerts when remaining drops below a threshold.
Next Steps
Error Handling
Retry strategies and handling API errors.
Send Email
Send transactional emails with batching.