Rate Limiting
Every request is subject to a rate limit. The limits are the same for every company and depend only on the kind of request: read, write, or ingest. Each kind is tracked in its own bucket, so telemetry ingestion never competes with your interactive API calls. Each person and each API key has these limits to themselves, under a ceiling for the company as a whole.
Limits
| Request kind | Methods / path | Limit |
|---|---|---|
| Reads | GET, HEAD, OPTIONS | 600 per minute |
| Writes | POST, PUT, PATCH, DELETE | 120 per minute |
| Ingest | POST /api/v1/ingest | 600 per minute |
Limits apply over a rolling one-minute window. Together, a company's people and keys may make up to ten times these figures per minute (6,000 reads and 1,200 writes).
Who shares a budget
| Requests | Counted per |
|---|---|
| Signed in with a Bearer JWT | The person. All of their browser tabs and sessions share one budget per request kind; colleagues are not affected |
Sent with a service-account API key, or an edge agent sending its log (POST /api/v1/agent/logs) | The key. Each key has its own budget |
Ingest (POST /api/v1/ingest) and the edge-agent heartbeat (/api/v1/agent/heartbeat) | Network address. Edge agents and scripts behind the same plant address share its budget |
| Anything else made without a credential | Network address |
| Every request, whatever its credential | Network address, as a cap on all requests together: 3,000 per minute, counted before any credential is read. People and integrations behind one site address share it |
The /health check is not counted. The authentication endpoints under /api/v1/auth/ are not counted against the read and write limits above, but each network address may make at most 600 requests per minute to them, within its 3,000 overall. Sign-in has its own protection as well: 10 failed attempts within 10 minutes lock the account for 15 minutes, and further attempts return 429 until the lock lifts.
Additional limits
Two kinds of request are expensive to serve, so they also have a tighter cap of 10 requests per minute per company, on top of the read limit above. The requests below share that one cap:
- Report downloads:
GET /api/v1/reports/fleet-summary,/oee,/maintenance,/downtime, and/work-orders, building a custom report withPOST /api/v1/reports/custom, and running a saved report withPOST /api/v1/reports/templates/{template_id}/run. - AI narratives:
GET /api/v1/machines/{machine_id}/prediction/narrative.
Over the cap these return 429 with Retry-After: 60. These 429 responses do not carry the X-RateLimit-* headers.
AI features
The AI features (prediction narratives, tag auto-mapping, the assistant and alert-rule suggestions) also have a company-wide limit on how often they can be called within a few minutes. A company that uses Haltless's own AI model has a monthly allowance as well, which renews on the first of the month; you can instead choose your own AI endpoint under Settings → AI. Over either limit the request returns 429 with a message saying which. Retry after the interval in Retry-After; for the monthly allowance, wait for it to renew.
Response headers
Responses within the limit carry the current budget for the caller (the person or key):
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 597
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
Request IDs and readable headers
Every response carries an X-Request-ID header. You can send your own X-Request-ID so your logs and ours use the same id. It is kept only if it is 1 to 128 letters, digits, dots, underscores, colons or hyphens; otherwise Haltless uses a generated id. Quote the id when you contact support.
Browser scripts calling the API from an allowed origin can read X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After, X-Request-ID, Content-Disposition and X-Export-Truncated.
When you are rate limited
Exceeding a limit returns 429 Too Many Requests with a Retry-After header and a JSON body:
HTTP/1.1 429 Too Many Requests
Retry-After: 12
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1754558400
{
"detail": "Too many requests. Please try again later.",
"retry_after": 12
}
| Header | Description |
|---|---|
Retry-After | Seconds to wait before the next request will be accepted |
X-RateLimit-Reset | Unix timestamp when the window resets |
Best practices
Respect Retry-After. On a 429, wait the indicated number of seconds before retrying rather than retrying immediately.
Back off exponentially. For automated clients, add exponential backoff with jitter on repeated 429 responses.
import time
import random
def request_with_backoff(make_request, max_retries=5):
for _ in range(max_retries):
response = make_request()
if response.status_code != 429:
return response
retry_after = int(response.headers.get("Retry-After", 5))
time.sleep(retry_after + random.uniform(0, retry_after * 0.1))
raise RuntimeError("Max retries exceeded")
Batch your telemetry. Send up to 1,000 readings in a single POST /api/v1/ingest request instead of one request per reading. See Sensor Data.
Watch X-RateLimit-Remaining. Throttle your client proactively as the remaining count approaches zero.