Skip to main content
POST
Send a Template Message (v2)

Authorizations

x-api-key
string
header
required

Your application's unique ID.

x-api-secret
string
header
required

Your application's secret key.

Body

application/json
template
string
required

The _id of the WhatsApp template to send.

Example:

"60c72b2f9b1d8e001f8a1b2d"

phone
string
required

The recipient's phone number with country code.

Example:

"+919876543210"

whatsapp
string

The _id of the WhatsApp account to send from. Optional: defaults to the number the template belongs to.

{key}
any

Any other key is a template value, written at the top level of the body. Use the same keys as v1 dynamicData.

Response

Message successfully queued. The message object is returned.