Sending Message Templates

POST https://gateway.lipachat.com/api/v1/whatsapp/template

Headers

Name
Value

Content-Type

application/json

apiKey

Get apiKey from App portal settings tabhttps://app.lipachat.com/app/settingsarrow-up-right

Body

Name
Type
Description

messageId

string

A unique identifier for the message. This will be used to track the message status and for deduplication purposes.

to

string

PhonReceiver phone number. It should start with a country code.

from

string

Sandbox number +254110090747 or your own WABA phone number.

template.name

string

Name of template

template.language

string

Language code e.g en

template.category

string

Accepted values are: MARKETING, UTILITY or AUTHENTICATION

template.components.header.format

string

Accepted values are: TEXT, IMAGE, VIDEO, DOCUMENT

template.components.header.text

string

Text to be sent on header

template.components.header.filename

string

This is optional, applies to type document.

template.components.header.example

string

Should be present if text above has a variable.

template.components.body.text

string

Body text, accepts variables e.g Hello {{1}}, your balance is {{2}}

template.components.body.examples

array

Should match number of variables passed in text. For the example above it should be ['John', '2000']

template.components.footer.text

string

Optional footer text.

template.components.buttons[0].type

string

Accepted values are: PHONE_NUMBER, URL or QUICK_REPLY.

template.components.buttons[0].text

string

Text on button above.

template.components.buttons[0].phoneNumber

string

Should be passed if button type passed is PHONE_NUMBER.

template.components.buttons[0].url

string

Should be passed if button type passed is URL.

template.components.buttons[0].example

string

Applies for PHONE_NUMBER and URL.

Example Requests:

chevron-rightRequest to send a template with type TEXT header.hashtag
chevron-rightRequest to send a template with type TEXT, no header.hashtag
chevron-rightRequest to send a template with type MEDIA (IMAGE, VIDEO, AUDIO) header.hashtag
chevron-rightRequest to send a template with type MEDIA (DOCUMENT) header.hashtag
chevron-rightRequest to send an Authentication templatehashtag

chevron-rightRequest to send a template with no paramshashtag

Response

Last updated