{
  "info": {
    "name": "ZafeConnect messaging API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "The documented customer endpoints of the ZafeConnect messaging API. Create an API key in your ZafeConnect account, set the \"apiKey\" collection variable, and send. Example values are illustrative.\n\nDocumentation: https://www.zafeconnect.com/developers\nOpenAPI: https://www.zafeconnect.com/openapi.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.zafeconnect.com"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY"
    }
  ],
  "item": [
    {
      "name": "POST /v1/messages/send",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"to\": \"+4520123456\",\n  \"channel\": \"sms\",\n  \"message\": \"Hello from ZafeConnect!\",\n  \"sender\": \"MyBrand\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/messages/send",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "messages",
            "send"
          ]
        },
        "description": "Send a single message via SMS, RCS, WhatsApp or email. The sender must be an approved sender. See how SenderID registration works. The cost and currency fields reflect your account pricing; example values are illustrative.\n\nDocumentation: https://www.zafeconnect.com/developers#send"
      }
    },
    {
      "name": "POST /v1/messages/bulk",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"messages\": [\n    {\n      \"to\": \"+4520123456\",\n      \"channel\": \"sms\",\n      \"message\": \"Hi Anders!\"\n    },\n    {\n      \"to\": \"+4531234567\",\n      \"channel\": \"sms\",\n      \"message\": \"Hi Sara!\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/messages/bulk",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "messages",
            "bulk"
          ]
        },
        "description": "Send up to 10,000 messages in one request. Each is queued individually. Limited to 100 requests per minute.\n\nDocumentation: https://www.zafeconnect.com/developers#bulk"
      }
    },
    {
      "name": "GET /v1/messages/:id",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/messages/msg_01j2abc",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "messages",
            "msg_01j2abc"
          ]
        },
        "description": "Get the current delivery status of a message by its ID.\n\nDocumentation: https://www.zafeconnect.com/developers#status"
      }
    },
    {
      "name": "DELETE /v1/messages/:id",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/messages/msg_01j2abc",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "messages",
            "msg_01j2abc"
          ]
        },
        "description": "Cancel a scheduled message. Only works while the status is scheduled.\n\nDocumentation: https://www.zafeconnect.com/developers#cancel"
      }
    },
    {
      "name": "GET /v1/account/balance",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/account/balance",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "account",
            "balance"
          ]
        },
        "description": "Get your current account balance, currency and plan.\n\nDocumentation: https://www.zafeconnect.com/developers#balance"
      }
    },
    {
      "name": "GET /v1/account/pricing",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/account/pricing",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "account",
            "pricing"
          ]
        },
        "description": "Get your current prices per channel and country.\n\nDocumentation: https://www.zafeconnect.com/developers#pricing"
      }
    },
    {
      "name": "GET /v1/account/usage",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-API-Key",
            "value": "{{apiKey}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/account/usage?from=2026-05-01",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "account",
            "usage"
          ],
          "query": [
            {
              "key": "from",
              "value": "2026-05-01"
            }
          ]
        },
        "description": "Message volume and spend for a date range, broken down by channel.\n\nDocumentation: https://www.zafeconnect.com/developers#usage"
      }
    }
  ]
}
