Rate limits
The rate limits on Zoie's public HTTP APIs, OAuth endpoints and MCP server — window, maximum and what each is counted per — plus the RateLimit headers and the 429 response.
Zoie limits requests in layers. Every request to the API counts against a per-IP ceiling, and each public endpoint adds a tighter limit of its own. The figures below are the defaults. Zoie can change them, so read the RateLimit headers rather than hard-coding the numbers.
Zoie API limits
| Limit name | Applies to | Default | Counted per |
|---|---|---|---|
global-ip | Every request to https://api-us.zoie.ai | 600 per minute | IP address |
blocklist-api | GET /api/v1/public/blocklist/check and GET /api/v1/public/blocklist | 120 per minute | Business |
public-lead | GET /api/v1/public/forms/:id, POST /api/v1/public/submitForm, GET /api/v1/public/getServiceOptions/:business_id, and the inbound webhook URLs | 30 per 15 minutes | IP address plus the form or business ID in the request |
oauth | /oauth/register, /oauth/authorize, /oauth/authorize/decision and /oauth/token | 20 per 15 minutes | IP address |
form-api-key-gen | Generating a form API key in the form builder | 5 per hour | — |
The Limit name is what comes back in the limit field of a 429 body.
Blocklist API
- The limit is per business, not per key. All of a business’s keys share one bucket of 120 requests a minute, so a second key doesn’t give you more headroom.
- Zoie checks the key before it counts the request, so requests with a missing or bad key don’t use up the business’s allowance. They still count towards
global-ip. - A check per form submission fits comfortably for most sites. If you need the whole list, sync it with
GET /blocklist?since=...on a schedule rather than calling/checkin bulk.
Forms API
public-lead is built for visitors’ browsers, where each visitor has their own IP address. It’s counted per IP address and form, and loading a form (GET /forms/:id) and submitting it share the same bucket.
MCP server limits
| Applies to | Default | Counted per |
|---|---|---|
Every request to https://mcp-us.zoie.ai (initialize, tools/list, tools/call and so on) | 120 per minute | User |
tools/call for send_message | 10 per minute, on top of the limit above | User |
The MCP server counts per user, not per connection: two clients connected by the same Zoie user share the allowance. Its 429 bodies are:
{ "error": "rate_limited", "message": "Too many requests." }
{ "error": "rate_limited", "message": "Too many outbound messages. Slow down." }
Campaign tools also refuse audiences larger than 500 leads by default. That’s a size cap rather than a rate limit. See Campaigns.
Reading the headers
Responses carry the IETF draft RateLimit headers:
RateLimit-Policy: 120;w=60
RateLimit: limit=120, remaining=87, reset=34
| Header | Meaning |
|---|---|
RateLimit-Policy | The limit and its window in seconds (w). |
RateLimit | limit, how many requests are remaining in the current window, and seconds until it resets. |
Retry-After | Sent only with 429: seconds to wait before retrying. |
When more than one limit applies to a request, the headers describe the last one checked, usually the endpoint’s own. On a request rejected before that point, such as a 401 for a bad key, they describe global-ip.
The 429 response
The Zoie API answers every exceeded limit the same way:
HTTP/2 429
Retry-After: 42
Content-Type: application/json; charset=utf-8
{
"success": false,
"error": "Too many requests",
"message": "Too many requests, please try again later.",
"limit": "public-lead",
"retryAfter": 42
}
oauth and form-api-key-gen use their own messages: “Too many OAuth requests, please try again later.” and “Too many API key generations, please try again later.”
Staying within the limits
- Wait for
Retry-Afterbefore retrying a429. Don’t retry in a tight loop, because each attempt counts. - Watch
remainingin theRateLimitheader and slow down before it reaches zero. - Cache blocklist results for a short time if the same contact is checked repeatedly.
- For MCP clients, avoid calling
tools/listbefore every tool call. Every request counts.