Leads
There is no public REST endpoint for leads; how to get leads into Zoie (forms API, workflow and website webhooks, embeds), read and change them with MCP tools, check contacts with the Blocklist API, and push leads to your own systems.
There is no public REST endpoint for listing, reading or updating leads. The lead endpoints the web app calls are internal: they need a signed-in user’s session and change without notice, so don’t build on them. This page covers what you can use instead.
What you can do
| Task | Use | Reference |
|---|---|---|
| Send a lead in from your website or back end | The forms API: POST /api/v1/public/submitForm | Forms |
| Send a lead in from another tool, with your own field mapping | A workflow’s incoming webhook URL | Workflow webhook trigger below |
| Capture leads from visitors on your site | The website widget, an embedded form or a booking link | Embeds overview |
| Search, read, create or update leads from code or an AI assistant | MCP tools | Read and change leads with MCP below |
| Check whether a contact is blocked before you accept it | The Blocklist API | Check blocked contacts below |
| Be told when a lead arrives or changes | A workflow ending in Send webhook | Push leads to your systems below |
| Load or download leads in bulk | Import and Export Leads in the web app | Importing leads |
Get leads into Zoie
Forms API
POST https://api-us.zoie.ai/api/v1/public/submitForm turns an entry for one of your Zoie forms into a lead, the same way the embedded form does. It takes the form’s API key in X-Form-Api-Key if the form has one. Duplicate detection, blocked-list checks, AI follow-up and notifications all apply. See Forms for the full reference.
Workflow webhook trigger
A workflow that starts with the Webhook trigger has its own URL. Copy it from the trigger’s settings in the workflow builder. Once the workflow is published, each JSON body you POST to it starts a run, and a Create lead step maps the incoming fields to a lead. See Triggers and actions for setting this up.
POST https://api-us.zoie.ai/api/v1/auth/webhooks/trigger/{token}
Content-Type: application/json
curl -X POST "https://api-us.zoie.ai/api/v1/auth/webhooks/trigger/wf_3b9f0c..." \
-H "Content-Type: application/json" \
-d '{ "name": "Jane Smith", "email": "[email protected]", "phone": "+15551234567" }'const res = await fetch(process.env.ZOIE_WORKFLOW_WEBHOOK_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name: 'Jane Smith',
email: '[email protected]',
phone: '+15551234567',
}),
});
console.log(res.status, await res.json()); // 202 { received: true, ran: true }| Status | Body | Meaning |
|---|---|---|
202 | { "received": true, "ran": true } | Accepted. The run is queued, so the response has no lead ID. |
202 | { "received": true, "ran": false, "reason": "workflow not live" } | Stored as the builder’s sample payload, but the workflow isn’t published and enabled. Send one request like this before you map fields. |
404 | { "message": "Not found" } | The token is wrong, or the URL was rotated. |
413 | { "message": "Payload too large" } | The body is over 64 KB. |
429 | 30 requests per 15 minutes per IP address by default. |
The URL is the only credential, so keep it secret and rotate it if it leaks. Call it from a server or another tool: browsers on other sites can’t read the response. More on webhooks in the Webhooks overview.
Website lead webhook
Websites that Zoie has set up as lead sources can post leads to POST https://api-us.zoie.ai/api/v1/auth/form-leads-webhook. Zoie matches each lead to its business by the website_user_name field. Extra keys whose names match an active custom field are saved to that field. See the Webhooks overview.
Embeds and booking links
The website widget, embedded forms and booking links all create leads with no code beyond a snippet or a link. Booking links are covered in Appointments.
Read and change leads with MCP
The Zoie MCP server at https://mcp-us.zoie.ai is the only programmatic way to read and change lead records. Any MCP client can call it, including your own code using an MCP SDK. Each call runs as the user who authorised the connection, within their role, in the businesses they approved.
| Tool | What it does | Scope |
|---|---|---|
search_leads | Free-text search across name, email and phone, newest first, up to 100 per page. | leads:read |
get_lead | One lead by ID. | leads:read |
get_lead_by_phone | Find a lead by phone number. | leads:read |
get_lead_activity | A lead’s activity timeline. | leads:read |
global_search | Search across leads and their related records. | search:read |
create_lead | Create a lead. first_name is required. | leads:write |
update_lead | Change fields on one lead, including status, appointment status, service, labels and assignee. | leads:write |
assign_lead | Assign a lead to a team member. | leads:write |
bulk_update_leads | Give several leads the same status, labels or service. | leads:write |
get_lead_notes, add_lead_note, update_lead_note | Read, add and edit notes. | notes:read, notes:write |
There is no tool for deleting leads or exporting them. Parameters and responses are in Available tools. The user-facing version is Leads tools.
Check blocked contacts
The Blocklist API answers one question for the websites a business runs: is this phone number, email address or IP address blocked? It uses a per-business API key in the x-zoie-api-key header, which you create in Settings › Leads › Blocked Leads › Website API access.
| Method | Path | Purpose |
|---|---|---|
GET | /api/v1/public/blocklist/check?phone=&email=&ip= | Check one contact. Returns blocked: true or false, with what matched. |
GET | /api/v1/public/blocklist | List the business’s own blocked contacts, with since for incremental syncs. |
curl -G "https://api-us.zoie.ai/api/v1/public/blocklist/check" \
--data-urlencode "phone=+15551234567" \
-H "x-zoie-api-key: $ZOIE_API_KEY"const params = new URLSearchParams({ phone: '+15551234567' });
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 { blocked } = await res.json();{ "success": true, "blocked": true, "scope": "business", "matched_on": "phone", "category": "manual_spam", "reason": "Repeated fake bookings" }
The API allows 120 requests per minute per business by default. The full reference, with every parameter, response field and error, is in the Blocklist API section of the API overview.
You don’t need to call the check before using the forms API: submitForm checks the blocked list itself.
Push leads to your systems
Zoie has no event subscriptions to register. Instead, build a workflow whose trigger is the event you care about, for example New Lead Added or Lead Status Changed, and add a Send webhook action. Zoie then sends the lead to your HTTPS endpoint:
{
"event": "workflow.action.webhook",
"workflow": { "id": 87, "name": "New leads to our CRM" },
"sent_at": "2026-10-02T09:14:09.120Z",
"lead": {
"id": 18342,
"business_id": 42,
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]",
"phone_number": "+15551234567",
"lead_status": "New",
"lead_source": null,
"labels": null
}
}
The request uses the method you chose (POST or PUT) and carries X-Zoie-Webhook-Secret if you set a secret. Zoie waits up to 10 seconds, doesn’t follow redirects, and treats any status of 400 or above as a failed step. See the Webhooks overview.
Related
- API reference overview
- Lead fields — what each field on a lead means
- Custom fields