Skip to main content
The Hyperline API implements rate limiting to ensure fair usage and protect the platform from abuse. This page details the rate limiting policies and how to handle them effectively.

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 request
  • DELETE /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 window
  • X-RateLimit-Remaining: The number of requests remaining in the current window
  • X-RateLimit-Reset: The date and time when the rate limit window resets
  • Retry-After: The minimum number of seconds to wait before retrying (only when you reach the limit)
On POST /v1/events/batch, these headers describe the events limit:
  • X-RateLimit-Limit is 50000
  • X-RateLimit-Remaining is the number of events you can still send in the current window
  • X-RateLimit-Policy is events-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

  1. Monitor rate limits: Track the X-RateLimit-Remaining header to anticipate when you’re approaching the limit
  2. Implement backoff: When you receive a 429 response:
    • Wait until the date specified in the X-RateLimit-Reset header
    • Consider implementing exponential backoff for retries
  3. 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
  4. Cache responses: When appropriate, cache responses to reduce the number of API calls

Example response headers

Rate limit not exceeded:
Rate limit exceeded:

Custom rate limits

If your application requires higher rate limits, contact the Hyperline team via the in-app chat. The team works with you to establish appropriate limits based on your use case.