{
  "info": {
    "name": "BroadNet CPaaS API (essentials)",
    "description": "The most-used calls of the BroadNet REST API. {{baseUrl}} is preset to https://api.broadnet.me; set {{token}} to the access token from your BroadNet account. Test credentials, and where to send test traffic, come with test access: request it at https://www.broadnet.me/signup and we reply within one business day. Every request authenticates with an Authorization: Bearer header. Destination numbers are digits with country code and no plus sign; 447700900123 is a fictional example. For the full API (329 paths, 376 operations across 8 channels) import https://www.broadnet.me/developers/openapi.yaml into Postman.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.broadnet.me",
      "type": "string",
      "description": "API base URL: https://api.broadnet.me"
    },
    {
      "key": "token",
      "value": "YOUR_ACCESS_TOKEN",
      "type": "string",
      "description": "Access token from your BroadNet account (sent as Authorization: Bearer)."
    },
    {
      "key": "senderId",
      "value": "BroadNet",
      "type": "string",
      "description": "Your approved Sender ID."
    }
  ],
  "item": [
    {
      "name": "Send SMS",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "options": {
            "raw": {
              "language": "json"
            }
          },
          "raw": "{\n  \"senderId\": \"{{senderId}}\",\n  \"destinationNumber\": \"447700900123\",\n  \"message\": \"Your verification code is 482913\",\n  \"messageType\": \"TEXT\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/sms/sendSms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "sms",
            "sendSms"
          ]
        },
        "description": "Send one SMS. Required: senderId, destinationNumber, message, messageType (TEXT for GSM-7, UNICODE for Arabic, emoji and other scripts). 200 OK returns the message ID as the response body. Errors return an ExceptionResponse JSON object."
      },
      "response": []
    },
    {
      "name": "Identify message (encoding and segments)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "options": {
            "raw": {
              "language": "json"
            }
          },
          "raw": "{\n  \"message\": \"Your verification code is 482913\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/sms/identify",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "sms",
            "identify"
          ]
        },
        "description": "Analyse a message before sending. Returns messageType, charCount, smscount and charLimit."
      },
      "response": []
    },
    {
      "name": "Send bulk SMS (file upload)",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "destinationNumberFile",
              "type": "file",
              "src": [],
              "description": "CSV or TXT file of destination numbers."
            },
            {
              "key": "bulkRequest",
              "type": "text",
              "value": "{\"senderId\":\"{{senderId}}\",\"message\":\"Your statement is ready\",\"messageType\":\"TEXT\",\"campaignName\":\"statements\"}"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/sms/sendbulk",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "sms",
            "sendbulk"
          ]
        },
        "description": "Send one message to a file of recipients. Returns status, bulkSessionId, credits, deductcredits and bulkListInfo (total, validCount, invalidCount, duplicate)."
      },
      "response": []
    },
    {
      "name": "Send WhatsApp message",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "batchId",
              "type": "text",
              "value": "0",
              "description": "0 starts a new batch."
            },
            {
              "key": "campaignName",
              "type": "text",
              "value": "order-updates"
            },
            {
              "key": "destinationNo",
              "type": "text",
              "value": "447700900123",
              "description": "Comma-separated for several recipients."
            },
            {
              "key": "messageType",
              "type": "text",
              "value": "TEMPLATE"
            },
            {
              "key": "templateName",
              "type": "text",
              "value": "order_update"
            },
            {
              "key": "templateLanguage",
              "type": "text",
              "value": "en_US"
            },
            {
              "key": "bodyTemplateVariables",
              "type": "text",
              "value": "INV-400"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/whatsapp/message/sendbulk",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "whatsapp",
            "message",
            "sendbulk"
          ]
        },
        "description": "Send a WhatsApp message (TEXT, IMAGE, VIDEO, AUDIO, DOCUMENT, TEMPLATE, INTERACTIVE and more). Returns a batchId; per-recipient status (SUBMITTED, SENT, DELIVERED, READ, FAILED, REJECTED) is pushed to your webhook and readable at /whatsapp/message/bulk-insights."
      },
      "response": []
    }
  ]
}