{
  "info": {
    "name": "SENDPK Bulk SMS API",
    "_postman_id": "6b1d4f27-9c03-4a58-8e71-5d2f0a93c4e6",
    "description": "Send SMS from your own software over a plain HTTP request. No SDK, no OAuth.\n\nSETUP\n1. Open the collection's Variables tab.\n2. Put your key in `api_key` (dashboard -> Profile -> API Key).\n3. Put your approved Sender ID in `sender`, and a test number in `mobile`.\n4. Put your approved template in `template_id`\n   (dashboard -> SMS Templates -> Fixed-SMS-Templates, or run\n   \"List My Templates\" in folder 4).\n5. Run \"Send Single SMS\". The reply looks like  OK ID:29346  and the id is\n   saved into `sms_id`, so \"Delivery Report\" works straight afterwards.\n\nABOUT `message`\nIt no longer carries your wording. Your wording is already fixed on our side\nin your approved template, so `message` carries only the values that change,\nas JSON, sent with your `template_id`.\n  template : Hello #name#, your OTP code is #otp#\n  message  : {\"name\":\"Aslam\",\"otp\":\"1234\"}\n\nPORTED NUMBERS (MNP)\nFolder 2 covers `ported=1` - guaranteed delivery on numbers that moved to\nanother network. See that folder's description for what it costs.\n\nFull docs: https://sendpk.com/api.php\nStatus codes: https://sendpk.com/api.php#status-codes",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://sendpk.com",
      "type": "string"
    },
    {
      "key": "api_key",
      "value": "YOUR_API_KEY",
      "type": "string"
    },
    {
      "key": "sender",
      "value": "8584",
      "type": "string"
    },
    {
      "key": "mobile",
      "value": "923001234567",
      "type": "string"
    },
    {
      "key": "template_id",
      "value": "YOUR_TEMPLATE_ID",
      "type": "string"
    },
    {
      "key": "sms_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "file_url",
      "value": "https://yourdomain.com/contacts.xlsx",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "1. Send SMS",
      "description": "The everyday sends. All of them use the same endpoint, api/sms.php.",
      "item": [
        {
          "name": "Send Single SMS",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/sms.php?api_key={{api_key}}&sender={{sender}}&mobile={{mobile}}&template_id={{template_id}}&message={\"name\":\"Aslam\",\"otp\":\"1234\"}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "sms.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}",
                  "description": "Required. Profile -> API Key in your dashboard."
                },
                {
                  "key": "sender",
                  "value": "{{sender}}",
                  "description": "Required. Your approved Sender ID."
                },
                {
                  "key": "mobile",
                  "value": "{{mobile}}",
                  "description": "Required. One number, or a comma-separated list."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}",
                  "description": "Required. Your approved Fixed-SMS / OTP template."
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"Aslam\",\"otp\":\"1234\"}",
                  "description": "Required. Only the values that change, as JSON."
                },
                {
                  "key": "ported",
                  "value": "1",
                  "description": "Optional. ported=1 makes sure the SMS reaches a ported (converted) number:\nwe find the number's real current network first, then send.\n\nYou do NOT need the `network` parameter as well - we detect it for you.\n\nPAID: Rs. 1 one-time lookup per number, then Rs. 0.25 for the same number\nagain within 60 days. Your normal SMS price is charged on top.\nPrices: https://sendpk.com/price.php#hlr-mnp",
                  "disabled": true
                },
                {
                  "key": "format",
                  "value": "json",
                  "description": "Optional: json, xml or plain.",
                  "disabled": true
                }
              ]
            },
            "description": "One message to one recipient.\n\nReply:  OK ID:29346\nSave that id if you want to check the delivery report later.\n\nTick `ported` on if the number may have moved to another network - see folder 2."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "Send Bulk SMS",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/sms.php?api_key={{api_key}}&sender={{sender}}&mobile=923001234567,923101234567&template_id={{template_id}}&message={\"name\":\"Aslam\",\"otp\":\"1234\"}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "sms.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                },
                {
                  "key": "sender",
                  "value": "{{sender}}"
                },
                {
                  "key": "mobile",
                  "value": "923001234567,923101234567",
                  "description": "Comma-separated list. The same message goes to everyone."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}"
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"Aslam\",\"otp\":\"1234\"}"
                },
                {
                  "key": "ported",
                  "value": "1",
                  "description": "Optional. ported=1 makes sure the SMS reaches a ported (converted) number:\nwe find the number's real current network first, then send.\n\nYou do NOT need the `network` parameter as well - we detect it for you.\n\nPAID: Rs. 1 one-time lookup per number, then Rs. 0.25 for the same number\nagain within 60 days. Your normal SMS price is charged on top.\nPrices: https://sendpk.com/price.php#hlr-mnp",
                  "disabled": true
                }
              ]
            },
            "description": "The same message to many recipients in one call.\n\nPut the numbers in `mobile`, separated by commas. Nothing else changes."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "Send Unicode SMS (emoji / Urdu)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/sms.php?api_key={{api_key}}&sender={{sender}}&mobile={{mobile}}&template_id={{template_id}}&message={\"name\":\"Aslam\",\"otp\":\"1234\"}&type=unicode",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "sms.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}",
                  "description": "Required. Profile -> API Key in your dashboard."
                },
                {
                  "key": "sender",
                  "value": "{{sender}}",
                  "description": "Required. Your approved Sender ID."
                },
                {
                  "key": "mobile",
                  "value": "{{mobile}}",
                  "description": "Required. One number, or a comma-separated list."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}",
                  "description": "Required. Your approved Fixed-SMS / OTP template."
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"Aslam\",\"otp\":\"1234\"}",
                  "description": "Required. Only the values that change, as JSON."
                },
                {
                  "key": "type",
                  "value": "unicode",
                  "description": "Required for emoji or non-Latin script."
                }
              ]
            },
            "description": "Set type=unicode to send emoji or Urdu / regional-script text.\n\nPostman URL-encodes the values for you."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "2. Ported numbers (MNP) - ported=1",
      "description": "Some people keep their old number but move to another network. That is a\nPORTED number (MNP - Mobile Number Portability). A normal SMS can fail on\nthese numbers.\n\nAdd ported=1 and we check the number's REAL CURRENT NETWORK first, then send.\n\nYOU DO NOT NEED THE `network` PARAMETER AS WELL\n  network=Jazz  -> you already know the network and name it yourself. FREE.\n  ported=1      -> we find the network for you, automatically.      PAID.\n\nWHAT IT COSTS\n  Rs. 1     one-time lookup, per number\n  Rs. 0.25  same number again within 60 days (we reuse the saved lookup)\n  Your normal SMS price is charged as usual, on top of this.\n  Full pricing: https://sendpk.com/price.php#hlr-mnp\n\nDON'T WANT TO ADD IT EVERY TIME?\nTurn it on once: dashboard -> Profile -> tick \"Ported Number Coverage (MNP)\".\nAfter that we detect ported numbers on every send and you can drop the\nparameter completely.\n\nIF IT IS NOT ALLOWED ON YOUR ACCOUNT\nYou get status 12 with the text \"Ported Number Coverage (MNP) is not\navailable on this account.\" - contact support.",
      "item": [
        {
          "name": "Send Single SMS with ported=1",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/sms.php?api_key={{api_key}}&sender={{sender}}&mobile={{mobile}}&template_id={{template_id}}&message={\"name\":\"Aslam\",\"otp\":\"1234\"}&ported=1",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "sms.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}",
                  "description": "Required. Profile -> API Key in your dashboard."
                },
                {
                  "key": "sender",
                  "value": "{{sender}}",
                  "description": "Required. Your approved Sender ID."
                },
                {
                  "key": "mobile",
                  "value": "{{mobile}}",
                  "description": "Required. One number, or a comma-separated list."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}",
                  "description": "Required. Your approved Fixed-SMS / OTP template."
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"Aslam\",\"otp\":\"1234\"}",
                  "description": "Required. Only the values that change, as JSON."
                },
                {
                  "key": "ported",
                  "value": "1",
                  "description": "Optional. ported=1 makes sure the SMS reaches a ported (converted) number:\nwe find the number's real current network first, then send.\n\nYou do NOT need the `network` parameter as well - we detect it for you.\n\nPAID: Rs. 1 one-time lookup per number, then Rs. 0.25 for the same number\nagain within 60 days. Your normal SMS price is charged on top.\nPrices: https://sendpk.com/price.php#hlr-mnp"
                }
              ]
            },
            "description": "The same single send as folder 1, plus ported=1.\n\nWe look the number's real network up, then deliver on that network.\nLeave `network` out - it is not needed.\n\nRs. 1 for the first lookup of a number, Rs. 0.25 within the next 60 days."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "Send Bulk SMS with ported=1",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/sms.php?api_key={{api_key}}&sender={{sender}}&mobile=923001234567,923101234567&template_id={{template_id}}&message={\"name\":\"Aslam\",\"otp\":\"1234\"}&ported=1",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "sms.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                },
                {
                  "key": "sender",
                  "value": "{{sender}}"
                },
                {
                  "key": "mobile",
                  "value": "923001234567,923101234567",
                  "description": "Comma-separated list."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}"
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"Aslam\",\"otp\":\"1234\"}"
                },
                {
                  "key": "ported",
                  "value": "1",
                  "description": "Optional. ported=1 makes sure the SMS reaches a ported (converted) number:\nwe find the number's real current network first, then send.\n\nYou do NOT need the `network` parameter as well - we detect it for you.\n\nPAID: Rs. 1 one-time lookup per number, then Rs. 0.25 for the same number\nagain within 60 days. Your normal SMS price is charged on top.\nPrices: https://sendpk.com/price.php#hlr-mnp"
                }
              ]
            },
            "description": "Bulk send with ported-number coverage on.\n\nEvery number in the list is looked up, so price the lookups for the\nwhole list: Rs. 1 each the first time, Rs. 0.25 each within 60 days."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "Dynamic / Personalized SMS with ported=1",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/personalised.php?api_key={{api_key}}&sender={{sender}}&url={{file_url}}&template_id={{template_id}}&message={\"name\":\"#B#\",\"order_id\":\"#C#\"}&ported=1",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "personalised.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                },
                {
                  "key": "sender",
                  "value": "{{sender}}"
                },
                {
                  "key": "url",
                  "value": "{{file_url}}",
                  "description": "Public link to your .txt/.csv/.xls/.xlsx file."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}"
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"#B#\",\"order_id\":\"#C#\"}",
                  "description": "Values point at the file's columns."
                },
                {
                  "key": "ported",
                  "value": "1",
                  "description": "Optional. ported=1 makes sure the SMS reaches a ported (converted) number:\nwe find the number's real current network first, then send.\n\nYou do NOT need the `network` parameter as well - we detect it for you.\n\nPAID: Rs. 1 one-time lookup per number, then Rs. 0.25 for the same number\nagain within 60 days. Your normal SMS price is charged on top.\nPrices: https://sendpk.com/price.php#hlr-mnp"
                }
              ]
            },
            "description": "ported=1 works on the file-based endpoint too, exactly the same way."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "3. Dynamic / Personalized SMS",
      "description": "Bulk send where every contact gets their own values, read from a file.\nUpload a .txt / .csv / .xls / .xlsx somewhere public, then point `url` at it.\nIn `message`, each value points at a column: #B# is column B, #C# is column C.",
      "item": [
        {
          "name": "Send from a file",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/personalised.php?api_key={{api_key}}&sender={{sender}}&url={{file_url}}&template_id={{template_id}}&message={\"name\":\"#B#\",\"order_id\":\"#C#\"}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "personalised.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                },
                {
                  "key": "sender",
                  "value": "{{sender}}"
                },
                {
                  "key": "url",
                  "value": "{{file_url}}",
                  "description": "Required. Public link to your file."
                },
                {
                  "key": "template_id",
                  "value": "{{template_id}}",
                  "description": "Required."
                },
                {
                  "key": "message",
                  "value": "{\"name\":\"#B#\",\"order_id\":\"#C#\"}",
                  "description": "Required. #COLUMN# per value."
                },
                {
                  "key": "duplicate",
                  "value": "0",
                  "description": "Optional. 0 removes duplicate numbers, 1 keeps them.",
                  "disabled": true
                },
                {
                  "key": "ported",
                  "value": "1",
                  "description": "Optional. ported=1 makes sure the SMS reaches a ported (converted) number:\nwe find the number's real current network first, then send.\n\nYou do NOT need the `network` parameter as well - we detect it for you.\n\nPAID: Rs. 1 one-time lookup per number, then Rs. 0.25 for the same number\nagain within 60 days. Your normal SMS price is charged on top.\nPrices: https://sendpk.com/price.php#hlr-mnp",
                  "disabled": true
                }
              ]
            },
            "description": "This endpoint takes `url` instead of `mobile` - the numbers come from\nthe file. Everything else works the same."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// The API answers in plain text, e.g.  OK ID:29346",
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "",
                  "var m = body.match(/ID:(\\d+)/);",
                  "if (m) {",
                  "    pm.collectionVariables.set('sms_id', m[1]);",
                  "    console.log('Saved sms_id = ' + m[1] + ' - \"Delivery Report\" will use it.');",
                  "}",
                  "",
                  "if (body.indexOf('OK') !== 0) {",
                  "    console.log('NOT accepted. The number before the colon is the status code;');",
                  "    console.log('the text after it says why. See the Status Codes table on');",
                  "    console.log('https://sendpk.com/api.php#status-codes');",
                  "}",
                  "pm.test('Accepted for delivery', function () {",
                  "    pm.expect(body).to.contain('OK');",
                  "});"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "4. Account & Reports",
      "item": [
        {
          "name": "Check Balance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/balance.php?api_key={{api_key}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "balance.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            },
            "description": "Your remaining credit."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "pm.test('Got an answer', function () {",
                  "    pm.expect(pm.response.code).to.eql(200);",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "Delivery Report",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/delivery.php?api_key={{api_key}}&id={{sms_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "delivery.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                },
                {
                  "key": "id",
                  "value": "{{sms_id}}",
                  "description": "The id from the OK ID: reply. Sends above fill this in for you."
                }
              ]
            },
            "description": "Was the message delivered? Pass the id you got back when you sent it.\n\nAny send in this collection saves its id into `sms_id`, so you can run\nthis straight after one."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "pm.test('Got an answer', function () {",
                  "    pm.expect(pm.response.code).to.eql(200);",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "List My Templates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/apps/fetch_all_fixed_templates.php?api_key={{api_key}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "apps",
                "fetch_all_fixed_templates.php"
              ],
              "query": [
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            },
            "description": "Every approved template on your account: its id, its wording, and the\n`variables` list naming the exact JSON keys to send in `message`."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "var body = pm.response.text();",
                  "console.log('Reply:', body);",
                  "pm.test('Got an answer', function () {",
                  "    pm.expect(pm.response.code).to.eql(200);",
                  "});"
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
