Rate limits
Two limits. Both per minute. Every call to the API counts against two limits at once: a limit for the key and a limit for the client address. The MCP door shares the same two limits. Another key in the same organisation is not affected by yours.
What is counted.
The client address is the address our edge validated for the connection. When both limits apply, the headers show the one with fewer requests left.
| Limit | Value | Window | Counted |
|---|---|---|---|
Per key | 100 requests | 60 seconds | After the key is recognised, before the request runs |
Per client address | 600 requests | 60 seconds | Before the key is looked up, so a flood of bad tokens meets the limit and not the database |
Every response says where you stand.
These headers are on every API v1 response, success or error.
| Header | Meaning |
|---|---|
| The limit for the bucket that is closest to running out |
| Requests left in the window |
| Seconds until the window resets |
| On a 429 only. Whole seconds to wait, at least 1 |
curl -i https://app.terania.ai/api/v1/usage \
-H "Authorization: Bearer $TERANIA_KEY"A plain body and a wait time.
The status is 429 with the header Retry-After. The body is:
{
"error": "Too many requests. Try again shortly.",
"code": "rate_limited"
}Wait, then continue.
On 429, stop and wait
Retry-Afterseconds. Then resume.Read
RateLimit-Remainingand slow down before it reaches zero.Page with
limit=100to use fewer calls for the same rows.Use a webhook instead of polling. See webhooks.
Give each integration its own key. A busy key does not slow the others.