Skip to main content

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
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

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 a 429 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 the X-RateLimit-Remaining header before making bulk operations:

2. Implement Exponential Backoff

When you receive a 429 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
Upgrade your plan to increase your rate limits.

Need Higher Limits?

If you have a good sending reputation and need higher rate limits, we can increase your limits on a case-by-case basis. Contact us at hello@thepurplebox.io to discuss your sending needs and reputation metrics.