Single Send Message
Authorization
Add this header to every request in this page
json
{
"Authorization": "Bearer ${token}"
}
🔒 Single Send Message
It allows sending message template.
POST
https://backend.helorobo.com/agent-app/message-template/single-messagev2
Body
json
{
"channel_id": "<channel_id>",
"phone_number": "<to_phone_number>",
"message_template_id": "<message_template_id>",
"full_name": "<isim>",
"message_template": [
{
"type": "BODY",
"text": "Merhabaa deneme"
},
{
"type": "CAROUSEL",
"cards": [
{
"components": [
{
"type": "HEADER",
"format": "IMAGE",
"example": {
"header_handle": [
"https://scontent.whatsapp.net/v/t61.29466-34/544745349_707799305647224_6494826059031578919_n.jpg?ccb=1-7&_nc_sid=a80384&_nc_ohc=RdFE9St7U9UQ7kNvwG6wNbU&_nc_oc=AdnmGmvAuDayK0gtZBSbcpnd1v2paWdv3yjIN9LSXw1Hv4i1Po4NEU9iwDS3Evh_qnA&_nc_zt=3&_nc_ht=scontent.whatsapp.net&edm=ANHSQoYEAAAA&_nc_gid=paxNwzXhLL8JOKfdTIysEQ&oh=01_Q5Aa2gGBBiIJxyCPeja8FkvlnjwovValrIlxMGG-RVsKyhMTeQ&oe=68F9D0F7"
]
}
},
{
"type": "BODY",
"text": "lorem ipsum açıklama alanı mevcuttur {{1}} Lütfen açıkalam yapınız {{2}} adasdad{{3}}",
"example": {
"body_text": [["Samantha", "Pete", "German"]]
}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "QUICK_REPLY",
"text": "Arayın"
}
]
}
]
}
]
}
]
}
Name | Type | Required | Description |
---|---|---|---|
message_template_id | string | true | Id of the Message Template. You can get it from Message Template |
full_name | string | false | Customer Name |
phone_number | string | true | Customer phone number. Example: 905449991122 |
channel_id | string | true | Id of Channel. You can get it from Channel |
Response
json
{
"success": true,
"data": {
"message_id": "<message_id>"
}
}