Rate limits
Core API
Events ingestion API
The events ingestion API has separate rate limits:
The events limit on
POST /v1/events/batch counts events, not requests: a batch of 5,000 events uses 5,000 of the 50,000. It applies to your whole account, across all your API keys. This allows up to 5,000 events per second, or 300,000 events per minute.
Additionally, the following payload size limits apply:
POST /v1/events/batch: maximum of 5,000 events per requestDELETE /v1/events: maximum of 5,000 event IDs per request
Rate limit headers
API responses include the following rate limit headers:X-RateLimit-Limit: The maximum number of requests allowed in the current windowX-RateLimit-Remaining: The number of requests remaining in the current windowX-RateLimit-Reset: The date and time when the rate limit window resetsRetry-After: The minimum number of seconds to wait before retrying (only when you reach the limit)
POST /v1/events/batch, these headers describe the events limit:
X-RateLimit-Limitis50000X-RateLimit-Remainingis the number of events you can still send in the current windowX-RateLimit-Policyisevents-batch-volume
Handling rate limits
When you exceed the rate limit, the API returns a 429 Too Many Requests HTTP status code. The response body is:Best practices
- Monitor rate limits: Track the
X-RateLimit-Remainingheader to anticipate when you’re approaching the limit - Implement backoff: When you receive a 429 response:
- Wait until the date specified in the
X-RateLimit-Resetheader - Consider implementing exponential backoff for retries
- Wait until the date specified in the
- Batch requests: When possible, combine multiple operations into a single request. For events, send batches of up to 5,000 events rather than one event per request
- Cache responses: When appropriate, cache responses to reduce the number of API calls

