{
  "info": {
    "name": "SMSTAKE SMS API",
    "description": "SMSTAKE SMS requests for https://api.smstake.com. Import the SMSTAKE environment and replace the placeholder username, password, pe_id and template_id. Field reference: https://smstake.com/docs/sms-api.html",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "SMSTAKE_BASE_URL", "value": "https://api.smstake.com" }
  ],
  "item": [
    {
      "name": "HTTP GET send",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{SMSTAKE_BASE_URL}}/smsapi/httpapi.jsp?username={{SMSTAKE_USERNAME}}&password={{SMSTAKE_PASSWORD}}&from=SMSTKE&to=919876543210&text=Your%20OTP%20is%20482913&pe_id={{SMSTAKE_PE_ID}}&template_id={{SMSTAKE_TEMPLATE_ID}}&coding=0&flash=0&responsetype=json"
      }
    },
    {
      "name": "JSON send",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"username\": \"{{SMSTAKE_USERNAME}}\",\n  \"password\": \"{{SMSTAKE_PASSWORD}}\",\n  \"from\": \"SMSTKE\",\n  \"text\": \"Your OTP is 482913\",\n  \"pe_id\": \"{{SMSTAKE_PE_ID}}\",\n  \"template_id\": \"{{SMSTAKE_TEMPLATE_ID}}\",\n  \"to\": [\"919876543210\"]\n}"
        },
        "url": "{{SMSTAKE_BASE_URL}}/smsapi/jsonapi.jsp"
      }
    },
    {
      "name": "Pull delivery report",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{SMSTAKE_BASE_URL}}/dirresponse/dlrresp.jsp?username={{SMSTAKE_USERNAME}}&password={{SMSTAKE_PASSWORD}}&msgid=YOUR_ACK_ID&responsetype=json"
      }
    }
  ]
}
