API
The Zointy Fast REST API: base URL, scoped API keys, authentication, request rules and the resources you can use.
The REST API lets your own software work with your Zointy Fast workspace: add contacts, send approved templates, read leads and receive events. It is available on plans that include REST API and webhooks.
Base URL and keys
- Base URL:
https://fast.zointy.com/api/v1 - Create keys in API keys. A key starts with
fk_live_and is shown once when created. Store it in your server's secrets, never in a website or app that customers download. - Give each key only the scopes it needs, for example contacts read and write, messages send, templates read, leads read and write, webhooks manage.
- Revoke a key at any time; requests with it stop at once.
Authentication
Send the key as a Bearer token over HTTPS:
curl https://fast.zointy.com/api/v1/contacts \
-H "Authorization: Bearer fk_live_your_key" \
-H "Accept: application/json"
Rules
- Requests and responses are JSON. Phone numbers use international format, such as
+919800000000. - Records are identified by their public id, never by internal numbers.
- Messages sent through the API go through the same checks as the app: free text only inside the 24-hour window, approved templates otherwise, marketing only with consent, nothing to opted-out or suppressed numbers. A refused send returns an error with the reason.
- Sends are queued; delivery statuses arrive later by outgoing webhook.
- Requests are rate limited per key. Back off and retry when you receive HTTP 429.
Resources
| Resource | What you can do |
|---|---|
| Contacts | List, search, create and update contacts, tags and custom fields |
| Messages | Send a template or, inside the window, a text message to a contact |
| Templates | List approved templates and their variables |
| Leads | Create leads, read them and change their stage |
| Campaigns | List campaigns and their results |
| Webhooks | Register outgoing webhook URLs for message, contact and lead events |
The full endpoint reference, with every parameter, error code and webhook signature example, follows below.
Endpoint reference
Zointy Fast REST API v1
The REST API lets your own software (website, billing app, ERP, Zapier/Make) read and write contacts and leads, send WhatsApp messages through your connected numbers, and subscribe to events with signed webhooks. Every request acts for one workspace: the workspace that created the API key.
- Base URL:
https://fast.zointy.com/api/v1 - Format: JSON in and out (
Content-Type: application/json,Accept: application/json) - Ids: every
idis a public string id (ULID, 26 characters). Internal numeric ids are never exposed. - Dates: ISO 8601 with offset, e.g.
2026-11-05T10:30:00+05:30 - Plan: the workspace plan must include REST API and webhooks (
api_access). The number of active keys is limited by the plan (api_keys).
Authentication
Create a key in App → API keys. A key looks like fk_live_ followed by 40 random characters.
It is shown once; Fast stores only its SHA-256 hash and the first 16 characters (prefix) to
identify it. Send it on every request:
Authorization: Bearer fk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Each key has:
| Setting | Meaning |
|---|---|
| Scopes | What the key may do (below). Requests outside its scopes get 403 insufficient_scope. |
| Rate limit | Requests per minute for this key (1–600, default 60). |
| Allowed IPs | Optional list of IPv4/IPv6 addresses or CIDR ranges. Other IPs get 403 ip_not_allowed. |
| Expiry | Never, 30 days, 90 days or one year. Expired keys get 401 key_expired. |
| Revoke | Immediate. Revoked keys get 401 key_revoked. |
"Last used" (time and IP) is shown on the API keys page.
Scopes
| Scope | Allows |
|---|---|
contacts.read |
GET /contacts, GET /contacts/{id} |
contacts.write |
POST /contacts, PATCH /contacts/{id}, POST /contacts/{id}/tags |
messages.send |
POST /messages |
messages.read |
GET /messages/{id} |
templates.read |
GET /templates |
leads.read |
GET /leads, GET /leads/{id} |
leads.write |
POST /leads, PATCH /leads/{id} |
campaigns.read |
GET /campaigns |
webhooks.manage |
GET /webhooks, POST /webhooks, DELETE /webhooks/{id} |
Rate limits
Each key has its own per-minute limit. Responses carry X-RateLimit-Limit and
X-RateLimit-Remaining; over the limit you get 429 with a Retry-After header (seconds).
WhatsApp itself also limits how many people a number can message per day (Meta's messaging
tiers) and the plan limits messages per month (limit error below).
Errors
Errors are JSON with a human-readable message and, for most errors, a machine code:
{ "message": "This API key does not have the contacts.write scope.", "code": "insufficient_scope" }
| HTTP | code |
When |
|---|---|---|
| 401 | unauthenticated |
No Authorization: Bearer fk_live_… header |
| 401 | invalid_key |
Unknown key |
| 401 | key_revoked / key_expired |
Key revoked or past its expiry |
| 403 | insufficient_scope |
Key lacks the route's scope |
| 403 | ip_not_allowed |
Request IP not in the key's allow-list |
| 403 | plan |
The plan does not include API access |
| 403 | workspace_inactive |
Workspace suspended or cancelled |
| 404 | not_found |
No such record in this workspace (records of other workspaces are always 404) |
| 422 | — | Validation: errors lists messages per field, e.g. {"message": "…", "errors": {"phone": ["…"]}} |
| 422 | policy reason | A WhatsApp rule stopped a message (see POST /messages) |
| 429 | — | Rate limit reached |
Pagination
List endpoints take page (from 1) and per_page (1–100, default 25) and return:
{
"data": [ … ],
"meta": { "current_page": 1, "per_page": 25, "total": 130, "last_page": 6 },
"links": { "next": "https://fast.zointy.com/api/v1/contacts?page=2", "prev": null }
}
Single records are returned as {"data": { … }}.
Contacts
A contact is one person, identified by their phone number in E.164 (+919876543210). Numbers
without a country code are read as Indian (+91).
Contact object:
{
"id": "01JC3Y4Z6W8Q5R2T9V1X3B5N7M",
"phone": "+919876543210",
"name": "Asha Patel",
"profile_name": "Asha",
"email": "asha@example.com",
"company": null,
"city": "Pune",
"language": "en",
"fields": { "budget": "50L" },
"tags": ["website", "vip"],
"source": "api",
"marketing_opt_in": false,
"opted_out": false,
"last_seen_at": "2026-11-05T10:30:00+05:30",
"created_at": "2026-11-01T09:00:00+05:30",
"updated_at": "2026-11-05T10:30:00+05:30"
}
GET /contacts (contacts.read)
Filters: search (name, phone or email), phone (exact), tag (tag name), updated_since (ISO date).
curl "https://fast.zointy.com/api/v1/contacts?tag=vip&per_page=50" \
-H "Authorization: Bearer fk_live_YOUR_KEY"
GET /contacts/{id} (contacts.read)
POST /contacts (contacts.write)
Creates the contact, or updates the existing contact with the same phone. Answers 201 when
created, 200 when it already existed.
| Field | Type | Notes |
|---|---|---|
phone |
string, required | Any format; stored as E.164 |
name, email, company, city, language |
string | |
fields |
object | Custom field values by key |
tags |
array of strings | Added (created when new) |
marketing_opt_in |
boolean | Only together with consent_evidence |
consent_evidence |
string | How the person agreed, e.g. "Ticked the WhatsApp offers box at checkout, 2026-11-05" |
Contacts created through the API never get marketing consent unless you send
marketing_opt_in: true and consent_evidence. The evidence is stored as a consent record
with source api (and your key's prefix). marketing_opt_in: false records an opt-out of marketing.
curl -X POST https://fast.zointy.com/api/v1/contacts \
-H "Authorization: Bearer fk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"phone":"+919876543210","name":"Asha Patel","tags":["website"],"fields":{"city":"Pune"}}'
PATCH /contacts/{id} (contacts.write)
Same fields as POST except phone and tags.
POST /contacts/{id}/tags (contacts.write)
{ "add": ["vip"], "remove": ["cold"] }
(tags is accepted as an alias of add.) Returns the contact.
Messages
POST /messages (messages.send)
Sends one WhatsApp message through Fast's message policy. The message is queued and sent to Meta right away; its status then changes only when Meta reports it.
| Field | Type | Notes |
|---|---|---|
to |
string | Phone number (creates the contact if new, within the plan's contact limit), or |
contact_id |
string | An existing contact's id |
type |
text or template |
|
text |
string | For text, up to 4096 characters |
preview_url |
boolean | For text |
template |
string | For template: template id, or its name (with language) |
language |
string | e.g. en, hi |
values |
object | {"body": ["Asha", "#1042"], "header": ["Diwali"], "buttons": {"0": "ORDER1042"}, "header_media": {"link": "https://…/invoice.pdf"}} |
phone_number_id |
string | Which of your numbers sends: Fast's id or Meta's phone number id. Default: your default connected number |
Answer 202:
{ "data": { "id": "01JC…", "status": "queued", "contact_id": "01JC…", "conversation_id": "01JC…", "created_at": "…" } }
The policy (same as the inbox, campaigns and automations) can refuse with 422 and a code:
code |
Meaning |
|---|---|
window_closed |
Free text only within 24 hours of the person's last message; use an approved template |
template_not_found |
No template with that id or name |
template_not_approved |
The template is not approved by Meta |
template_wrong_account |
The template belongs to another WhatsApp Business Account than the sending number |
no_consent |
Marketing template to a contact without recorded marketing consent |
opted_out |
The contact opted out (replied STOP or was opted out) |
suppressed |
The number is on the suppression list |
blocked |
The contact is blocked |
number_unavailable |
The sending number is not connected |
limit |
The plan's messages for this month are used up |
plan |
The plan does not include the API |
curl -X POST https://fast.zointy.com/api/v1/messages \
-H "Authorization: Bearer fk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+919876543210","type":"template","template":"order_update","language":"en","values":{"body":["Asha","#1042"]}}'
GET /messages/{id} (messages.read)
{
"data": {
"id": "01JC…", "conversation_id": "01JC…",
"contact": { "id": "01JC…", "phone": "+919876543210", "name": "Asha Patel" },
"direction": "outbound", "sender": "api", "type": "template", "body": "Hi Asha, your order #1042 is confirmed.",
"template": { "id": "01JC…", "name": "order_update", "language": "en" },
"status": "delivered", "error": null,
"created_at": "…", "sent_at": "…", "delivered_at": "…", "read_at": null, "failed_at": null
}
}
status is one of queued, sent, delivered, read, failed (with error.code and
error.message from Meta) for outbound messages, and received for inbound ones.
Templates
GET /templates (templates.read)
Filters: status (approved, pending, rejected, …), language, category (marketing, utility, authentication).
{ "id": "01JC…", "name": "order_update", "language": "en", "category": "utility", "status": "approved",
"header_type": "none", "header_text": null, "body": "Hi {{1}}, your order {{2}} is confirmed.", "footer": null,
"buttons": [], "variables": { "header": 0, "body": 2 }, "updated_at": "…" }
Template statuses come only from Meta.
Leads
Lead statuses: new, contacted, qualified, interested, converted, lost.
GET /leads (leads.read)
Filters: status, contact_id, updated_since.
GET /leads/{id} (leads.read)
POST /leads (leads.write)
| Field | Notes |
|---|---|
phone or contact_id |
Required; phone creates the contact if new (name, email fill it) |
title, status, value, source_detail, follow_up_at, tags[], note |
Optional |
The lead's source is api; the status history records actor api; automations with a "Lead
created" trigger run.
PATCH /leads/{id} (leads.write)
status (with optional lost_reason), title, value, score (0–100), follow_up_at.
A status change fires "Lead status changed" automations and the lead.status_changed webhook.
{
"id": "01JC…", "contact": { "id": "01JC…", "phone": "+919876543210", "name": "Asha Patel" },
"title": "2BHK enquiry", "status": "qualified", "source": "api", "source_detail": "Website",
"score": 70, "value": 4500000, "follow_up_at": null, "lost_reason": null, "converted_at": null,
"created_at": "…", "updated_at": "…"
}
Campaigns
GET /campaigns (campaigns.read)
Filters: status, updated_since. Returns name, status, template, schedule and counts
(recipients, skipped, sent, delivered, read, failed, replied).
Webhook subscriptions
GET /webhooks (webhooks.manage)
POST /webhooks (webhooks.manage)
{ "url": "https://hooks.zapier.com/hooks/catch/123/abc", "events": ["message.received", "lead.created"] }
Answers 201 with the subscription and its signing secret, shown only in this response.
URLs must be http(s) on a public address; private, loopback and link-local addresses are
refused. A workspace can have up to 25 webhooks. Zapier/Make REST hooks can subscribe here and
unsubscribe with DELETE.
DELETE /webhooks/{id} (webhooks.manage)
Answers 204.
Outbound webhooks (events Fast sends you)
Set them up in App → Integrations or with POST /webhooks.
| Event | When | data |
|---|---|---|
message.received |
A WhatsApp message arrives | message |
message.status |
An outbound message is sent, delivered, read or fails | status, message |
contact.created |
A contact is created | contact |
lead.created |
A lead is created | lead |
lead.status_changed |
A lead changes status | from, to, lead |
conversation.resolved |
A conversation is resolved | conversation |
campaign.completed |
A campaign finishes | campaign |
Body:
{ "id": "01JC…", "event": "lead.created", "created_at": "2026-11-05T10:30:00+05:30", "data": { "lead": { … } } }
Headers:
Content-Type: application/json
User-Agent: ZointyFast-Webhooks/1
X-Fast-Event: lead.created
X-Fast-Delivery: 01JC… (same as body "id"; use it to ignore repeats)
X-Fast-Timestamp: 1762318800 (unix seconds)
X-Fast-Signature: sha256=<hex HMAC-SHA256 of "{X-Fast-Timestamp}.{raw body}" with the webhook secret>
Verifying the signature
- Read the raw request body (before JSON parsing).
- Compute
sha256=+ hex(HMAC-SHA256(secret, timestamp + "." + raw body)). - Compare with
X-Fast-Signaturein constant time. - Reject timestamps more than 5 minutes from your clock.
PHP:
$body = file_get_contents('php://input');
$ts = $_SERVER['HTTP_X_FAST_TIMESTAMP'] ?? '';
$expected = 'sha256=' . hash_hmac('sha256', $ts . '.' . $body, getenv('FAST_WEBHOOK_SECRET'));
if (!hash_equals($expected, $_SERVER['HTTP_X_FAST_SIGNATURE'] ?? '') || abs(time() - (int) $ts) > 300) {
http_response_code(401);
exit;
}
$event = json_decode($body, true);
Node.js (Express):
app.post('/hooks/fast', express.raw({ type: 'application/json' }), (req, res) => {
const ts = req.headers['x-fast-timestamp'];
const expected = 'sha256=' + crypto.createHmac('sha256', process.env.FAST_WEBHOOK_SECRET)
.update(ts + '.' + req.body).digest('hex');
const given = req.headers['x-fast-signature'] || '';
if (expected.length !== given.length || !crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(given))
|| Math.abs(Date.now() / 1000 - Number(ts)) > 300) return res.sendStatus(401);
const event = JSON.parse(req.body);
res.sendStatus(200);
});
Delivery and retries
Answer with any 2xx within 10 seconds. Other answers, timeouts and connection errors are
retried with backoff (about 30 s, 2 min, 10 min, 30 min; 5 attempts). Every attempt is listed in
the webhook's delivery log in the app (secrets hidden). After 15 failed attempts in a row the
webhook is switched off; fix your URL and switch it on again in App → Integrations. Deliveries
can arrive more than once and out of order: use X-Fast-Delivery to de-duplicate.
The external-CRM push (App → Integrations → External CRM) uses the same body, headers and
signature, with events contact.created, lead.created and lead.status_changed.
Inbound endpoints (events you send Fast)
For website forms, shops, payment and booking systems: create an endpoint in
App → Integrations. It has a URL https://fast.zointy.com/hooks/{endpoint id} and a secret
(shown once; can be rotated). POST JSON to it with one of:
X-Fast-Token: <secret>
X-Fast-Signature: sha256=<hex HMAC-SHA256 of the raw body with the secret>
Shopify (X-Shopify-Hmac-Sha256), WooCommerce (X-WC-Webhook-Signature) and Razorpay
(X-Razorpay-Signature, your own Razorpay account) signatures are also accepted with the
presets on the Integrations page. The endpoint's field map reads the phone, name, email and any
other values (JSON paths such as customer.phone, alternatives a|b, joins a + b, and /100
to convert paise to rupees); the event then starts automations with the matching trigger
(order, payment, appointment, or website lead / custom). Answer: 202 {"ok": true, "contact": "<contact id or null>"};
401 for a missing or wrong secret, 404 for an unknown or switched-off endpoint, 422 when
the phone number is not valid. Contacts created this way never get marketing consent.
curl -X POST https://fast.zointy.com/hooks/01JC3Y4Z6W8Q5R2T9V1X3B5N7M \
-H "Content-Type: application/json" \
-H "X-Fast-Token: whin_YOUR_SECRET" \
-d '{"phone":"+919876543210","name":"Asha Patel","message":"Please call me"}'