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

FieldPresentMeaning
successAlwaystrue if the request did what you asked, false if not.
messageOn every failure, and on some successesA human-readable sentence. Fine to log, but don’t parse it.
dataOn most successesThe result. Some endpoints put their fields at the top level instead (see below).
errorsOn form validation failuresAn 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

EndpointStatusBody
GET /blocklist/check200success, blocked, plus scope, matched_on, category and reason when they apply. No data wrapper.
GET /blocklist200success, and data with items, total, page and limit.
POST /submitForm (lead created)201success, message (“Lead created successfully from form submission.”), and data, the new lead.
POST /submitForm (abandoned capture)201success, message (“Abandoned form data saved successfully.”), and data, the saved partial submission. No lead is created.
GET /forms/:id200success, and data, the form’s public definition.
GET /getServiceOptions/:business_id200success, 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

CodeUsed for
200Successful reads.
201A form submission that saved a lead or an abandoned capture.
400Missing or invalid parameters, invalid JSON, a form that failed validation, or a failed bot check.
401A missing, unknown or revoked key.
403The request’s origin isn’t on the form’s allowed domains, or the contact is blocked.
404The form doesn’t exist.
413The body or the submitted values are too large.
429A rate limit was hit. See Rate limits.
500Something failed on Zoie’s side.

Response headers

HeaderMeaning
X-Request-IDThe request’s ID: yours if you sent X-Request-ID, otherwise one Zoie generated. Quote it when you report a problem.
RateLimit-Policy, RateLimitThe rate limit that applied and how much of it is left. See Rate limits.
Retry-AfterOn 429 only: seconds until you can try again.

Data types

Kind of valueFormat
Lead, business, service and blocked-entry IDsIntegers, for example 48213.
Form IDsUUID strings, for example 3f6c2a9e-8d41-4b7a-9c55-2e1f0a7b6d13.
TimestampsISO 8601 strings in UTC, for example 2026-09-30T14:03:11.000Z.
Missing valuesnull. 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 received and ran, and no success. See Webhooks overview.
  • The MCP server. It answers JSON-RPC. Tool results come back as MCP content. HTTP-level errors such as 401 and 429 use error and message fields. See MCP server contract.