Rate limits
Capturia emits RFC 9331 headers (`RateLimit-*`) on every response to a request whose key quota was checked, refusals included (a refusal sent before that check, such as an invalid key, doesn't carry them), paired with legacy `X-RateLimit-*` headers (sunset 2027-05-03). Enriched 429 body with actionable `limit_type`.
Policy
| Scope | Window | Limit | Violation |
|---|---|---|---|
| Per API key | 1h rolling | 1,000 requests by default; your key's quota is in `rate_limits.per_hour` from `GET /v1/me` |
|
| Per IP address, lead capture (`POST /v1/leads/capture`) | 1 min | 100 requests |
|
| Per IP address, events and purchases (`POST /v1/events`, `/v1/purchases`, `/v1/purchases/refunds`) | 1 min | 120 requests |
|
| Brute force per IP | 5 min | 10 invalid-key attempts |
|
RFC 9331 headers (emitted on every quota-checked response)
| Header | Format | Example | Description |
|---|---|---|---|
RateLimit-Limit | int | 1000 | Current quota |
RateLimit-Remaining | int | 987 | Remaining requests in the window |
RateLimit-Reset | int (delta-seconds) | 2415 | Seconds until reset (integer) |
RateLimit-Policy | structured | 1000;w=3600 | Structured quota (limit + window in seconds) |
Legacy headers (sunset 2027-05-03)
Kept alongside RFC 9331 to avoid breaking existing integrations. Removed in /.
| Header | Format | Example | Description |
|---|---|---|---|
X-RateLimit-Limit | int | 1000 | Current quota |
X-RateLimit-Remaining | int | 987 | Remaining requests |
X-RateLimit-Reset | ISO 8601 | 2026-05-04T11:00:00Z | Absolute reset timestamp |
Enriched 429 body
The body of a 429 rate_ includes a details. that precisely indicates which limit was hit — useful to adjust your retry strategy:
{
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded.",
"hint": "Retry after the number of seconds in retry_after_seconds, and consider implementing exponential backoff.",
"doc_url": "https://capturia.io/en/developers/api/v1/rate-limits",
"request_id": "req_01J9X8Z3F4K2M5N7P9Q1R3S5T7",
"details": {
"limit_type": "per_key",
"limit": 1000,
"count": 1000,
"retry_after_seconds": 2415
}
}
}Retry-After header
Standard HTTP header (RFC 7231) in seconds on 429 and 503. Always respect this value before retrying — aggressive retry can prolong or amplify the block.
503 Service Unavailable
503 service_: one of Capturia's dependencies is briefly unreachable (for example the key or plan lookup, the per-IP limiter, the calendar). The request did not go through, and nothing says your key or your request is at fault: send it again after the delay in the Retry- header.
Best practices
Respect
Retry-— do not retry before the indicated value.After Exponential backoff on retry after 429 (e.g. 1s, 2s, 4s, 8s with jitter).
Read
RateLimit-on your 200 responses to anticipate the block (if < 10, slow down).Remaining Distinguish
per_vskey brute_— brute_force means invalid key, so the IP is blocked and switching keys won't help.force Do not bypass via multiple IPs — Capturia detects abuse patterns and may suspend the key.