API overview
The HTTP endpoints Zoie supports for integrations — the Blocklist API and the Forms API on https://api-us.zoie.ai — with their parameters and responses, and what to use for everything that isn't public.
Zoie’s public HTTP surface is deliberately small: two Blocklist endpoints for checking contacts, and three Forms endpoints for loading forms and submitting them as leads. Everything else the web app does runs on an internal API that isn’t open to integrations. To work with leads, conversations, appointments or campaigns from code, use the MCP server.
Base URL
https://api-us.zoie.ai
Every public endpoint lives under /api/v1/public/. Use HTTPS. The Website API access panel in Zoie and the form builder’s REST API tab both show the full URL for your account in their examples.
Public endpoints
| Method | Path | Credential | Purpose |
|---|---|---|---|
GET | /api/v1/public/blocklist/check | x-zoie-api-key | Check whether a phone number, email address or IP address is blocked. |
GET | /api/v1/public/blocklist | x-zoie-api-key | List the business’s own blocked contacts. |
POST | /api/v1/public/submitForm | None, or X-Form-Api-Key if the form has a key | Submit a response to a form. A full submission creates a lead. |
GET | /api/v1/public/forms/:id | None. The form’s allowed domains apply. | Fetch a form’s public definition. |
GET | /api/v1/public/getServiceOptions/:business_id | None | List a business’s services, for a form’s service picker. |
How to send each credential is covered in Authentication.
Blocklist API
The Blocklist API lets websites a business runs check a contact against that business’s blocked list before accepting a lead, or copy the list to their own systems. The business comes from the API key, so you never send a business ID. Create keys under Settings › Leads › Blocked Leads › Website API access. See API keys.
Check a contact
GET /api/v1/public/blocklist/check
| Query parameter | Required | Description |
|---|---|---|
phone | One of phone, email or ip | Phone number. Send it in E.164 form and URL-encode the + as %2B, for example phone=%2B19495550123. When both numbers have at least 10 digits, they match on the last 10. |
email | Email address. Matching ignores case and surrounding spaces. | |
ip | The visitor’s IPv4 or IPv6 address. | |
include_consent | No | Send true to also count opt-outs (people who texted STOP, or carrier opt-outs). By default they’re ignored, because an opt-out means “don’t message”, not “don’t accept a form”. |
Send any combination of phone, email and ip. Zoie checks them in two passes and returns the first match:
- Zoie’s global list, shared across all businesses. If a value is on the global allowlist, the answer is
blocked: falsestraight away and the business’s own list isn’t checked. The check never reveals the global list’s contents, only the match. - The business’s own list, the contacts shown under Blocked Leads in Zoie.
A check is a passive lookup. It doesn’t record anything against the contact or send any message.
curl -G "https://api-us.zoie.ai/api/v1/public/blocklist/check" \
--data-urlencode "phone=+19495550123" \
--data-urlencode "[email protected]" \
-H "x-zoie-api-key: <API_KEY>"const params = new URLSearchParams({
phone: '+19495550123',
email: '[email protected]',
});
const res = await fetch(`https://api-us.zoie.ai/api/v1/public/blocklist/check?${params}`, {
headers: { 'x-zoie-api-key': process.env.ZOIE_API_KEY },
});
const result = await res.json();
if (result.success && result.blocked) {
// Reject the lead, or route it for review
}| Response field | Type | Description |
|---|---|---|
success | boolean | true when the check ran. |
blocked | boolean | Whether any value you sent is blocked. |
scope | string | business or global when blocked. global_allowlist when a value is explicitly allowed. Absent when nothing matched. |
matched_on | string | phone, email or ip — the value that matched. Present when blocked. |
category | string or null | Why the contact is blocked: manual_spam (blocked by the business), auto_spam (blocked by Zoie’s spam detection), global_spam, quarantine, or, with include_consent=true, stop_optout or carrier_optout. |
reason | string or null | Business blocks only: the reason entered when the contact was blocked. |
Not blocked:
{ "success": true, "blocked": false }
Blocked by the business:
{
"success": true,
"blocked": true,
"scope": "business",
"matched_on": "phone",
"category": "manual_spam",
"reason": "Repeated fake bookings"
}
Blocked on Zoie’s global list:
{
"success": true,
"blocked": true,
"scope": "global",
"matched_on": "email",
"category": "global_spam"
}
List blocked contacts
GET /api/v1/public/blocklist
Returns the business’s own blocked contacts, newest first. Entries from Zoie’s global list are never included.
| Query parameter | Default | Description |
|---|---|---|
page | 1 | Page number, from 1. |
limit | 50 | Entries per page, up to 200. |
since | — | An ISO 8601 date or date-time. Only entries created at or after it are returned. Use it for incremental syncs. A value that can’t be parsed is ignored. |
include_consent | — | Send true to include opt-outs (stop_optout, carrier_optout). |
curl "https://api-us.zoie.ai/api/v1/public/blocklist?limit=200&since=2026-09-01T00:00:00Z" \
-H "x-zoie-api-key: <API_KEY>"const res = await fetch(
'https://api-us.zoie.ai/api/v1/public/blocklist?limit=200&since=2026-09-01T00:00:00Z',
{ headers: { 'x-zoie-api-key': process.env.ZOIE_API_KEY } }
);
const { data } = await res.json();
console.log(`${data.items.length} of ${data.total}`);{
"success": true,
"data": {
"items": [
{
"id": 9182,
"type": "phone",
"phone": "+19495550123",
"email": null,
"ip": null,
"category": "manual_spam",
"created_at": "2026-09-30T14:03:11.000Z"
}
],
"total": 1,
"page": 1,
"limit": 200
}
}
| Item field | Description |
|---|---|
id | The entry’s ID. |
type | What the entry blocks, usually phone, ip or both. |
phone, email, ip | The blocked values. Fields that don’t apply are null. |
category | As in the check response. Can be null for older entries. |
created_at | When the contact was blocked, in UTC. |
See Pagination for paging through a long list.
Forms API
These are the endpoints Zoie’s own embedded forms and shareable form pages use. You can also call submitForm from your server to send leads into a Zoie form. To set up a form for this, see Embedding forms.
Submit a form
POST /api/v1/public/submitForm
Content-Type: application/json
| Body field | Required | Description |
|---|---|---|
formId | Yes | The form’s ID, the form_id in its embed code. |
leadDetails | Yes, unless you send a flat body | The submitted values, keyed by each field’s lead-field name (for example first_name, email, phone_number). The form builder’s REST API tab has a Copy JSON button that gives you a body with this form’s exact keys. |
lead_type | No | Defaults to Form_Lead. |
form_status | No | Zoie’s own forms send Form Sent. Any value containing “abandon” (for example Abandoned Form) saves a partial capture without creating a lead. |
Instead of nesting values in leadDetails, you can send a flat body. Every key other than formId, lead_type, form_status and leadDetails is then treated as a field value.
curl -X POST "https://api-us.zoie.ai/api/v1/public/submitForm" \
-H "Content-Type: application/json" \
-H "X-Form-Api-Key: <FORM_API_KEY>" \
-d '{
"formId": "3f6c2a9e-8d41-4b7a-9c55-2e1f0a7b6d13",
"lead_type": "Form_Lead",
"form_status": "Form Sent",
"leadDetails": {
"first_name": "Maya",
"last_name": "Patel",
"email": "[email protected]",
"phone_number": "+19495550123",
"service": "Teeth whitening"
}
}'const res = await fetch('https://api-us.zoie.ai/api/v1/public/submitForm', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Form-Api-Key': process.env.ZOIE_FORM_API_KEY, // only if the form has a key
},
body: JSON.stringify({
formId: '3f6c2a9e-8d41-4b7a-9c55-2e1f0a7b6d13',
lead_type: 'Form_Lead',
form_status: 'Form Sent',
leadDetails: {
first_name: 'Maya',
last_name: 'Patel',
email: '[email protected]',
phone_number: '+19495550123',
service: 'Teeth whitening',
},
}),
});
const result = await res.json();A successful submission returns 201:
{
"success": true,
"message": "Lead created successfully from form submission.",
"data": {
"id": 48213,
"business_id": 112,
"first_name": "Maya",
"last_name": "Patel",
"email": "[email protected]",
"phone_number": "+19495550123",
"lead_type": "Form_Lead",
"lead_status": "New",
"is_duplicate": false
}
}
data is the lead that was created. It has more fields than shown here. Rely on id, and treat the rest as informational. What happens on the way:
- Validation. Required fields and email format are checked against the form’s own definition. Fields shown only under a condition are skipped.
- Blocked contacts. If the phone, email or IP is on the business’s blocked list, nothing is created.
- Duplicates. A submission that matches an existing lead still creates a lead, flagged as a duplicate or related lead. It isn’t rejected.
- Follow-up. The new lead gets the same treatment as one from the embedded form: AI outreach if the business has it switched on for form submissions, and new-lead notifications.
The status codes and messages for each failure are listed in Errors.
Fetch a form
GET /api/v1/public/forms/:id
Returns what the embed script needs to render the form: id, form_title, form_subtitle, fields, status, the styling fields (primary_color, background_color, background_image, background_type, font_family, overlay_opacity), collect_abandoned_leads, and a Business object with id, business_logo and the business name. The form’s allowed domains apply, and a form API key doesn’t bypass them on this endpoint.
{
"success": true,
"data": {
"id": "3f6c2a9e-8d41-4b7a-9c55-2e1f0a7b6d13",
"form_title": "Get Free Consultation",
"form_subtitle": "Tell us what you need and we'll call you back.",
"fields": [],
"status": "published",
"collect_abandoned_leads": true,
"Business": { "id": 112, "business_logo": null, "business_name": "Bright Smile Dental" }
}
}
List a business’s services
GET /api/v1/public/getServiceOptions/:business_id?page=1&limit=10
Returns the services a business offers, newest first, for a form’s service picker. limit defaults to 10 and can go up to 100.
{
"success": true,
"data": [
{
"id": 501,
"name": "Teeth whitening",
"description": "In-chair whitening, 60 minutes",
"price": "From $299",
"currency_code": "USD",
"type": "Starting at",
"image_url": null
}
],
"pagination": { "totalRecords": 1, "currentPage": 1, "totalPages": 1 }
}
price is display text, not a number. It’s null when the business has switched off sharing that service’s price. type is the pricing type shown next to the price: Fixed, Hourly, Starting at or Custom.
Webhook endpoints
Two more inbound HTTP endpoints are documented with webhooks rather than here: the per-workflow incoming webhook URL that starts a workflow, and the website lead webhook. See Webhooks overview.
What isn’t public
| Not public | Why | Use instead |
|---|---|---|
The web app’s API under /api/v1/auth/... (leads, conversations, campaigns, calls, appointments, reports, agents, settings, users) | It needs a signed-in user’s session token, is shaped around the web app’s screens, and changes without notice. | The MCP server for leads, notes, conversations, appointments and campaigns. |
| The chat widget and webchat endpoints | They exist for the widget script. | The website widget snippet. |
| The public booking page endpoints | They exist for Zoie’s hosted booking page and may change; they’re not a versioned integration API. | A booking link or the widget. If you must build your own flow, see Booking page endpoints. |
Common needs and where they’re met:
| You want to… | Use |
|---|---|
| Search, create or update leads and notes | MCP tools such as search_leads, create_lead, update_lead and add_lead_note. See Available tools. |
| Send an SMS, WhatsApp message or email to a lead | MCP send_message, or a workflow messaging action. |
| Get notified when a lead is created or changes status | A workflow with a Send webhook action. |
| Bulk-load leads | Importing leads in the web app. |
| Reports, call recordings, transcripts, AI agent settings, users or billing | The web app only. |