Chilkat Online Tools

C# / Infobip WhatsApp / Get WhatsApp Templates

Back to Collection Items

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Chilkat.Http http = new Chilkat.Http();
bool success;

http.SetRequestHeader("Authorization","App {{INFOBIP_API_KEY}}");

Chilkat.StringBuilder sbResponseBody = new Chilkat.StringBuilder();
success = http.QuickGetSb("https://domain.com/whatsapp/1/senders/:sender/templates",sbResponseBody);
if (success == false) {
    Debug.WriteLine(http.LastErrorText);
    return;
}

Chilkat.JsonObject jResp = new Chilkat.JsonObject();
jResp.LoadSb(sbResponseBody);
jResp.EmitCompact = false;

Debug.WriteLine("Response Body:");
Debug.WriteLine(jResp.Emit());

int respStatusCode = http.LastStatus;
Debug.WriteLine("Response Status Code = " + Convert.ToString(respStatusCode));
if (respStatusCode >= 400) {
    Debug.WriteLine("Response Header:");
    Debug.WriteLine(http.LastHeader);
    Debug.WriteLine("Failed.");
    return;
}

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "templates": [
//     {
//       "id": "1376779482703939",
//       "businessAccountId": 2125987241021795,
//       "name": "access_code",
//       "language": "pt_BR",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Olá {{1}}, seu código de acesso para {{2}} é {{3}}. Se você não solicitou esse código, por favor ignore esta notificação. \nObrigado.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "2114287115273819",
//       "businessAccountId": 2125987241021795,
//       "name": "access_code",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hello {{1}}, your access code to {{2}} is {{3}}. If you did not initiate this request, kindly ignore this notification. \nThank you.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "1150701078632366",
//       "businessAccountId": 2125987241021795,
//       "name": "action_button",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ALERT_UPDATE",
//       "structure": {
//         "header": {
//           "format": "IMAGE"
//         },
//         "body": "Thank you for your order. Here is the image of the product you ordered",
//         "footer": "Thank you",
//         "buttons": [
//           {
//             "text": "Visit Us",
//             "url": "https://www.infobip.com/",
//             "type": "URL"
//           }
//         ],
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "480050722512837",
//       "businessAccountId": 2125987241021795,
//       "name": "boarding_pass",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "TRANSPORTATION_UPDATE",
//       "structure": {
//         "header": {
//           "format": "IMAGE"
//         },
//         "body": "Here is your boarding pass for flight number {{1}}. Thank you for flying with us ",
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "703203796733689",
//       "businessAccountId": 2125987241021795,
//       "name": "bus",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "APPOINTMENT_UPDATE",
//       "structure": {
//         "body": "Bus from {{1}} for {{2}} is leaving at {{3}}.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "1175006642892508",
//       "businessAccountId": 2125987241021795,
//       "name": "call_to_action",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Dear {{1}}, your package no. {{2}} has been shipped.",
//         "buttons": [
//           {
//             "text": "Track package",
//             "url": "https://www.infobip.com/",
//             "type": "URL"
//           }
//         ],
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "3205797306147058",
//       "businessAccountId": 2125987241021795,
//       "name": "delivery_notification",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "SHIPPING_UPDATE",
//       "structure": {
//         "header": {
//           "format": "LOCATION"
//         },
//         "body": "Order number {{1}} has been delivered to the shipping address seen on the map. Thank you for shopping at Go2Shop ",
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "283858282272884",
//       "businessAccountId": 2125987241021795,
//       "name": "dinner_reminder",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "APPOINTMENT_UPDATE",
//       "structure": {
//         "body": "Dinner will be starting at {{1}} in the hotel restaurant. Join us for good food, drinks, and even better company!",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "442447183302567",
//       "businessAccountId": 2125987241021795,
//       "name": "e_receipt",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "PAYMENT_UPDATE",
//       "structure": {
//         "header": {
//           "format": "DOCUMENT"
//         },
//         "body": "Your receipt is attached. Thank you for shopping at Go2Shop!",
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "465024971111801",
//       "businessAccountId": 2125987241021795,
//       "name": "e_ticket",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "TICKET_UPDATE",
//       "structure": {
//         "header": {
//           "format": "IMAGE"
//         },
//         "body": "Here is your e-ticket for {{1}}. Enjoy the show ",
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "797992767248032",
//       "businessAccountId": 2125987241021795,
//       "name": "event_reminder_05",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ALERT_UPDATE",
//       "structure": {
//         "body": "Hello {{1}}! We hope you are getting excited for today's event, {{2}}, starting from {{3}} at {{4}}. Don’t be late, because many interesting topics will be held in each session!",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "841575279509891",
//       "businessAccountId": 2125987241021795,
//       "name": "form_call",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hello {{1}}. You filled the form for {{2}}. Can we make a call to your number given by you to share detailed information? If you’d accept our communication request, please write YES as reply to this message.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "384327742230856",
//       "businessAccountId": 2125987241021795,
//       "name": "group_photo_2",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": " Guess what? It is *PICTURE* o'clock. Be {{1}} in {{2}}.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "2202280506718474",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_kz_test_hsm_2",
//       "language": "ru",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": " {{1}}       60 !",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "576914492745457",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_kz_test_hsm_2",
//       "language": "kk",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": " {{1}}    60   !",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "1089975291175463",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_kz_test_hsm_2",
//       "language": "en_GB",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "The order {{1}} is confirmed and will be delivered during 60 minutes!",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "1572345716266548",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_test_hsm_1",
//       "language": "en_GB",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hi {{1}}! Your account {{2}} has been updated.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "436224756863283",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_test_hsm_2",
//       "language": "en_US",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hi {{1}}! This is a test HSM. Your account {{2}} has been modified. Let us know if you didn't perform this change.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "1954872037941170",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_test_hsm_2",
//       "language": "ru",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": " {{1}}!   .      {{2}}     . !",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "506862293163223",
//       "businessAccountId": 2125987241021795,
//       "name": "infobip_test_hsm_2",
//       "language": "tr",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Merhaba {{1}}! Bu bir test mesajdr. {{2}} hakkndaki talebin bize ulamtr, en ksa sürede konuyla ilgili dönü yaplacaktr. Teekkürler!",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "559527227971084",
//       "businessAccountId": 2125987241021795,
//       "name": "instruction_video",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "header": {
//           "format": "VIDEO"
//         },
//         "body": "Your registration has been successful. Check out this tutorial video on how to start using the service ",
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "592287288234304",
//       "businessAccountId": 2125987241021795,
//       "name": "invoice",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "PAYMENT_UPDATE",
//       "structure": {
//         "header": {
//           "format": "DOCUMENT"
//         },
//         "body": "Dear {{1}}, your invoice for {{2}} is attached.",
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "2399550613596500",
//       "businessAccountId": 2125987241021795,
//       "name": "issue_resolution",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ISSUE_RESOLUTION",
//       "structure": {
//         "body": "Hi there! Welcome to {{1}} on WhatsApp. Thank you for using our services. \nYour {{2}} repair has been booked for {{3}} {{4}} with this reference no: {{5}}. If you cannot make this time, please let us know again.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "2046724852048532",
//       "businessAccountId": 2125987241021795,
//       "name": "menu",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Dear {{1}}, {{2}} ( #{{3}} ) is here to see You. \nPlease select an option below by replying with the option number. \n*1.* Allow\n*2.* Not available\n*3.* Delay",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "921882634973811",
//       "businessAccountId": 2125987241021795,
//       "name": "registration_success",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "header": {
//           "format": "IMAGE"
//         },
//         "body": "Dear {{1}},  your {{2}} has been successfully {{3}}. Do you wish to proceed with {{4}}?",
//         "footer": "For more information, please check our website.",
//         "buttons": [
//           {
//             "text": "Yes",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "No",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "Remind me later",
//             "type": "QUICK_REPLY"
//           }
//         ],
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "928406077623709",
//       "businessAccountId": 2125987241021795,
//       "name": "response__button",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ALERT_UPDATE",
//       "structure": {
//         "body": "Please select a response from below options",
//         "buttons": [
//           {
//             "text": "Yes",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "No",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "Maybe",
//             "type": "QUICK_REPLY"
//           }
//         ],
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "194344368521772",
//       "businessAccountId": 2125987241021795,
//       "name": "response_button1",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ALERT_UPDATE",
//       "structure": {
//         "body": "Thank you for your interest in giving us feedback. Did you like our service?",
//         "buttons": [
//           {
//             "text": "Yes",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "No",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "Maybe",
//             "type": "QUICK_REPLY"
//           }
//         ],
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "396894250929663",
//       "businessAccountId": 2125987241021795,
//       "name": "status_update",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "SHIPPING_UPDATE",
//       "structure": {
//         "body": "Dear {{1}}, as per your request we are happy to inform you that {{2}} is now {{3}}.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "2067939746659191",
//       "businessAccountId": 2125987241021795,
//       "name": "subscription",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hi {{1}}, Thank you for subscribing to {{2}}. Your subscription start date is {{3}} and is valid for next {{4}} months. Happy binging {{5}}.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "249875512826325",
//       "businessAccountId": 2125987241021795,
//       "name": "test_interactive_quick_reply",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "header": {
//           "format": "DOCUMENT"
//         },
//         "body": "Dear {{1}}, we are informing you about changes related to our terms of service. Complete terms can be found in the attached document. Please provide feedback on whether you find the changes acceptable.",
//         "buttons": [
//           {
//             "text": "Yes",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "No",
//             "type": "QUICK_REPLY"
//           },
//           {
//             "text": "More info",
//             "type": "QUICK_REPLY"
//           }
//         ],
//         "type": "MEDIA"
//       }
//     },
//     {
//       "id": "383895272399895",
//       "businessAccountId": 2125987241021795,
//       "name": "thank_you_message",
//       "language": "es",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Gracias por haber atendido nuestro evento {{1}}! No nos perdamos y sigamos en contacto!",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "242283916695951",
//       "businessAccountId": 2125987241021795,
//       "name": "thank_you_message",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "We hope you took away a lot from today's event. It was great having you there! We look forward to seeing you at the next one.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "243241649723177",
//       "businessAccountId": 2125987241021795,
//       "name": "welcome_multiple_languages",
//       "language": "es",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hola {{1}}! Bienvenido a nuestro canal en WhatsApp. Responda \"Sí\" si desea continuar esta conversación.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "296326591169429",
//       "businessAccountId": 2125987241021795,
//       "name": "welcome_multiple_languages",
//       "language": "en",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Hi {{1}}! Welcome to our channel on WhatsApp. Please reply \"Yes\" if you wish to continue this conversation.",
//         "type": "TEXT"
//       }
//     },
//     {
//       "id": "1670432993085771",
//       "businessAccountId": 2125987241021795,
//       "name": "welcome_multiple_languages",
//       "language": "hr",
//       "status": "APPROVED",
//       "category": "ACCOUNT_UPDATE",
//       "structure": {
//         "body": "Pozdrav {{1}}! Dobrodošli na naš kanal na WhatsAppu. Molimo odgovorite \"Da\" ukoliko želite nastaviti ovaj razgovor.",
//         "type": "TEXT"
//       }
//     }
//   ]
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

string id;
int businessAccountId;
string name;
string language;
string status;
string category;
string Body;
string v_Type;
string Format;
string Footer;
int j;
int count_j;
string text;
string url;
string v_type;

int i = 0;
int count_i = jResp.SizeOfArray("templates");
while (i < count_i) {
    jResp.I = i;
    id = jResp.StringOf("templates[i].id");
    businessAccountId = jResp.IntOf("templates[i].businessAccountId");
    name = jResp.StringOf("templates[i].name");
    language = jResp.StringOf("templates[i].language");
    status = jResp.StringOf("templates[i].status");
    category = jResp.StringOf("templates[i].category");
    Body = jResp.StringOf("templates[i].structure.body");
    v_Type = jResp.StringOf("templates[i].structure.type");
    Format = jResp.StringOf("templates[i].structure.header.format");
    Footer = jResp.StringOf("templates[i].structure.footer");
    j = 0;
    count_j = jResp.SizeOfArray("templates[i].structure.buttons");
    while (j < count_j) {
        jResp.J = j;
        text = jResp.StringOf("templates[i].structure.buttons[j].text");
        url = jResp.StringOf("templates[i].structure.buttons[j].url");
        v_type = jResp.StringOf("templates[i].structure.buttons[j].type");
        j = j + 1;
    }

    i = i + 1;
}

Curl Command

curl -X GET
	-H "Authorization: App {{INFOBIP_API_KEY}}"
https://domain.com/whatsapp/1/senders/:sender/templates

Postman Collection Item JSON

{
  "name": "Get WhatsApp Templates",
  "event": [
    {
      "listen": "test",
      "script": {
        "exec": [
          "pm.test(\"Status code is 200\", function () {",
          "    pm.response.to.have.status(200);",
          "});",
          "",
          "pm.test(\"Templates feched successfully\", function () {",
          "    var jsonData = pm.response.json();",
          "    pm.expect(jsonData.templates).to.not.empty;",
          "});"
        ],
        "type": "text/javascript"
      }
    }
  ],
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/whatsapp/1/senders/:sender/templates",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "whatsapp",
        "1",
        "senders",
        ":sender",
        "templates"
      ],
      "variable": [
        {
          "key": "sender",
          "value": "{{senderNumber}}",
          "description": "(Required) Registered WhatsApp sender number. Must be in international format."
        }
      ]
    },
    "description": "Get all the templates and their statuses for a given sender."
  },
  "response": [
    {
      "name": "List of all templates and their statuses for a given sender.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/whatsapp/1/senders/:sender/templates",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "whatsapp",
            "1",
            "senders",
            ":sender",
            "templates"
          ],
          "variable": [
            {
              "key": "sender",
              "value": "{{senderNumber}}",
              "description": "(Required) Registered WhatsApp sender number. Must be in international format."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Vary",
          "value": "Origin"
        },
        {
          "key": "Vary",
          "value": "Access-Control-Request-Method"
        },
        {
          "key": "Vary",
          "value": "Access-Control-Request-Headers"
        },
        {
          "key": "Date",
          "value": "Mon, 08 Nov 2021 10:13:39 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        },
        {
          "key": "Server",
          "value": "SMS API"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "X-Request-Id",
          "value": "1636366419372110225"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"templates\": [\n        {\n            \"id\": \"1376779482703939\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"access_code\",\n            \"language\": \"pt_BR\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Olá {{1}}, seu código de acesso para {{2}} é {{3}}. Se você não solicitou esse código, por favor ignore esta notificação. \\nObrigado.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"2114287115273819\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"access_code\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hello {{1}}, your access code to {{2}} is {{3}}. If you did not initiate this request, kindly ignore this notification. \\nThank you.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"1150701078632366\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"action_button\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ALERT_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"IMAGE\"\n                },\n                \"body\": \"Thank you for your order. Here is the image of the product you ordered\",\n                \"footer\": \"Thank you\",\n                \"buttons\": [\n                    {\n                        \"text\": \"Visit Us\",\n                        \"url\": \"https://www.infobip.com/\",\n                        \"type\": \"URL\"\n                    }\n                ],\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"480050722512837\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"boarding_pass\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"TRANSPORTATION_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"IMAGE\"\n                },\n                \"body\": \"Here is your boarding pass for flight number {{1}}. Thank you for flying with us ✈️\",\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"703203796733689\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"bus\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"APPOINTMENT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Bus from {{1}} for {{2}} is leaving at {{3}}.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"1175006642892508\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"call_to_action\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Dear {{1}}, your package no. {{2}} has been shipped.\",\n                \"buttons\": [\n                    {\n                        \"text\": \"Track package\",\n                        \"url\": \"https://www.infobip.com/\",\n                        \"type\": \"URL\"\n                    }\n                ],\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"3205797306147058\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"delivery_notification\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"SHIPPING_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"LOCATION\"\n                },\n                \"body\": \"Order number {{1}} has been delivered to the shipping address seen on the map. Thank you for shopping at Go2Shop 😊\",\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"283858282272884\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"dinner_reminder\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"APPOINTMENT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Dinner will be starting at {{1}} in the hotel restaurant. Join us for good food, drinks, and even better company!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"442447183302567\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"e_receipt\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"PAYMENT_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"DOCUMENT\"\n                },\n                \"body\": \"Your receipt is attached. Thank you for shopping at Go2Shop!\",\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"465024971111801\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"e_ticket\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"TICKET_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"IMAGE\"\n                },\n                \"body\": \"Here is your e-ticket for {{1}}. Enjoy the show 😊\",\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"797992767248032\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"event_reminder_05\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ALERT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hello {{1}}! We hope you are getting excited for today's event, {{2}}, starting from {{3}} at {{4}}. Don’t be late, because many interesting topics will be held in each session!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"841575279509891\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"form_call\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hello {{1}}. You filled the form for {{2}}. Can we make a call to your number given by you to share detailed information? If you’d accept our communication request, please write YES as reply to this message.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"384327742230856\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"group_photo_2\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"⏱ Guess what? It is *PICTURE* o'clock. Be {{1}} in {{2}}.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"2202280506718474\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_kz_test_hsm_2\",\n            \"language\": \"ru\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Заказ {{1}} подтвержден и будет доставлен в течение 60 минут!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"576914492745457\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_kz_test_hsm_2\",\n            \"language\": \"kk\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Тапсырыс {{1}}  расталды және 60 минут ішінде жеткізіледі!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"1089975291175463\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_kz_test_hsm_2\",\n            \"language\": \"en_GB\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"The order {{1}} is confirmed and will be delivered during 60 minutes!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"1572345716266548\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_test_hsm_1\",\n            \"language\": \"en_GB\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hi {{1}}! Your account {{2}} has been updated.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"436224756863283\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_test_hsm_2\",\n            \"language\": \"en_US\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hi {{1}}! This is a test HSM. Your account {{2}} has been modified. Let us know if you didn't perform this change.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"1954872037941170\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_test_hsm_2\",\n            \"language\": \"ru\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Привет {{1}}! Это тестовое сообщение. Мы получили Ваш запрос о {{2}} и Вы скоро будете проинформированы. Спасибо!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"506862293163223\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"infobip_test_hsm_2\",\n            \"language\": \"tr\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Merhaba {{1}}! Bu bir test mesajıdır. {{2}} hakkındaki talebin bize ulaşmıştır, en kısa sürede konuyla ilgili dönüş yapılacaktır. Teşekkürler!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"559527227971084\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"instruction_video\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"VIDEO\"\n                },\n                \"body\": \"Your registration has been successful. Check out this tutorial video on how to start using the service 🤓\",\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"592287288234304\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"invoice\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"PAYMENT_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"DOCUMENT\"\n                },\n                \"body\": \"Dear {{1}}, your invoice for {{2}} is attached.\",\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"2399550613596500\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"issue_resolution\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ISSUE_RESOLUTION\",\n            \"structure\": {\n                \"body\": \"Hi there! Welcome to {{1}} on WhatsApp. Thank you for using our services. 😊\\nYour {{2}} repair has been booked for {{3}} {{4}} with this reference no: {{5}}. If you cannot make this time, please let us know again.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"2046724852048532\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"menu\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Dear {{1}}, {{2}} ( #{{3}} ) is here to see You. \\nPlease select an option below by replying with the option number. \\n*1.* Allow\\n*2.* Not available\\n*3.* Delay\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"921882634973811\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"registration_success\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"IMAGE\"\n                },\n                \"body\": \"Dear {{1}},  your {{2}} has been successfully {{3}}. Do you wish to proceed with {{4}}?\",\n                \"footer\": \"For more information, please check our website.\",\n                \"buttons\": [\n                    {\n                        \"text\": \"Yes\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"No\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"Remind me later\",\n                        \"type\": \"QUICK_REPLY\"\n                    }\n                ],\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"928406077623709\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"response__button\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ALERT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Please select a response from below options\",\n                \"buttons\": [\n                    {\n                        \"text\": \"Yes\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"No\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"Maybe\",\n                        \"type\": \"QUICK_REPLY\"\n                    }\n                ],\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"194344368521772\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"response_button1\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ALERT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Thank you for your interest in giving us feedback. Did you like our service?\",\n                \"buttons\": [\n                    {\n                        \"text\": \"Yes\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"No\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"Maybe\",\n                        \"type\": \"QUICK_REPLY\"\n                    }\n                ],\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"396894250929663\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"status_update\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"SHIPPING_UPDATE\",\n            \"structure\": {\n                \"body\": \"Dear {{1}}, as per your request we are happy to inform you that {{2}} is now {{3}}.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"2067939746659191\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"subscription\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hi {{1}}, Thank you for subscribing to {{2}}. Your subscription start date is {{3}} and is valid for next {{4}} months. Happy binging {{5}}.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"249875512826325\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"test_interactive_quick_reply\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"header\": {\n                    \"format\": \"DOCUMENT\"\n                },\n                \"body\": \"Dear {{1}}, we are informing you about changes related to our terms of service. Complete terms can be found in the attached document. Please provide feedback on whether you find the changes acceptable.\",\n                \"buttons\": [\n                    {\n                        \"text\": \"Yes\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"No\",\n                        \"type\": \"QUICK_REPLY\"\n                    },\n                    {\n                        \"text\": \"More info\",\n                        \"type\": \"QUICK_REPLY\"\n                    }\n                ],\n                \"type\": \"MEDIA\"\n            }\n        },\n        {\n            \"id\": \"383895272399895\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"thank_you_message\",\n            \"language\": \"es\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Gracias por haber atendido nuestro evento {{1}}! No nos perdamos y sigamos en contacto!\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"242283916695951\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"thank_you_message\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"We hope you took away a lot from today's event. It was great having you there! We look forward to seeing you at the next one.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"243241649723177\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"welcome_multiple_languages\",\n            \"language\": \"es\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hola {{1}}! Bienvenido a nuestro canal en WhatsApp. Responda \\\"Sí\\\" si desea continuar esta conversación.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"296326591169429\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"welcome_multiple_languages\",\n            \"language\": \"en\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Hi {{1}}! Welcome to our channel on WhatsApp. Please reply \\\"Yes\\\" if you wish to continue this conversation.\",\n                \"type\": \"TEXT\"\n            }\n        },\n        {\n            \"id\": \"1670432993085771\",\n            \"businessAccountId\": 2125987241021795,\n            \"name\": \"welcome_multiple_languages\",\n            \"language\": \"hr\",\n            \"status\": \"APPROVED\",\n            \"category\": \"ACCOUNT_UPDATE\",\n            \"structure\": {\n                \"body\": \"Pozdrav {{1}}! Dobrodošli na naš kanal na WhatsAppu. Molimo odgovorite \\\"Da\\\" ukoliko želite nastaviti ovaj razgovor.\",\n                \"type\": \"TEXT\"\n            }\n        }\n    ]\n}"
    }
  ]
}