Skip to content
Panel

API Reference Basics

Rate limits

Per-key request limits, spending caps, test-key quotas and the trust levels that set them.

mot limits requests per key and spending per account. When a limit applies, the call is refused before it runs and before any money is held, and the response is 429 with a reason that names the limit.

#Requests per minute

A key can carry a requests-per-minute limit, set when the key is created. Tool calls on the MCP endpoint count against it in a sliding 60-second window. A key without a limit has no per-minute cap.

When the window is full, the call returns 429 rate_limited with Retry-After: 60.

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32004,
    "message": "429 rate_limited",
    "data": { "status": 429, "reason": "rate_limited", "retry_after_s": 60 }
  },
  "id": 7
}

#Spending caps

Paid calls are checked against three caps before they run:

CapreasonReset
Daily cap of the accountdaily_capEvery day, UTC
Monthly cap of the accountmonthly_capFirst day of the month, UTC
Daily cap of the key, if the key has onekey_daily_capEvery day, UTC

The account caps come from the account's trust level (table below). The key cap is optional and set when the key is created. All amounts are in micro-USD (1 USD = 1 000 000).

#Trust levels

Every account has a trust level. The level decides which tool families the account may call and sets its default caps.

LevelTool familiesDaily capMonthly capMail recipients per day
Tmdm, mirc, comms, threat, murl, line0 USD0 USD0
Z0the above, plus mail, mrag, ptt, call, wires50 USD100 USD200
Z1the above, plus sms_byoc100 USD500 USD5 000
Z2the same as Z1250 USD1 000 USDno daily limit

An account moves from T to Z0 with its first top-up of at least 10 USD. A call to a family outside the account's level returns 403 trust_too_low, and error.data.trust names the current level.

The mail limit counts recipients per day and resets at 00:00 UTC. Going over it returns 429 mail_daily_limit.

#Test keys

A test key carries no money, so it has its own quotas instead of caps:

LimitValuereason when reached
Tool calls per day300429 test_daily_calls
Sends per day200429 test_daily_sends
Tool familiesthose of level T, without line403 test_family_forbidden
Recipients and channelsown tunnels and channels of the account only403 test_recipient_not_own, 403 test_channel_not_own
Lifetime30 days401 invalid_credential after expiry

#Event streams

A key holds at most 5 open event streams at a time. A sixth returns 429 too_many_streams with Retry-After: 30. See Events.

#Sign-in and sign-up limits

The account endpoints count attempts per account, per network address and, for sign-up, across the whole service. A refused call returns 429 with the wait in Retry-After (seconds) and in error.data.retry_after_s. An address is the IP address the request came from.

CallLimitreason
POST /v1/auth/login10 attempts per 15 minutes per account, 30 per 15 minutes per addresstoo_many_attempts
POST /v1/auth/magic (sign-in link)10 requests per hour per address, 3 per 15 minutes per e-mail addresstoo_many_attempts
POST /v1/auth/password/forgot10 requests per hour per address, 3 per 15 minutes per e-mail addresstoo_many_attempts
Resending the e-mail confirmation code5 per hour per account, 20 per hour per addresstoo_many_attempts
E-mail confirmation code, wrong entriesthe code stops working after its attempts are usedcode_attempts_exhausted
POST /v1/auth/signup5 per hour per address, 500 per day for the whole servicesignup_rate_ip, signup_rate_global
Starting a Google or GitHub sign-in30 per 15 minutes per addresstoo_many_attempts

Two 503 answers belong to the same endpoints: magic_unavailable means the server cannot send the sign-in link e-mail at the moment, and auth_busy means the sign-in queue is full; try again after the Retry-After wait, or after a minute when the header is absent.

#Request size

A REST request body is at most 64 KB. A larger body returns 413 body_too_large.

#Retry strategy

Read Retry-After when it is present and wait that many seconds. Every 429 from the REST API and every 429 or short-lived 503 (auth_busy, unmeasured) carries it; a 503 that reports a switched-off feature does not, because waiting does not help. For daily_cap, monthly_cap, key_daily_cap and the test quotas, retrying the same day does not help: the call succeeds only after the reset or after the limit is raised.