Reference
Rate limits
Limits protect your budget as much as the platform: a runaway agent loop hits a rate limit long before it can drain an account.
Code samples in
How limits work#
- Limits count requests in fixed 60-second windows, separately for each API key (or each signed-in user) and each group of endpoints.
- Every API key has its own per-minute limit, set when it is created: 10 to 600, default 120. Endpoints marked
keybelow use it; signed-in sessions get 240 per minute there. - Some endpoints have a fixed limit that applies whatever the key's own setting, because they spend money, credits or outbound requests.
- Spending policies add their own
maxPaymentsPerMinuteandmaxPaymentsPerHour; those refuse payments (cumulative_limit) rather than requests.
Endpoints using the key's own limit: GET /api/agents, GET /api/agents/:id, GET /api/agents/:id/account, GET /api/agents/:id/transactions, GET /api/agents/:id/analytics, GET /api/policies, GET /api/policies/:id, GET /api/policies/:id/versions, GET /api/analytics/reports, GET /api/analytics/reports/:id, GET /api/ai/chat.
When you hit one#
429 response
HTTP/1.1 429 Too Many Requests
Retry-After: 17
Content-Type: application/json
{ "error": { "code": "rate_limited", "message": "Too many requests. Try again in 17s.", "details": { "retryAfter": 17 } } }Wait the number of seconds in Retry-After (also in details.retryAfter), then retry with the same Idempotency-Key. A 429 on a payment route never consumes the key. The SDK raises RateLimitError with retryAfter.
Fixed per-endpoint limits#
Other limits#
| What | Limit |
|---|---|
GET /api/session/guest | 20 new guest sessions per hour per IP address in production |
POST /api/auth/nonce | 30 per minute per IP address |
POST /api/auth/verify | 20 per minute per IP address |
/x402/sandbox/:slug | 120 per minute per IP address |
GET /api/leaderboard, GET /api/weekly | 60 per minute per IP address |
POST /api/services/register | 5 per 10 minutes per user, 20 per day per workspace; dry runs 20 per 10 minutes |
POST /api/services/:id/validate | 10 per 10 minutes per user |
POST /api/ai/chat | 80 questions per day per workspace |
POST /api/analytics/reports | 12 reports per day per workspace |
Need more?
Raise a key's limit in Developer Console → API keys (up to 600 per minute). Spread work across several keys only if each agent should have its own budget of requests.