Skip to main content

Rate limits

120 requests/minute per token (configurable per deployment via API_TOKEN_THROTTLE_RATE). The limit is counted per token, not per IP — session requests from the app are never throttled here.

Over the limit you get 429 with a Retry-After header and:

{ "code": "rate_limited", "message": "Rate limit exceeded. Please slow down.", "retry_after": 42 }

Back off for retry_after seconds and retry.

For batch jobs, spread requests or use one scoped token per integration. Agent sessions occasionally hit the limit during long multi-step tasks; they recover on their own. Each person can hold at most 25 active tokens, so extra tokens don't buy extra throughput.

A few endpoints also have their own per-person limits, whatever the credential. Attachments allow 120 presign requests and 120 register requests a minute, and at most 10 X video registrations a minute, since WriteMars runs ffprobe on each video. Over these limits you get 429 with { "message": "Too many requests. Please try again later." }; wait a minute and retry. A video refused this way stays in storage, so retry the same registration without uploading it again.

Sign-in endpoints under /auth/ are limited per client address. The web app reaches the API through a proxy, so browser sign-ins count against the proxy's address, shared with everyone else whose requests leave through it; only clients that call the API directly are counted on their own address.

Hitting 429 unexpectedly? See Troubleshooting API errors.