Skip to main content

Rate Limits

The Sentro API enforces rate limits to ensure fair usage and platform stability. Limits are applied per API key and vary by plan.

Limits by Plan​

PlanRead (GET/HEAD)Write (POST/PATCH/DELETE)Notes
Free60 req/min—Read-only API keys only
Starter120 req/min30 req/minFull read/write access
Pro300 req/min60 req/minFull read/write access
Max600 req/min120 req/minFull read/write access

Rate limits are applied per API key within a 1-minute sliding window. Your limit is set when the key is created based on your active plan.

Response Headers​

Every API response includes rate limit information in the headers:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the window
X-RateLimit-RemainingRequests remaining in the current window
X-RateLimit-ResetUnix timestamp when the window resets

Example Response Headers​

HTTP/1.1 200 OK
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 297
X-RateLimit-Reset: 1708603200

Rate Limit Exceeded​

When you exceed the rate limit, the API returns a 429 Too Many Requests response:

{
"error": {
"code": "RATE_LIMIT",
"message": "Rate limit exceeded. Max 300 requests per minute.",
"retryAfter": 45
}
}

The response also includes a Retry-After header with the number of seconds to wait.

Best Practices​

  • Cache responses where possible to reduce API calls
  • Implement exponential backoff when receiving 429 responses
  • Use pagination (limit and offset) to reduce the number of requests
  • Batch operations where the API supports it
  • Monitor your X-RateLimit-Remaining header to stay within limits
  • Upgrade your plan for higher limits