Send Text Message Template

Once the whatsApp text message template has been created via UI or API and approved, the next step is sending the template to the end users through the Messages API.

To know how to send a text message template go to the Sending a Text Message Template section.

Log in to see full request history
Body Params
placeholders
object

Object of personalized fields (placeholders) containing the text message body.

From the ´placeholders´ object, set as parameter the placeholder you configured that is inside double curly braces {{...}} when creating the template. Then set the value of the placeholder parameter.

The placeholders must be correctly formatted in order of how the template was created.

For example, for a text message body like “Here is your {{code}}”, you would set the placeholder as ´code´: ´34871´.

string

Name of the template created in your WhatsApp Business Account.

string

Template Language you set when creating the template.

Currently the API supports 3 Languages: English, Spanish and Portuguese. Required if you want to send templates in languages other than English.

English: ´en´

Spanish: ´es´

Portuguese: ´pt_BR´, ´pt_PT

string
required

Phone number of the sender.

Phone number provided during the WABA account setup will be used as the sender of the notification message.

Only accepts numeric characters. Do not include the ´+ sign.

string
required

Determines the destination phone number for your template message. Numbers are specified in E.164 format → (‘+’ and a country code).

string

Unique identifier of the template.

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json
Español (América Latina)
Powered by Localize
English