post
https://public.doubletick.io/whatsapp/message/template
Sends one or more WhatsApp template messages in a single request, with positional placeholder values.
Before you call
- Send a
messagesarray. Each item needscontent.templateNameandcontent.languagefor a template on the sending number. - Address each message with
to(phone number with country code),customerId, or a WhatsApp group'sgroupId. fromis optional. If omitted, your primary connected WhatsApp number is used.templateData.body.placeholdersis an array of strings, in order. Its length must match the variables in the template body.- If the template header has a variable, send
templateData.headerof the sametype:placeholderfor TEXT,mediaUrlfor IMAGE/VIDEO/DOCUMENT, plusfilenamefor DOCUMENT. - If the template has a URL button with a variable, send a
URLbutton intemplateData.buttons. Carousel templates taketemplateData.cards, each with acardIndex.
How it works
- Each message is checked separately. One bad message does not fail the others.
- The response has one entry per message:
statusENQUEUEDwith amessageId, orFAILEDwith anerrorMessage. - Enqueued messages are sent in the background. Use the
messageIdwith Get Message Status to track delivery. - Common failures: template name and language not found, no connected WhatsApp number for
from, group not found, placeholder count mismatch.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201
