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.
{
"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:
| Cap | reason | Reset |
|---|---|---|
| Daily cap of the account | daily_cap | Every day, UTC |
| Monthly cap of the account | monthly_cap | First day of the month, UTC |
| Daily cap of the key, if the key has one | key_daily_cap | Every 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.
| Level | Tool families | Daily cap | Monthly cap | Mail recipients per day |
|---|---|---|---|---|
T | mdm, mirc, comms, threat, murl, line | 0 USD | 0 USD | 0 |
Z0 | the above, plus mail, mrag, ptt, call, wires | 50 USD | 100 USD | 200 |
Z1 | the above, plus sms_byoc | 100 USD | 500 USD | 5 000 |
Z2 | the same as Z1 | 250 USD | 1 000 USD | no 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:
| Limit | Value | reason when reached |
|---|---|---|
| Tool calls per day | 300 | 429 test_daily_calls |
| Sends per day | 200 | 429 test_daily_sends |
| Tool families | those of level T, without line | 403 test_family_forbidden |
| Recipients and channels | own tunnels and channels of the account only | 403 test_recipient_not_own, 403 test_channel_not_own |
| Lifetime | 30 days | 401 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.
| Call | Limit | reason |
|---|---|---|
POST /v1/auth/login | 10 attempts per 15 minutes per account, 30 per 15 minutes per address | too_many_attempts |
POST /v1/auth/magic (sign-in link) | 10 requests per hour per address, 3 per 15 minutes per e-mail address | too_many_attempts |
POST /v1/auth/password/forgot | 10 requests per hour per address, 3 per 15 minutes per e-mail address | too_many_attempts |
| Resending the e-mail confirmation code | 5 per hour per account, 20 per hour per address | too_many_attempts |
| E-mail confirmation code, wrong entries | the code stops working after its attempts are used | code_attempts_exhausted |
POST /v1/auth/signup | 5 per hour per address, 500 per day for the whole service | signup_rate_ip, signup_rate_global |
| Starting a Google or GitHub sign-in | 30 per 15 minutes per address | too_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.