Rate Limits
API rate limits for Mailtrap endpoints to ensure fair usage and service stability
Mailtrap API enforces rate limits to ensure fair usage and maintain service stability for all users. Different API endpoints have different rate limiting rules based on their purpose and resource requirements.
General Rate Limit
The following rate limit applies to all API endpoints:
All API endpoints
150 requests
10 seconds
Per API token
API-Specific Rate Limits
In addition to the general rate limit, some APIs have their own specific limits:
Contacts API
200 requests
60 seconds
Per account
Stats API
10 requests
60 seconds
Per account
Suppressions API
10 requests
60 seconds
Per account
For APIs with account-level limits (like Contacts, Stats, and Suppressions), all endpoints within that API share the same limit pool. For example, if you have 5 Stats API endpoints, each can be called twice per minute to stay within the 10 requests/60 seconds limit.
Handling Rate Limits
When you exceed a rate limit, the API returns a 429 Too Many Requests response. To handle rate limits gracefully:
Implement exponential backoff when receiving 429 responses
Distribute requests evenly over time rather than sending bursts
Cache responses when possible to reduce API calls
Last updated
Was this helpful?

