{
  "info": {
    "name": "SMSTAKE Voice API",
    "description": "SMSTAKE Voice requests for https://api.smstake.com/v1/voice/. Send Authorization: Bearer {{SMSTAKE_API_KEY}}, or X-API-Key with the same value, not both. Field reference: https://smstake.com/docs/voice-api.html",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{SMSTAKE_API_KEY}}", "type": "string" }]
  },
  "variable": [
    { "key": "SMSTAKE_BASE_URL", "value": "https://api.smstake.com" }
  ],
  "item": [
    {
      "name": "Outbound call",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"phone\": \"+919876543210\",\n  \"text_to_speech\": \"Your order is out for delivery today.\",\n  \"language\": \"en\",\n  \"client_ref\": \"tts_order_1001\"\n}"
        },
        "url": "{{SMSTAKE_BASE_URL}}/v1/voice/call"
      }
    },
    {
      "name": "Voice OTP",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"phone\": \"+919876543210\",\n  \"text_to_speech\": \"Your verification code is 4 8 2 9 1 3.\",\n  \"language\": \"en\",\n  \"client_ref\": \"otp_login_1001\"\n}"
        },
        "url": "{{SMSTAKE_BASE_URL}}/v1/voice/otp"
      }
    }
  ]
}
