HSM (template) messages
Getting a hsm-template
GET
https://eu.hightouch.ai/api/bot/waba_templates/template_id/
This request helps to get one hsm-template.
Path Parameters
Name | Type | Description |
---|---|---|
template_id | integer | Template ID |
Getting a list of hsm-templates
GET
https://eu.hightouch.ai/api/bot/waba_templates/
This request helps to get a list of fetched hsm-templates.
Query Parameters
Name | Type | Description |
---|---|---|
shop_id | integer | Account ID |
Send HSM template message
POST
https://eu.hightouch.ai/api/v2/bot/messages/send_waba_template_message/
Отправка HSM сообщения.
Request Body
Name | Type | Description |
---|---|---|
shop_id | integer | ID магазина. |
bot_id | integer | ID бота, от которого будет отправка. |
template_id | integer | ID шаблона. |
chat_id_in_messenger | string | ID чата в WhatsApp. Должен присутствовать, если phone не указан. |
template_data | array | Данные для отправки. Пример ниже. |
phone | string | Номер телефона получателя. Должен присутствовать, если chat_id_in_messenger не указан. |
lang_code | string | Код языка, например - en или ru. |
The index field in the button block is the index number of the button. There can be 3 buttons in the HSM message.
The text field in the button parameters, is the text that can be added to the url of the button.
Last updated