{
  "info": {
    "_postman_id": "97818874-3ac0-406d-8248-4ce7b3504203",
    "name": "AppHiveSL SMS API v2.0.2",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Postman collection generated from AppHiveSL SMS API Documentation v2.0.2 (2019)."
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.sierrahive.com"
    },
    {
      "key": "clientid",
      "value": "111"
    },
    {
      "key": "clientsecret",
      "value": "222"
    },
    {
      "key": "token",
      "value": "333"
    },
    {
      "key": "from",
      "value": "MyCompany"
    },
    {
      "key": "to",
      "value": "23230123456"
    },
    {
      "key": "content",
      "value": "hello customer"
    },
    {
      "key": "reference",
      "value": "my_reference_1"
    },
    {
      "key": "callbackUrl",
      "value": "http://mycompany.com/sms/callback"
    },
    {
      "key": "ticket",
      "value": "5f6f9a96-d766-4787-ba08-1fa0939b7166"
    }
  ],
  "item": [
    {
      "name": "SMS",
      "item": [
        {
          "name": "Send Single SMS (GET - URL params)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/messages/sms?clientid={{clientid}}&clientsecret={{clientsecret}}&token={{token}}&from={{from}}&to={{to}}&reference={{reference}}&content={{content}}&callbackUrl={{callbackUrl}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "messages",
                "sms"
              ],
              "query": [
                {
                  "key": "clientid",
                  "value": "{{clientid}}"
                },
                {
                  "key": "clientsecret",
                  "value": "{{clientsecret}}"
                },
                {
                  "key": "token",
                  "value": "{{token}}"
                },
                {
                  "key": "from",
                  "value": "{{from}}"
                },
                {
                  "key": "to",
                  "value": "{{to}}"
                },
                {
                  "key": "reference",
                  "value": "{{reference}}"
                },
                {
                  "key": "content",
                  "value": "{{content}}"
                },
                {
                  "key": "callbackUrl",
                  "value": "{{callbackUrl}}"
                }
              ]
            },
            "description": "GET request. No HTTP auth per doc; credentials passed as URL parameters."
          }
        },
        {
          "name": "Send Single SMS (POST - JSON body)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-Wallet",
                "value": "Token {{token}}"
              }
            ],
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "username",
                  "value": "{{clientid}}",
                  "type": "string"
                },
                {
                  "key": "password",
                  "value": "{{clientsecret}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"From\": \"{{from}}\",\n  \"To\": \"{{to}}\",\n  \"Content\": \"{{content}}\",\n  \"Reference\": \"{{reference}}\",\n  \"CallbackUrl\": \"{{callbackUrl}}\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/v1/messages/sms",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "messages",
                "sms"
              ]
            },
            "description": "POST request. Uses Basic auth (clientid/clientsecret) and X-Wallet header with Token."
          }
        },
        {
          "name": "Send One-to-Many (POST - bulk/otm)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-Wallet",
                "value": "Token {{token}}"
              }
            ],
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "username",
                  "value": "{{clientid}}",
                  "type": "string"
                },
                {
                  "key": "password",
                  "value": "{{clientsecret}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"From\": \"{{from}}\",\n  \"Content\": \"{{content}}\",\n  \"CallbackUrl\": \"{{callbackUrl}}\",\n  \"Recipients\": [\n    {\n      \"To\": \"{{to}}\",\n      \"Reference\": \"ref_1\"\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/v1/messages/sms/bulk/otm",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "messages",
                "sms",
                "bulk",
                "otm"
              ]
            },
            "description": "One message to many recipients (array). POST only."
          }
        },
        {
          "name": "Get Message Status (GET - by ticket)",
          "request": {
            "method": "GET",
            "header": [],
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "username",
                  "value": "{{clientid}}",
                  "type": "string"
                },
                {
                  "key": "password",
                  "value": "{{clientsecret}}",
                  "type": "string"
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/v1/transactions/{{ticket}}/status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "transactions",
                "{{ticket}}",
                "status"
              ]
            },
            "description": "Fetch status/details for a ticket returned by send requests."
          }
        }
      ]
    }
  ]
}