Errors
Every status code and error message the Blocklist API and Forms API return, what causes each one and how to fix it, plus the error shapes the MCP server uses.
A failed request returns a 4xx or 5xx status and a JSON body with success: false and a message. The messages below are the exact strings Zoie sends. Match on the status code, and use the message for logs and troubleshooting.
{ "success": false, "message": "Provide at least one of: phone, email, ip." }
Blocklist API
| Status | message | Cause and fix |
|---|---|---|
401 | Missing API key. Send your key in the x-zoie-api-key header. | No x-zoie-api-key header, or it was empty. Sending the key as Authorization: Bearer doesn’t work. |
401 | Invalid or revoked API key. | The key was mistyped, revoked, or isn’t a business API key. A form key (zfk_...) won’t work here. Check Website API access in Zoie and generate a new key if needed. |
400 | Provide at least one of: phone, email, ip. | /blocklist/check got none of the three parameters, or only empty ones. |
429 | Too many requests, please try again later. | A rate limit was hit. Wait for Retry-After. See Rate limiting. |
500 | Authentication error. | Zoie couldn’t verify the key. Retry with backoff. |
500 | Failed to check contact. | The check failed on Zoie’s side. Retry with backoff, and decide whether your site should accept or hold the lead meanwhile. |
500 | Failed to load blocked contacts. | The list request failed on Zoie’s side. Retry with backoff. |
Forms API
Submitting a form
POST /api/v1/public/submitForm checks a submission in this order and stops at the first failure:
| Status | message | Cause and fix |
|---|---|---|
400 | formId and leadDetails are required (or send a flat body with formId and field keys). | The body has no formId. |
413 | Submission payload exceeds maximum allowed size. | The submitted values are over 256 KB as JSON. |
404 | Form not found. | No form has that ID. Copy the ID from the form’s embed code. |
401 | Invalid or missing API key. | The form has a form API key and the request didn’t send X-Form-Api-Key, or sent the wrong one. If you rotated the key, update your server. |
403 | origin_not_allowed | The form has Allowed Domains, the request had no valid form key, and its Origin/Referer isn’t on the list. Server-side calls send neither header, so they need a form key. |
400 | Please correct the highlighted fields. | Required fields are missing or an email address is badly formed. errors says which (see below). |
400 | Bot verification failed. Please try again. | The submission failed Zoie’s bot check. |
403 | We could not submit this form. Please contact us directly. | The phone, email or IP is on the business’s blocked list. The wording is deliberately vague so it can be shown to the visitor. |
500 | An error occurred while submitting the form. | Saving failed on Zoie’s side. The body also has an error field with technical detail. A formId that isn’t a UUID also ends up here. |
A validation failure lists each problem by field key. A missing field gets the field’s label followed by is required:
{
"success": false,
"message": "Please correct the highlighted fields.",
"errors": {
"first_name": "First Name is required",
"email": "Please enter a valid email address"
}
}
Loading a form and services
| Endpoint | Status | message | Cause |
|---|---|---|---|
GET /forms/:id | 404 | Form not found | No form has that ID. |
GET /forms/:id | 403 | origin_not_allowed | The form has Allowed Domains and the request’s origin isn’t on it, or the request has no Origin/Referer. A form key doesn’t bypass this on GET. |
GET /forms/:id | 500 | Server error | Loading failed. This is also what you get for an ID that isn’t a UUID. |
GET /getServiceOptions/:business_id | 400 | Invalid business_id. | The business ID isn’t a positive whole number. |
GET /getServiceOptions/:business_id | 500 | Internal server error. | Loading failed on Zoie’s side. |
Errors on any endpoint
| Status | Body | Cause |
|---|---|---|
400 | success: false and the JSON parser’s message, for example Expected property name or '}' in JSON at position 1 (line 1 column 2) | The body isn’t valid JSON. |
413 | success: false and request entity too large | The whole body is over 5 MB. |
404 | An HTML page, Cannot GET /api/v1/public/... | The path or method doesn’t exist. This one isn’t JSON. Check the URL and method. |
Rate limiting
Every limiter answers with 429, a Retry-After header and this body. limit names the limiter, and retryAfter repeats the header’s value in seconds:
{
"success": false,
"error": "Too many requests",
"message": "Too many requests, please try again later.",
"limit": "blocklist-api",
"retryAfter": 42
}
The limits behind each name are in Rate limits.
Handling errors
| Status | What to do |
|---|---|
400, 404, 413 | Fix the request. Retrying it unchanged fails the same way. |
401 | Check which key you’re sending and that it hasn’t been revoked or rotated. |
403 | For origin_not_allowed, add the site to the form’s Allowed Domains or use a form key from your server. For a blocked contact, don’t retry. |
429 | Wait for Retry-After seconds, then retry. |
500 | Retry with exponential backoff. For submitForm, read Retries and duplicates first. If it persists, contact Zoie support with the X-Request-ID from the response. |
MCP server errors
The MCP server returns its own shapes. At the HTTP level:
| Status | Body | Cause |
|---|---|---|
401 | {"error":"unauthorized","message":"Missing bearer token."} | No token, or an invalid or expired one. A WWW-Authenticate header points to the OAuth metadata. |
401 | {"error":"invalid_token","message":"MCP access has been revoked. Reconnect to continue."} | The user revoked the connection in Zoie. |
403 | {"error":"forbidden","message":"Origin … is not allowed."} | A browser request from an origin the server doesn’t allow. |
429 | {"error":"rate_limited","message":"Too many requests."} | Too many requests. send_message has its own tighter limit with the message Too many outbound messages. Slow down. |
Problems inside a tool call, such as a missing scope, a missing business_id on a multi-business connection, or a request Zoie rejected, come back as a tool result with isError: true rather than an HTTP error. See MCP server contract.