Skip to main content
POST
Send a WhatsApp template message

Authorizations

Authorization
string
header
required

Your API key as a Bearer token: Authorization: Bearer tg_live_...

Headers

Idempotency-Key
string

Replays the first response for 24 hours, so a retried request does not send twice

Body

application/json

Message

phoneNumber
string
required
Required string length: 7 - 20
bodyParameters
string[]

BodyParameters fills the body variables in order ({{1}}, {{2}}… or the named variables in the order they appear in the body).

Maximum array length: 20
buttonParameters
object[]

ButtonParameters fills dynamic URL buttons by their index in the template.

Maximum array length: 10
contactName
string

ContactName names the recipient in the inbox when the send creates their contact, or fills it in on a contact that has no name yet. A name already set is never replaced.

Maximum string length: 255
conversationId
string
from
string

From is the sending WhatsApp number of the workspace in international format (e.g. +966501234567). Send it, or IntegrationID.

Required string length: 7 - 20
integrationId
string

IntegrationID picks the sending number by its id. Kept for existing callers; From is preferred.

language
string
Maximum string length: 15
otpCode
string

OTPCode sends an authentication template: the code fills the body and the copy-code button.

Required string length: 4 - 8
phoneNumberId
string

PhoneNumberID is optional and defaults to the sending number's Meta id. When sent it must match the sending number.

Maximum string length: 64
templateId
string

TemplateID picks the template by its Nateq id. Kept for existing callers.

templateName
string

TemplateName and Language pick the template as it is named in WhatsApp Manager. Send them, or TemplateID. Language may be left out when the template exists in a single language.

Maximum string length: 512

Response

data.messageId is the WhatsApp message id

data
object
error
object
message
string
meta
object
success
boolean