{"success":true,"statusCode":200,"data":{"messageId":"wamid.HBgLOTcyNTA...","recipient":"972501234567"},"message":"WhatsApp template sent successfully"}
{"success":true,"statusCode":200,"data":{"messageId":"wamid.HBgLOTcyNTA...","recipient":"972501234567"},"message":"WhatsApp template sent successfully"}
{"success":true,"statusCode":202,"data":{"batchId":"batch_abc123","totalCount":2,"acceptedCount":2,"rejected":[]},"message":"WhatsApp send started in background"}
{"success":true,"statusCode":200,"data":{"templates":[{"id":"8a4f2d1e-6c3b-4a5d-9e8f-1b2c3d4e5f6a","name":"order_shipped","language":"he","category":"UTILITY","status":"APPROVED","headerType":"TEXT","headerText":"{{1}}","bodyText":"שלום {{1}}, ההזמנה שלך מספר {{2}} נשלחה!","footerText":null}]},"message":"WhatsApp templates retrieved successfully"}
Template Variables
שלום {{1}}, ההזמנה שלך מספר {{2}} נשלחה!
שלום דוד, ההזמנה שלך מספר ORD-12345 נשלחה!
Important: The order of values in the bodyVariables array must match the order of variables in the template.
Header Types
TEXT
Plain text, can contain variables
IMAGE
JPG/PNG, up to 5MB
VIDEO
MP4, up to 16MB
DOCUMENT
PDF recommended, up to 100MB
Common Errors
MISSING_REQUIRED_FIELDSA required field is missing: whatsappNumberId, templateId or recipient
WHATSAPP_INVALID_PHONEInvalid phone number
WHATSAPP_NUMBER_NOT_FOUNDWhatsApp number id not found on the account
WHATSAPP_TEMPLATE_NOT_FOUNDTemplate not found on the number's business account
WHATSAPP_TEMPLATE_NOT_APPROVEDThe template exists but is not APPROVED
WHATSAPP_INVALID_VARIABLESVariable count does not match the template, or a value is empty
WHATSAPP_SEND_FAILEDMeta rejected the message; the reason is in hints
WHATSAPP_GATEWAY_ERRORTransient failure reaching Meta (502/504). Retry; for batch sends check the batch status first
Delivery status webhook
Instead of polling, Vibrate can POST a signed event to you on every WhatsApp status change: sent, delivered, read or failed. It is the same webhook as for SMS, same URL and same signing secret, only with a different event name.
1Save an HTTPS URL on the WhatsApp → API & Webhooks page. The secret is shown once.
2On the same page turn on "Also send WhatsApp status events" and send a WhatsApp test event.
3Verify every request: HMAC-SHA256 over "timestamp.body" with the secret, compared to the X-Vibrate-Signature header. The code that verifies SMS events works unchanged.
read is terminal. failed is not always: Meta sometimes revises a failed message to delivered or read later, and another event is sent. Let a later status overwrite failed.
Respond 2xx within 10 seconds. A failure is retried twice (after about 5 and 30 seconds). Events can arrive more than once and out of order; de-duplicate on messageId + status.
A sub-account key works on every WhatsApp endpoint, but only for numbers assigned to its sub-account: any other whatsappNumberId is rejected with 403 FORBIDDEN, and the list endpoints return only those numbers and their templates. Status events for those numbers carry subAccountId and go to the sub-account's own webhook when it has one, otherwise to the account's webhook. Numbers are assigned on the WhatsApp → API & Webhooks page. Webhook routing and batch visibility follow the number's assignment at delivery time, so moving a number between sub-accounts mid-batch moves the rest of that batch's events too.
Incoming messages and closed conversations
Get every incoming WhatsApp message and every closed inbox conversation pushed to your server, or to Zapier and Make, as signed JSON.
1On WhatsApp > API & Webhooks, save your HTTPS URL (the same one used for delivery status events).
2Turn on "Also send incoming messages and closed conversations". It is off by default.
3Send a message test, verify the X-Vibrate-Signature header exactly like the delivery events, and answer with any 2xx within 10 seconds.
message.received
{"apiVersion":"v1","event":"message.received","channel":"whatsapp","messageId":"wamid.HBgMOTcyNTAxMjM0NTY3FQIAEhggQTFCMkMzRDRFNUY2","whatsappNumberId":"c1f7c0e4-2b6e-4f3a-9d2a-5e8b1a2c3d4e","subAccountId":null,"conversationId":"5b2e8f1a-3c4d-4e5f-8a9b-0c1d2e3f4a5b","from":"972501234567","contactName":"Dana Levi","type":"image","text":"Here is the receipt","media":{"id":"1234567890123456","type":"image","url":"https://vibrate.co.il/media/whatsapp/inbound/1098765432/3f2a9c1e.jpg","fileName":null,"caption":"Here is the receipt"},"reply":null,"location":null,"replyToMessageId":null,"receivedAt":"2026-07-31T10:15:42.000Z"}
type is Meta's message type. text holds the message text, the media caption, or the title of the tapped button or list row (reply carries its id). media.url is a public copy of the file, or null when it could not be fetched. De-duplicate on messageId.
closedBy is user (the dashboard), representative, chatbot or auto_close. eventId is the same for retries of the same close; use it to de-duplicate.
Same headers, signature, 10 second timeout and two retries (about 5 s and 30 s, for 5xx, timeouts and 408/425/429) as the delivery events. Numbers assigned to a sub-account use the sub-account's own URL when it has one. Best effort: at least once, unordered.
REST hooks for Zapier, Make and custom code
Subscribe a URL to an event with your access key (Authorization: Bearer). Subscribing is the opt-in: it works without the switch above. A sub-account key only receives events of numbers assigned to its sub-account.
POST /v1/webhooks/subscriptionsBody {"event": "message.received" | "conversation.closed", "targetUrl": "https://..."}. Returns the id and the signing secret of this subscription. Subscribing the same URL again returns the existing one.
DELETE /v1/webhooks/subscriptions/{id}Unsubscribe. Returns 404 for an unknown id.
GET /v1/webhooks/subscriptionsLists the subscriptions of the key.
GET /v1/webhooks/sample?event=message.receivedA JSON array with the most recent event of that type (or a test_ sample), for the trigger setup screen.
curl -X POST https://api.vibrate.co.il/v1/webhooks/subscriptions \ -H "Authorization: Bearer $VIBRATE_ACCESS_KEY"\ -H "Content-Type: application/json"\ -d '{"event": "message.received", "targetUrl": "https://hooks.zapier.com/hooks/standard/123/abc/"}'# 201 Created{"id":"0f6c2a8e-6a3b-4f7d-9c1e-2b3a4c5d6e7f",
"event":"message.received",
"targetUrl":"https://hooks.zapier.com/hooks/standard/123/abc/",
"status":"active",
"secret":"<HMAC signing secret for this subscription>",
...
}
targetUrl must be HTTPS and resolve to a public address. Up to 25 active subscriptions per account. A subscription that answers 410 Gone three times in a row is disabled automatically.
Instead of writing code that calls the Vibrate API, let Vibrate call yours. An automation pulls a list of people from any URL that returns JSON on a schedule, and sends each of them an approved WhatsApp template - once. Built for appointment reminders, order updates and lead follow-ups.
The API URL (GET or POST), query parameters, headers that carry your API key, and a request body. Header values are encrypted and never shown again after saving.
2.Extraction
Where the list lives in the response, where the phone number is inside each item, a display name, filters, and a "same person" key that prevents double sends.
3.Message
A WhatsApp number, an approved template, and one variable per {{N}} in the template. Each variable is text with placeholders taken from the item.
4.Schedule
How often to call the API (5 minutes minimum), a send window in Israel time, and how often the same person may be messaged again.
5.Approval
By default every batch waits for approval: you see each person and the exact message, then press Send. In auto mode messages go out as soon as the list is ready.
6.Write-back (optional)
After every message that went out, Vibrate can call your API (POST, PATCH or PUT) with the recipient's details, so your own system marks who was reached. The URL and body use the fields you defined in step 2, e.g. /customers/{{id}}. A failure is logged in the activity tab and never undoes the send.
Example: a reminder for tomorrow's appointment
Say your booking system answers /appointments?from={{today+1}}&to={{today+1}} with this response:
Result: Dana receives "Hi Dana, a reminder for your appointment tomorrow, 09/09/2026 at 10:00". The Preview tab shows exactly this before anything is sent.
Date placeholders in the request
Most APIs expect a date range, and every vendor spells it differently. Write the vendor's format around placeholders that are filled at request time, in Israel time. They work in the URL, query parameters, headers and body. Each one takes a day offset: {{today+1}}, {{startOfDay-7}}.
Placeholder
Example value
{{now}}
2026-09-08T11:05:00.000Z
Current instant in UTC (ISO)
{{unix}}
1788001500
Current instant as epoch seconds
{{today}}
2026-09-08
Calendar day in Israel
{{today+1}}
2026-09-09
Calendar day in Israel
{{startOfDay}}
2026-09-07T21:00:00.000Z
Israel midnight, as UTC
{{endOfDay}}
2026-09-08T20:59:59.999Z
Israel 23:59:59.999, as UTC
{{startOfDay+1}}
2026-09-08T21:00:00.000Z
Israel midnight, as UTC
{{endOfDay+1}}
2026-09-09T20:59:59.999Z
Israel 23:59:59.999, as UTC
{{startOfDayLocal}}
2026-09-08T00:00:00.000
Israel midnight, wall clock with no zone
{{endOfDayLocal}}
2026-09-08T23:59:59.999
Israel end of day, wall clock with no zone
Placeholders in the message
The name, the "same person" key and the template variables are free text with three kinds of placeholder:
{{fieldKey}}A field you defined under "Fields to extract". Resolved first, so {{firstName}} is shorter than a raw path and also becomes a column in the recipients list.
{{item.path}}Any path inside the raw item, arrays included: {{item.customer.phones[0]}}.
{{index}}The item's position in the response, starting at 1.
Formatters
Append a pipe and a formatter to any placeholder. Dates (ISO or epoch) render in Israel time, so 2026-09-09T07:00:00.000Z reaches the customer as 10:00, never as a raw string.
{{item.startTime|date}}09/09/2026
{{item.startTime|time}}10:00
{{item.startTime|datetime}}09/09/2026 10:00
{{item.startTime|weekday}}Wednesday (in Hebrew)
{{item.startTime|dayMonth}}9/9
{{item.startTime|upper}}Upper case
{{item.startTime|lower}}Lower case
{{item.startTime|first}}First word only
Why someone does not get a message
Every item read from the response goes through these checks, in order. The first reason that matches is shown next to the item in the preview and in the run, so the preview is exactly what the run will do.
1filteredOne of the filters rejected the item.
2invalid_phoneNothing dialable at the phone field. The raw value is shown so you can see why.
3suppressedThe number is on the account's do-not-send list (an unsubscribe).
4duplicate_in_batchThe same "same person" key appeared earlier in this response.
5already_sentThis key was already messaged and the repeat policy says "not yet".
6sendThe message is sent (or waits for approval).
Limits and safety
Interval between calls: 5 minutes to 90 days. The scheduler ticks every 5 minutes, so a run can start up to 5 minutes late.
Up to 300 messages per run. Whatever is left goes out in a follow-up run 5 minutes later.
Up to 5,000 items are read from one response. The response is capped at 8MB and 20 seconds.
Every recipient is written to the ledger before WhatsApp is called. Even if a run crashes halfway, the same person never receives the message twice.
A batch waiting for approval expires after 7 days, and no new batch is prepared while one is open.
Test mode sends everything to your own number, 5 messages per run, without marking customers as messaged.
Approved non-OTP templates only, on the same business account as the number. Messages go through the same path as the send API and show up in sent messages and in the inbox.
We use cookies that are strictly necessary to run this site, plus analytics cookies to understand how it's used. Analytics cookies are loaded only with your consent, per Israel's Privacy Protection Law. Learn more in our privacy policy