Responses
The JSON shape Zoie's public HTTP APIs return — the success flag, where the data sits for each endpoint, status codes, response headers, and the data types used for IDs and timestamps.
Every response from the Blocklist API and Forms API is JSON (Content-Type: application/json; charset=utf-8) with a boolean success at the top level. Check the HTTP status first, then success.
The envelope
| Field | Present | Meaning |
|---|---|---|
success | Always | true if the request did what you asked, false if not. |
message | On every failure, and on some successes | A human-readable sentence. Fine to log, but don’t parse it. |
data | On most successes | The result. Some endpoints put their fields at the top level instead (see below). |
errors | On form validation failures | An object mapping each field key to its problem. |
A failure always looks like this, sometimes with an extra field:
{ "success": false, "message": "Invalid or revoked API key." }
The full list of failures is in Errors.
Success shapes by endpoint
| Endpoint | Status | Body |
|---|---|---|
GET /blocklist/check | 200 | success, blocked, plus scope, matched_on, category and reason when they apply. No data wrapper. |
GET /blocklist | 200 | success, and data with items, total, page and limit. |
POST /submitForm (lead created) | 201 | success, message (“Lead created successfully from form submission.”), and data, the new lead. |
POST /submitForm (abandoned capture) | 201 | success, message (“Abandoned form data saved successfully.”), and data, the saved partial submission. No lead is created. |
GET /forms/:id | 200 | success, and data, the form’s public definition. |
GET /getServiceOptions/:business_id | 200 | success, data (an array of services), and pagination with totalRecords, currentPage and totalPages. |
Field-by-field descriptions and example bodies are in the API overview.
Status codes
| Code | Used for |
|---|---|
200 | Successful reads. |
201 | A form submission that saved a lead or an abandoned capture. |
400 | Missing or invalid parameters, invalid JSON, a form that failed validation, or a failed bot check. |
401 | A missing, unknown or revoked key. |
403 | The request’s origin isn’t on the form’s allowed domains, or the contact is blocked. |
404 | The form doesn’t exist. |
413 | The body or the submitted values are too large. |
429 | A rate limit was hit. See Rate limits. |
500 | Something failed on Zoie’s side. |
Response headers
| Header | Meaning |
|---|---|
X-Request-ID | The request’s ID: yours if you sent X-Request-ID, otherwise one Zoie generated. Quote it when you report a problem. |
RateLimit-Policy, RateLimit | The rate limit that applied and how much of it is left. See Rate limits. |
Retry-After | On 429 only: seconds until you can try again. |
Data types
| Kind of value | Format |
|---|---|
| Lead, business, service and blocked-entry IDs | Integers, for example 48213. |
| Form IDs | UUID strings, for example 3f6c2a9e-8d41-4b7a-9c55-2e1f0a7b6d13. |
| Timestamps | ISO 8601 strings in UTC, for example 2026-09-30T14:03:11.000Z. |
| Missing values | null. Optional fields may also be left out entirely, like scope on a check that matched nothing. |
Write your client to ignore fields it doesn’t recognise, and to treat data on submitForm as informational, relying only on data.id.
Responses that don’t use this envelope
- Webhook URLs. A workflow’s incoming webhook answers with fields like
receivedandran, and nosuccess. See Webhooks overview. - The MCP server. It answers JSON-RPC. Tool results come back as MCP content. HTTP-level errors such as
401and429useerrorandmessagefields. See MCP server contract.