{
  "info": {
    "name": "SMSTAKE RCS API",
    "description": "SMSTAKE RCS requests for https://api.smstake.com/v1/rcs/. Send Authorization: Bearer {{SMSTAKE_API_KEY}}. Field reference: https://smstake.com/docs/rcs-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": "Send text",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"to\": \"+919876543210\",\n  \"agent_id\": \"your_rcs_agent_id\",\n  \"type\": \"text\",\n  \"text\": \"Your order ORD-2847 has been shipped.\",\n  \"client_ref\": \"order_ORD2847\"\n}"
        },
        "url": "{{SMSTAKE_BASE_URL}}/v1/rcs/send"
      }
    },
    {
      "name": "Send batch",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"messages\": [\n    { \"to\": \"+919876543210\", \"agent_id\": \"your_rcs_agent_id\", \"type\": \"text\", \"text\": \"Hi Ananya, your appointment is confirmed for 4:30 PM.\", \"client_ref\": \"appt_1001\" }\n  ]\n}"
        },
        "url": "{{SMSTAKE_BASE_URL}}/v1/rcs/send-batch"
      }
    }
  ]
}
