{
  "info": {
    "name": "eTxtmo.com SMS API v1",
    "description": "Branded SMS to every Philippine network. Create a key on your shop's API & webhooks page and put it in api_key. Start with a test key (etxt_test_…): same answers with \"sandbox\": true, nothing is sent and no credits are used. Keys need the right permission per request: sms:send for POSTs, sms:read for message and batch reads, account:read for Account. POSTs carry an Idempotency-Key ({{$guid}} here, so every click is a new send; reuse a fixed value to see a replay). The key goes in the Authorization header only, never in the URL. Docs: https://etxtmo.com/docs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "basic",
    "basic": [
      {
        "key": "username",
        "value": "{{api_key}}",
        "type": "string"
      },
      {
        "key": "password",
        "value": "",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://etxtmo.com"
    },
    {
      "key": "api_key",
      "value": "etxt_test_YOUR_KEY"
    },
    {
      "key": "reference_id",
      "value": ""
    },
    {
      "key": "blast_id",
      "value": ""
    },
    {
      "key": "bulk_id",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Send SMS",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{$guid}}",
            "description": "Same key + same body within 24 h returns the first answer; never a second send or charge."
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/sms",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "sms"
          ]
        },
        "description": "One message, up to 670 characters. Returns 201 with message.reference_id.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"recipient\": \"09171234567\",\n  \"content\": \"Your verification code is 482913.\",\n  \"sender_id\": \"MYSHOP\",\n  \"metadata\": {\n    \"order_id\": \"1042\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get SMS",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api/v1/sms/{{reference_id}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "sms",
            "{{reference_id}}"
          ]
        },
        "description": "Status: pending, retrying, sent, delivered or failed (with fail_reason)."
      }
    },
    {
      "name": "Send Blast",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{$guid}}",
            "description": "Same key + same body within 24 h returns the first answer; never a second send or charge."
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/blast",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "blast"
          ]
        },
        "description": "Same message to up to 500 numbers. One blast or bulk request every 2 seconds.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"recipients\": [\n    \"09171234567\",\n    \"09181234567\"\n  ],\n  \"content\": \"Weekend sale: 20% off everything.\",\n  \"sender_id\": \"MYSHOP\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get Blast",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api/v1/blast/{{blast_id}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "blast",
            "{{blast_id}}"
          ]
        },
        "description": "Every message of one blast with a status tally."
      }
    },
    {
      "name": "Send Bulk",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{$guid}}",
            "description": "Same key + same body within 24 h returns the first answer; never a second send or charge."
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/bulk",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "bulk"
          ]
        },
        "description": "A different message per recipient, up to 500.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sender_id\": \"MYSHOP\",\n  \"messages\": [\n    {\n      \"recipient\": \"09171234567\",\n      \"content\": \"Hi Ana, your bill of P1,250 is due on Friday.\",\n      \"metadata\": {\n        \"account\": \"A-1\"\n      }\n    },\n    {\n      \"recipient\": \"09181234567\",\n      \"content\": \"Hi Ben, your bill of P980 is due on Friday.\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get Bulk",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api/v1/bulk/{{bulk_id}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "bulk",
            "{{bulk_id}}"
          ]
        },
        "description": "Every message of one bulk batch with a status tally."
      }
    },
    {
      "name": "Account",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api/v1/account",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "account"
          ]
        },
        "description": "Email, credits, Sender-ID tokens, approved Sender IDs and status."
      }
    }
  ]
}
