Rate limits

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.

LimitValueWindowCounted

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.

HeaderMeaning

RateLimit-Limit

The limit for the bucket that is closest to running out

RateLimit-Remaining

Requests left in the window

RateLimit-Reset

Seconds until the window resets

Retry-After

On a 429 only. Whole seconds to wait, at least 1

bash
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:

json
{
  "error": "Too many requests. Try again shortly.",
  "code": "rate_limited"
}

Wait, then continue.

  • On 429, stop and wait Retry-After seconds. Then resume.

  • Read RateLimit-Remaining and slow down before it reaches zero.

  • Page with limit=100 to 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.

Other limits you may meet.