Rate Limits
Understand Lettr’s rate limits and how to handle them.Rate Limit Tiers
| Plan | Requests/Second | Emails/Month |
|---|---|---|
| Free | 10 | 3,000 |
| Pro | 100 | 50,000 |
| Enterprise | Custom | Unlimited |
Rate Limit Headers
Every response includes rate limit information:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per second |
X-RateLimit-Remaining | Remaining requests in window |
X-RateLimit-Reset | Unix timestamp when limit resets |
Handling Rate Limits
HTTP 429 Response
When rate limited, you’ll receive:Retry-After Header
TheRetry-After header tells you how long to wait:
Implementing Backoff
SDK Automatic Handling
Our SDKs handle rate limits automatically:Batch Operations
For high-volume sending, use batch operations:Queuing Strategies
For large volumes, implement a queue:Monitoring Usage
Check your current usage:Increasing Limits
Upgrade Your Plan
Higher plans include higher rate limits. Upgrade in the dashboard.Request Custom Limits
Enterprise customers can request custom rate limits:Contact Sales
Request custom rate limits for your use case
Best Practices
Spread Load Over Time
Spread Load Over Time
Don’t send all emails at once. Space them throughout the day.
Use Webhooks for Status
Use Webhooks for Status
Don’t poll the API for email status. Use webhooks instead.
Cache Domain Data
Cache Domain Data
Cache domain and template data to reduce API calls.
Batch When Possible
Batch When Possible
Use batch endpoints for multiple operations.