Zatio API
Connect your CRM, your job management tool, your property or booking system, your event platform or an automation tool to Zatio. Read what your assistant collects and send it what it needs to know.
Overview
The Zatio API is a REST API over HTTPS that answers in JSON. The base URL is https://zatio.io/api/v1.
With it you can read your leads, conversations, messages, appointments and booking requests, and you can write knowledge entries that your assistant uses when it answers. Zatio Events accounts can also create and update attendees and agenda sessions.
To be told when something happens instead of asking, use webhooks: Zatio sends a signed request to your URL when a lead is created, becomes hot, is passed to a person and so on.
There is no Zatio app in the Zapier or Make directories yet. Any tool that can make an HTTPS request with a header (the HTTP module in Make, Webhooks in Zapier, n8n, your own code) can use this API today.
Authentication
Every request needs an API key. An owner or admin of the account creates it in the dashboard: Set-up, Integrations, API keys. The key is shown once, when it is created. Zatio stores only a SHA-256 hash of it, so nobody can look it up later, including us. If you lose it, revoke it and create another.
Send the key in the Authorization header as a bearer token. Keys start with zat_live_.
A key belongs to one account and only ever sees that account. A key has the read scope and, if you choose "Read and write" when you create it, the write scope too. Give each integration its own key so you can revoke one without stopping the others.
An account can have up to 10 active keys. Revoking a key takes effect on the next request and cannot be undone.
Keep keys on your server. Do not put them in a web page, a mobile app or a public repository.
Authorization: Bearer zat_live_YOUR_KEYQuick start
Check that the key works, then read your leads.
curl https://zatio.io/api/v1/me \
-H "Authorization: Bearer zat_live_YOUR_KEY"curl "https://zatio.io/api/v1/leads?limit=50&updated_since=2026-11-01T00:00:00Z" \
-H "Authorization: Bearer zat_live_YOUR_KEY"{
"data": [
{
"id": "6f1c2a0e-3b54-4c1d-9a77-2f0c8d1e5b90",
"name": "Alex Example",
"phone": "+447700900123",
"email": "alex@example.com",
"postcode": "G1 1AA",
"address": null,
"interest": "heat pump",
"status": "new",
"temperature": "warm",
"score": 62,
"summary": "Asked about a heat pump for a three-bedroom house.",
"do_not_contact": false,
"first_contact_at": "2026-11-03T09:12:44.120000+00:00",
"last_activity_at": "2026-11-03T09:20:02.511000+00:00",
"created_at": "2026-11-03T09:12:44.120000+00:00"
}
],
"has_more": true,
"next_cursor": "WyIyMDI2LTExLTAzVDA5OjIwOjAyLjUxMTAwMCswMDowMCIsIjZmMWMyYTBlLi4uIl0"
}Pagination and keeping in sync
Lists return up to limit items (default 50, maximum 100) with has_more and next_cursor. To get the next page, send next_cursor back as cursor, exactly as it came.
Each list is ordered by one date field, oldest first: leads by last_activity_at, conversations by last_message_at, and bookings, booking requests and knowledge entries by updated_at. updated_since filters on that same field. To pick up what is new, send updated_since with an ISO 8601 date-time, or keep the last next_cursor and carry on from it.
For leads and conversations that field moves with new activity (a message or a call). A change your team makes in the dashboard with no new activity, such as the status of a lead or archiving a conversation, does not move the item, so an incremental sync will not see it. Run a full sync from time to time if you need those changes.
An item that changes while you are paging can appear again further on. Save items by their id so a repeat simply updates what you have.
curl "https://zatio.io/api/v1/leads?limit=50&cursor=NEXT_CURSOR_FROM_THE_LAST_PAGE" \
-H "Authorization: Bearer zat_live_YOUR_KEY"Endpoints
All paths are relative to https://zatio.io/api/v1.
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /me | read | The account and key behind the request. Use it to test a connection. |
| GET | /openapi.json | none | This API as an OpenAPI 3.1 document. No key needed. |
| GET | /leads | read | List leads, oldest activity first. |
| GET | /leads/{id} | read | Get one lead. |
| GET | /conversations | read | List conversations, oldest last message first. |
| GET | /conversations/{id}/messages | read | List the messages of one conversation, oldest first. |
| GET | /bookings | read | List appointments in the Zatio calendar, oldest change first. |
| GET | /booking-requests | read | List booking requests your team confirms, oldest change first. |
| GET | /knowledge | read | List the knowledge entries created through the API. |
| GET | /knowledge/{external_id} | read | Get one knowledge entry created through the API. |
| PUT | /knowledge/{external_id} | write | Create or replace a knowledge entry by your own id. |
| DELETE | /knowledge/{external_id} | write | Delete a knowledge entry created through the API. |
| GET | /events | read | List your events (Zatio Events accounts only). |
| PUT | /events/{code}/attendees | write | Create or update attendees of an event by ref. With mode replace, also removes those not in the list. |
| DELETE | /events/{code}/attendees | write | Remove one attendee from an event by ref. |
| PUT | /events/{code}/sessions | write | Create or update agenda sessions of an event by ref. With mode replace, also removes those not in the list. |
| DELETE | /events/{code}/sessions | write | Remove one session from the agenda by ref. |
| GET | /webhook-events | read | List the webhook event types and how they are delivered. |
curl "https://zatio.io/api/v1/conversations/CONVERSATION_ID/messages" \
-H "Authorization: Bearer zat_live_YOUR_KEY"Objects
The API returns the fields below and nothing else. Internal notes, raw provider payloads and the technical details of the AI are not part of it. Messages are the ones written by the contact, the AI assistant and your team; automatic system messages, such as a reminder, are left out.
Fields marked "or null" can be empty.
Lead
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Lead id. |
name | string or null | Name as the contact gave it. |
phone | string or null | Phone number in international format, when known. |
email | string or null | Email address, when the contact gave one. |
postcode | string or null | Postcode, when the contact gave one. |
address | string or null | Address, when the contact gave one. |
interest | string or null | What the contact is interested in, as the assistant understood it. |
status | string or null | Stage set in the dashboard, new, contacted, qualified, won or discarded. |
temperature | string or null | hot, warm or cold, as scored by Zatio. |
score | integer or null | Lead score from 0 to 100, when one has been calculated. |
summary | string or null | Short summary of the latest conversation. |
do_not_contact | boolean | True when the contact asked not to be contacted. Respect it in your own systems. |
first_contact_at | string (date-time) or null | First time the contact wrote or called. |
last_activity_at | string (date-time) or null | Last activity. Lists are ordered by this field and updated_since filters on it. |
created_at | string (date-time) or null | When the lead was created. |
Conversation
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Conversation id. |
lead_id | string (uuid) or null | The lead this conversation belongs to. |
channel | string or null | whatsapp, web or voice. |
status | string or null | Conversation status. |
handover_state | string or null | ai (the assistant is answering), human (your team took over) or closed. |
contact_name | string or null | Contact name on this channel. |
contact_phone | string or null | Contact phone on this channel, in international format, when known. |
message_count | integer | Number of messages. |
summary | string or null | Summary of the conversation, when one has been generated. |
do_not_contact | boolean | True when the contact asked not to be contacted in this conversation. |
archived | boolean | True when the conversation is archived in the dashboard. |
started_at | string (date-time) or null | When the conversation started. |
last_message_at | string (date-time) or null | Time of the last message. Lists are ordered by this field and updated_since filters on it. |
last_inbound_at | string (date-time) or null | Last message from the contact. |
last_outbound_at | string (date-time) or null | Last message to the contact. |
dashboard_url | string (uri) or null | Link to the conversation in the Zatio dashboard. |
Message
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Message id. |
conversation_id | string (uuid) | Conversation id. |
sender | string | Who wrote it: the contact, the AI assistant or a person on your team. |
text | string | Message text. |
created_at | string (date-time) or null | When it was sent. |
Booking
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Booking id. |
status | string or null | booked, cancelled, done or no_show. |
starts_at | string (date-time) or null | Start time. |
ends_at | string (date-time) or null | End time. |
duration_minutes | integer or null | Length in minutes. |
customer_name | string or null | Customer name. |
customer_phone | string or null | Customer phone, when known. |
customer_email | string or null | Customer email, when known. |
reason | string or null | What the appointment is for. |
booked_by | string or null | assistant (booked by the AI assistant) or manual (added by your team). |
lead_id | string (uuid) or null | Related lead, when there is one. |
conversation_id | string (uuid) or null | Related conversation, when there is one. |
created_at | string (date-time) or null | When it was created. |
updated_at | string (date-time) or null | Last change. Lists are ordered by this field and updated_since filters on it. |
cancelled_at | string (date-time) or null | When it was cancelled, if it was. |
BookingRequest
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Booking request id. |
status | string or null | pending, confirmed, declined, proposed or link_sent. |
service | string or null | What the customer asked to book. |
requested_date | string (date) or null | Requested date, YYYY-MM-DD. |
requested_time | string or null | Requested time as the customer said it, for example "21:00" or "in the afternoon". |
party_size | integer or null | People or units, when it applies. |
customer_name | string or null | Customer name. |
customer_phone | string or null | Customer phone, when known. |
customer_email | string or null | Customer email, when known. |
customer_notes | string or null | Notes the customer added to the request. |
channel | string or null | web, whatsapp or voice. |
proposed_text | string or null | The other time your team proposed, when status is proposed. |
lead_id | string (uuid) or null | Related lead, when there is one. |
conversation_id | string (uuid) or null | Related conversation, when there is one. |
created_at | string (date-time) or null | When it was created. |
updated_at | string (date-time) or null | Last change. Lists are ordered by this field and updated_since filters on it. |
decided_at | string (date-time) or null | When your team decided. |
KnowledgeEntry
| Field | Type | Description |
|---|---|---|
external_id | string | Your own id for this entry. |
title | string | Short title. |
content | string | The text the assistant can use. |
tags | array | Free tags. |
enabled | boolean | False hides the entry from the assistant without deleting it. |
created_at | string (date-time) or null | When it was created. |
updated_at | string (date-time) or null | Last change. |
Writing knowledge
Knowledge entries are short texts your assistant can look up when it answers: opening hours of a branch, the price list from your catalogue, the rules of a room type. With the write scope you can keep them up to date from the system where that information lives.
You choose an external_id for each entry (your own id) and send PUT /knowledge/{external_id} with a title and the content. The same request creates the entry the first time and replaces it after that, so it is safe to repeat.
Entries created through the API are kept apart from the ones written in the dashboard. The API can only list, change and delete its own entries. It cannot read, change or delete what the account owner wrote in the dashboard, whatever id you send. The reverse is not true: an entry created through the API shows in the dashboard and can be edited there, and your next PUT for that external_id replaces that edit.
Limits: title up to 160 characters, content up to 8,000, up to 10 tags, and 500 entries per account. Set enabled to false to hide an entry from the assistant without deleting it.
On some accounts the knowledge is managed only by the account owner. There, writes return 403 with the code knowledge_write_disabled.
Write facts, not instructions: the assistant treats an entry as information about the business. Do not put personal data of your customers in knowledge entries.
curl -X PUT https://zatio.io/api/v1/knowledge/opening-hours-glasgow \
-H "Authorization: Bearer zat_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Opening hours, Glasgow branch",
"content": "Monday to Friday 08:00 to 18:00. Saturday 09:00 to 13:00. Closed on Sunday.",
"tags": ["hours", "glasgow"]
}'curl -X DELETE https://zatio.io/api/v1/knowledge/opening-hours-glasgow \
-H "Authorization: Bearer zat_live_YOUR_KEY"Zatio Events: attendees and agenda
These endpoints work only on Zatio Events accounts. Other accounts get 403 with the code events_not_enabled. The event itself is created in the dashboard; the API finds it by its code.
Attendees and sessions are matched by ref, your own stable id. Sending a ref that exists updates it; a new ref adds it. A normal upsert never removes anyone. An attendee keeps the access code they already have, and Zatio generates the code for new ones. If you send a different person under a ref that already exists, the WhatsApp number linked to the previous person is removed; the response counts these as links_dropped.
Send up to 500 attendees or 200 sessions per request. Add "dry_run": true to check a request and get the counts without saving anything.
To remove people who drop out, send DELETE /events/{code}/attendees?ref=... for each one, or send the whole list with "mode": "replace" (up to 5,000 attendees or 500 sessions in one request): whoever is not in the list is removed, and the response counts them as removed. As a safety brake, a replace that has fewer than half of the current entries, or would remove more than half, saves nothing and returns 409 with the code removes_too_many. Removed attendees are no longer recognised by the assistant. Test attendees created in the dashboard are never removed.
Phone numbers must be in international format with the country code. In details you can send extra fields the assistant can tell that attendee (hotel, table, transfer time). Fields that look like identity documents, bank or card details or passwords are rejected. Sending wa_opt_in: true is your statement that this attendee has agreed to receive WhatsApp messages from the organiser: Zatio does not check it, and the organiser can then message that number. Only send it when you hold that consent and can show it; leave the field out if you are not sure.
Optionally, assistant_phone is the mobile of the attendee's personal assistant: that WhatsApp number can also ask about this attendee. Send null to remove it. If you leave the field out, the number already saved stays, also with "mode": "replace". A value that is not a valid international mobile is ignored for that attendee, the rest is saved, and the response counts it in assistant_phones_dropped.
curl -X PUT https://zatio.io/api/v1/events/GLA27/attendees \
-H "Authorization: Bearer zat_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"dry_run": true,
"attendees": [
{
"ref": "REG-00412",
"full_name": "Alex Example",
"email": "alex@example.com",
"phone": "+447700900123",
"groups": ["Speakers"],
"details": { "Hotel": "Example Hotel", "Table": "4" }
}
]
}'curl -X PUT https://zatio.io/api/v1/events/GLA27/sessions \
-H "Authorization: Bearer zat_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessions": [
{
"ref": "S-101",
"title": "Opening keynote",
"starts_at": "2027-04-15T09:30:00+01:00",
"ends_at": "2027-04-15T10:15:00+01:00",
"room": "Main hall"
}
]
}'Errors
Errors use the usual HTTP status codes and a JSON body with a stable code and a message for a person. Check the code in your integration; the wording of messages can change.
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the \"write\" scope."
}
}| Code | HTTP status | Meaning |
|---|---|---|
missing_api_key | 401 | Send your API key in the Authorization header: "Authorization: Bearer zat_live_...". |
invalid_api_key | 401 | This API key is not valid. |
revoked_api_key | 401 | This API key has been revoked. Create a new one under Integrations in the dashboard. |
insufficient_scope | 403 | This API key does not have the "write" scope. |
tenant_inactive | 403 | This account is not active. |
knowledge_write_disabled | 403 | Knowledge for this account is managed by the account owner and cannot be changed through the API. |
events_not_enabled | 403 | This account does not use Zatio Events. |
not_found | 404 | Not found. |
invalid_request | 400 | The request is not valid. |
invalid_json | 400 | The request body must be a JSON object. |
invalid_cursor | 400 | The cursor is not valid. Send the next_cursor of the previous page exactly as it came. |
payload_too_large | 413 | The request body is too large. |
limit_reached | 409 | This account has reached the limit for this resource. |
removes_too_many | 409 | Nothing was saved: a full replace may not remove more than half of the current list. |
rate_limited | 429 | Too many requests. Wait and try again. |
api_unavailable | 503 | The API is not available right now. Try again shortly. |
internal_error | 500 | Something went wrong on our side. |
Rate limits
Each key can make 120 requests per minute. Responses to requests with a valid key carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix time in seconds when the minute ends).
Over the limit you get 429 with the code rate_limited and a Retry-After header in seconds. Wait that long and try again. Event upserts are also throttled separately, because each one checks the whole attendee list: send them in batches rather than one attendee at a time.
Webhooks
Set the webhook URL and choose the events in the dashboard: Set-up, Integrations, "Connect my CRM". You can enter several URLs separated by commas. GET /webhook-events returns this same list.
Each delivery is a POST with a JSON body: event, tenant (id and name of your account), sent_at and the blocks of that event. The X-Zatio-Event header repeats the event type.
Answer with any 2xx status within 10 seconds. If your server answers 5xx or 429, or does not answer in time, Zatio tries again after about 1 minute, 5 minutes, 30 minutes, 2 hours, 8 hours and 24 hours, and then stops. A delivery can arrive more than once, so make your handler safe to repeat.
| Event | When it is sent | Blocks in the body |
|---|---|---|
lead_created | A new contact wrote or called for the first time. | lead, conversation |
lead_updated | The assistant learned something new about a contact (name, email, postcode, interest and so on). | lead, conversation, attachments |
lead_hot | A contact became a hot lead and has contact details. Sent once per lead. | lead, conversation, attachments |
handoff_started | The conversation was passed to a person on your team. | lead, conversation, attachments |
conversation_closed | A conversation was closed, by your team or after a period with no activity. | lead, conversation, attachments |
quote_pack_generated | A quote pack document was generated for the contact. | lead, conversation |
booking_confirmed | An appointment was confirmed in the connected calendar provider. | lead, conversation, booking |
booking_canceled | An appointment was cancelled in the connected calendar provider. | lead, conversation, booking |
booking_failed | A booking the customer wanted did not complete, so your team can follow up. | lead, conversation, booking_failure |
booking_request_created | The assistant took a booking request that your team has to confirm. | lead, conversation, booking_request |
booking_request_updated | Your team confirmed, declined or proposed another time for a booking request. | lead, conversation, booking_request |
{
"event": "lead_hot",
"tenant": { "id": "YOUR_ACCOUNT_ID", "name": "Your business" },
"sent_at": "2026-11-03T09:20:05.000Z",
"lead": {
"id": "6f1c2a0e-3b54-4c1d-9a77-2f0c8d1e5b90",
"phone": "+447700900123",
"email": "alex@example.com",
"name": "Alex Example",
"first_name": "Alex",
"last_name": "Example",
"temperature": "hot",
"score": 81,
"summary": "Wants a quote this week."
},
"conversation": {
"id": "0b9d3c52-7a41-4d0e-8f1a-5c2e9b7d6a10",
"channel": "whatsapp",
"handover_state": "ai",
"dashboard_url": "https://zatio.io/app/conversations/0b9d3c52-7a41-4d0e-8f1a-5c2e9b7d6a10"
}
}Verifying the webhook signature
When you save the webhook, the dashboard shows a signing secret once. Zatio signs each delivery with it: the X-Zatio-Signature header is the HMAC-SHA256 of the raw request body, in lowercase hex.
Compute the same HMAC over the body exactly as it arrived, before parsing it, and compare the two in constant time. Reject the request if they differ.
import crypto from "node:crypto";
// rawBody: the request body exactly as received (a string or Buffer), not the parsed JSON.
export function isFromZatio(rawBody, signatureHeader, secret) {
const expected = crypto.createHmac("sha256", secret).update(rawBody).digest();
const received = Buffer.from(signatureHeader || "", "hex");
return received.length === expected.length && crypto.timingSafeEqual(received, expected);
}import hashlib, hmac
def is_from_zatio(raw_body: bytes, signature_header: str, secret: str) -> bool:
expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, signature_header or "")Data protection
The API gives you personal data of your own customers: names, phone numbers, email addresses and what they wrote. You remain responsible for how you use it in your systems, as you are for the same data in the dashboard. Zatio processes it on your behalf under the Data Processing Agreement.
Leads and conversations carry a do_not_contact flag when the person asked not to be contacted. Carry it over to your CRM and respect it there.
Ask for what you need and no more: use a read-only key when the integration only reads, give each integration its own key, and revoke keys you no longer use. All requests go over HTTPS.
Data Processing Agreement · Security
Changes to the API
This is version 1. We may add endpoints, and add fields to the objects, without changing the version. Write your integration so that it ignores fields it does not know.