{
  "info": {
    "name": "iLeads API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "https://docs.ileads.co.il/en/api/"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://app.ileads.co.il/api"
    },
    {
      "key": "token",
      "value": "YOUR_API_TOKEN"
    },
    {
      "key": "username",
      "value": "my_username"
    }
  ],
  "item": [
    {
      "name": "Generate an API token",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"getApiToken\": {\n    \"user\": {\n      \"username\": \"admin_username\"\n    },\n    \"username\": \"username_for_token\",\n    \"action\": \"new\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Create a new token, or retrieve the most recent one, using an existing valid token. A parent account can create a token for one of its sub-accounts."
      }
    },
    {
      "name": "Send SMS",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sms\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"source\": \"DemoAPI\",\n    \"destinations\": {\n      \"cl_id\": [\n        \"21518\",\n        \"21500\"\n      ],\n      \"phone\": [\n        {\n          \"$\": {\n            \"id\": \"external id1\"\n          },\n          \"_\": \"5xxxxxxxx\"\n        },\n        {\n          \"$\": {\n            \"id\": \"external id2\"\n          },\n          \"_\": \"5xxxxxxxx\"\n        },\n        {\n          \"_\": \"5xxxxxxxx\"\n        },\n        {\n          \"$\": {\n            \"id\": \"\"\n          },\n          \"_\": \"5xxxxxxxx\"\n        }\n      ]\n    },\n    \"tag\": \"#\",\n    \"message\": \"This is a sample message. [link-a1]\",\n    \"add_dynamic\": \"0\",\n    \"timing\": \"30/03/14 10:10\",\n    \"add_unsubscribe\": \"0\",\n    \"temp_bl\": \"2\",\n    \"includes_international\": \"1\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"links\": {\n      \"link\": [\n        {\n          \"$\": {\n            \"id\": \"a1\"\n          },\n          \"_\": \"https://www.example.com/path/to/resource\"\n        }\n      ]\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Send one message to one or many recipients – individual numbers, contact lists, or both."
      }
    },
    {
      "name": "Send bulk SMS",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"bulk\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"messages\": {\n      \"sms\": [\n        {\n          \"source\": \"DemoAPI\",\n          \"destinations\": {\n            \"phone\": [\n              {\n                \"$\": {\n                  \"id\": \"external id1\"\n                },\n                \"_\": \"5xxxxxxxx\"\n              },\n              {\n                \"$\": {\n                  \"id\": \"external id2\"\n                },\n                \"_\": \"5xxxxxxxx\"\n              },\n              {\n                \"_\": \"5xxxxxxxx\"\n              },\n              {\n                \"$\": {\n                  \"id\": \"\"\n                },\n                \"_\": \"5xxxxxxxx\"\n              }\n            ]\n          },\n          \"message\": \"This is a sample message\"\n        },\n        {\n          \"source\": \"DemoAPI\",\n          \"destinations\": {\n            \"phone\": {\n              \"_\": \"5xxxxxxxx\",\n              \"$\": {\n                \"id\": \"\"\n              }\n            }\n          },\n          \"message\": \"This is a different message sent. [link-a1]\",\n          \"links\": {\n            \"link\": [\n              {\n                \"$\": {\n                  \"id\": \"a1\"\n                },\n                \"_\": \"https://www.example.com/path/to/resource\"\n              }\n            ]\n          }\n        }\n      ]\n    },\n    \"timing\": \"10/10/17 10:10\",\n    \"temp_bl\": \"2\",\n    \"includes_international\": \"1\",\n    \"campaign_name\": \"Sample Bulk Campaign\"\n\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Send different messages to different recipients in a single request – for example, a personal message per customer."
      }
    },
    {
      "name": "Get balance",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"balance\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Check the remaining message balance of the account."
      }
    },
    {
      "name": "Delivery reports (DLR)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"dlr\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"transactions\": {\n      \"external_id\": [\n        \"some id 1\",\n        \"some id 2\"\n      ]\n    },\n    \"from\": \"01/01/14 00:00\",\n    \"to\": \"01/01/14 23:59\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Retrieve the delivery status of messages by the external id you attached when sending."
      }
    },
    {
      "name": "Delivery reports by date",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"dlrByDate\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"transactions\": {\n      \"external_id\": \"null\"\n    },\n    \"from\": \"04/09/22 00:00\",\n    \"to\": \"04/09/22 23:59\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Retrieve delivery reports by date range, without an external id."
      }
    },
    {
      "name": "Incoming SMS",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"incoming\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"from\": \"01/11/22 00:00\",\n    \"to\": \"01/11/22 23:59\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Retrieve received SMS messages (recipient replies)."
      }
    },
    {
      "name": "Create contact list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"newCL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"cl\": [\n      {\n        \"name\": \"name1\",\n        \"destinations\": {\n          \"destination\": [\n            {\n              \"phone\": \"55XXXXXXX\",\n              \"df1\": \"Israel\",\n              \"df2\": \"Israeli\",\n              \"df3\": \"Haifa\"\n            },\n            {\"phone\": \"55XXXXXXX\"}\n          ]\n        }\n      },\n      {\n        \"name\": \"name2\",\n        \"destinations\": {\n          \"destination\": [\n            {\"phone\": \"55XXXXXXX\"},\n            {\"phone\": \"55XXXXXXX\"}\n          ]\n        }\n      }\n    ]\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Create one or more lists, including numbers and dynamic fields."
      }
    },
    {
      "name": "Remove contact list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"removeCL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"cl\": {\n      \"id\": [\"21518\",\"21500\"]\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Remove one or more lists by ID."
      }
    },
    {
      "name": "Add numbers to a list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"addNumCL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"cl\": [\n      {\n        \"id\": \"21518\",\n        \"destinations\": {\n          \"destination\": [\n            {\n              \"phone\": \"055XXXXXXX\",\n              \"df1\": \"Israel\",\n              \"df2\": \"Israeli\",\n              \"df3\": \"Haifa\"\n            },\n            {\n              \"phone\": \"055XXXXXXX\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"21500\",\n        \"destinations\": {\n          \"destination\": [\n            {\"phone\": \"055XXXXXXX\"},\n            {\"phone\": \"055XXXXXXX\"}\n          ]\n        }\n      }\n    ]\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Add numbers to an existing list."
      }
    },
    {
      "name": "Remove numbers from a list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"rmNumCL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"cl\": [\n      {\n        \"id\": \"21518\",\n        \"destinations\": {\n          \"phone\": \"055XXXXXXX\"\n        }\n      },\n      {\n        \"id\": \"21500\",\n        \"destinations\": {\n          \"phone\": [\"055XXXXXXX\", \"055XXXXXXX\"]\n        }\n      }\n    ]\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Remove numbers from an existing list."
      }
    },
    {
      "name": "Get all contact lists",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"getCL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Get all lists in the account, including empty ones."
      }
    },
    {
      "name": "Get contact list by ID",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"getCLbyID\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"cl\": {\n      \"id\": \"1234\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Get the numbers of a specific list."
      }
    },
    {
      "name": "Get blacklist",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"blacklist\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"from\": \"02/06/22 00:00\",\n    \"to\": \"15/12/22 23:59\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Get blocked numbers by date range."
      }
    },
    {
      "name": "Remove from blacklist",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"rmNumBL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"phones\": {\n      \"phone\": [\n        \"5********\",\n        \"05********\"\n      ]\n    },\n    \"reason\": \"Text here\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Remove numbers from the blacklist, with a reason."
      }
    },
    {
      "name": "Add to blacklist",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"addNumBL\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"phones\": {\n      \"phone\": [\n        \"5********\",\n        \"05********\"\n      ]\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Add numbers to the blacklist – messages will not be sent to them."
      }
    },
    {
      "name": "Cancel campaign",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"cancel\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"campaign_id\": \"1324\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Cancel a scheduled send by campaign ID."
      }
    },
    {
      "name": "Cancel campaigns by name",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"cancel\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"campaign_name\": \"My Campaign\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Cancel all scheduled campaigns with a given name."
      }
    },
    {
      "name": "Verify a sender number",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"verify_phone\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"phone\": [\n      \"5xxxxxxxx\",\n      \"3xxxxxxx\"\n    ]\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Verify a phone number for use as a message source (sender). A mobile receives a verification link; a landline gets call-verification instructions."
      }
    },
    {
      "name": "Get verified phones",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"getVerifiedPhones\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"is_subs\": \"1\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Get all verified numbers in the account."
      }
    },
    {
      "name": "Send OTP code",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"send_otp\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"phone\": \"05XXXXXXXX\",\n    \"app_id\": \"1000\",\n    \"source\": \"MyBrand\",\n    \"max_tries\": \"4\",\n    \"text\": \"the code is [code]\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Send a 6-digit one-time code by SMS. The code is generated and stored by the system for later validation."
      }
    },
    {
      "name": "Validate OTP code",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"validate_otp\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"phone\": \"05XXXXXXXX\",\n    \"app_id\": \"1000\",\n    \"code\": \"494036\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Check whether the code entered by the user is valid for the number."
      }
    },
    {
      "name": "Add push URL",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"push_url\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"type\": \"dlr\",\n    \"url\": \"https://www.example.com/path/to/resource\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Set the URL updates are pushed to. It can also be set from the web interface."
      }
    },
    {
      "name": "Voice message (TTS)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sms\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"source\": \"DemoAPI\",\n    \"destinations\": {\n      \"cl_id\": [\n        \"21518\",\n        \"21500\"\n      ],\n      \"phone\": [\n        {\n          \"$\": {\n            \"id\": \"external id1\"\n          },\n          \"_\": \"5xxxxxxxx\"\n        },\n        {\n          \"$\": {\n            \"id\": \"external id2\"\n          },\n          \"_\": \"5xxxxxxxx\"\n        },\n        {\n          \"_\": \"5xxxxxxxx\"\n        },\n        {\n          \"$\": {\n            \"id\": \"\"\n          },\n          \"_\": \"5xxxxxxxx\"\n        }\n      ]\n    },\n    \"message\": \"This is a sample tts message\",\n    \"tts\": {\n      \"type\": 4,\n      \"rete\": -1,\n      \"repeat\": 1,\n      \"voice\": \"ymMale\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "The text is converted into a recorded voice call to the recipient. Identical to Send SMS, with an additional tts object. The call source is a system number."
      }
    },
    {
      "name": "Voice delivery reports",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ttsDlr\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"from\": \"01/05/23 00:00\",\n    \"to\": \"01/05/23 23:59\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Delivery reports of voice (TTS) campaigns."
      }
    },
    {
      "name": "Add sub-account",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"addSub\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"userDetails\": {\n      \"name\": \"israel israeli\",\n      \"username\": \" israelisraeli \",\n      \"password\": \" israelisraeli \",\n      \"source\": \"055xxxxxxx\",\n      \"amount\": \"70000\",\n      \"otpPhone\": \"5xxxxxxxx\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Create a sub-account under your account, with a message balance."
      }
    },
    {
      "name": "Update sub-account balance",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"updateAmountSub\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"userDetails\": {\n      \"username\": \"username1\",\n      \"amount\": \"70000\",\n      \"amount_int\": \"6000\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Update the message balance of a sub-account."
      }
    },
    {
      "name": "Get sub-account balances",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"getBlanceSubs\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Get the balance of all sub-accounts."
      }
    },
    {
      "name": "Get birthday campaigns",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"get_birthday_campaigns\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Get the birthday campaigns (automatic messages sent on the recipient’s birthday)."
      }
    },
    {
      "name": "Edit birthday campaign",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{token}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"edit_birthday_campaign\": {\n    \"user\": {\n      \"username\": \"{{username}}\"\n    },\n    \"campaign_id\": \"XXXX\",\n    \"message\": \"XXXX\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}",
          "host": [
            "{{baseUrl}}"
          ]
        },
        "description": "Update the message of a birthday campaign."
      }
    }
  ]
}