Overview
thePurplebox API implements rate limiting to ensure fair usage and system stability. Rate limits vary based on your subscription plan and apply to both API calls and email sending.Rate Limits by Plan
Free Plan
The Free plan has the following rate limits:- 3 requests per minute - Combined limit for both API calls and emails sent
- Applies to all endpoints including email sending and API operations
Paid Plans
All paid plans (Starter, Growth, Business, Enterprise) have separate limits:- 50 emails per minute - For transactional email sending
- 50 API calls per minute - For all other API operations (domains, retrieving emails, logs, etc.)
How Rate Limiting Works
Rate limits are calculated on a per-minute rolling window basis. The counter resets every minute from your first request.Example Scenarios
Free Plan
Paid Plan - Emails
Paid Plan - API Calls
Rate Limit Headers
Every API response includes headers that help you track your rate limit status:Header Descriptions
number
The maximum number of requests allowed in the current time window.
number
The number of requests remaining in the current time window.
number
Unix timestamp indicating when the rate limit counter resets.
Rate Limit Exceeded Response
When you exceed your rate limit, the API returns a429 Too Many Requests status code:
Response Fields
number
HTTP status code. Always
429 for rate limit errors.string
Human-readable error message.
object
Additional information about the rate limit.
Best Practices
1. Monitor Rate Limit Headers
Always check theX-RateLimit-Remaining header before making bulk operations:
2. Implement Exponential Backoff
When you receive a429 response, implement exponential backoff:
3. Batch Operations When Possible
For paid plans, spread out your requests to stay within limits:Upgrading Your Plan
If you consistently hit rate limits, consider upgrading your plan:- Free Plan: 3 requests/min
- Paid Plans: 50 emails/min + 50 API calls/min