Skip to content

Single Send Message


Otantikasyon

Bu başlığı her istekte gönderiniz.

json
{
  "Authorization": "Bearer ${token}"
}

🔒 Tekil Mesaj Gönderme

Tek bir müşteriye Mesaj Şablonu göndermek için kullanılmakta

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"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Parametre Açıklaması

İsimTipZorunluAçıklama
message_template_idstringEvetMesaj Şablonu ID'si. Buradan temin edebilirsiniz Mesaj Şablonu Listeleme
full_namestringfalseMüşteri Adı
phone_numberstringEvetMüşteri Telefon Numarası. Örneğin: 905449991122
channel_idstringEvetChannel ID'si. Buradan temin edebilirsiniz Kanal Listesi

Response

json
{
  "success": true,
  "data": {
    "message_id": "<message_id>"
  }
}