{
  "info": {
    "name": "BulkBridge SMS API",
    "description": "Postman collection for integrating with the BulkBridge SMS and OTP API. Set base_url and api_key before sending requests.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost:4000"
    },
    {
      "key": "api_key",
      "value": ""
    },
    {
      "key": "recipient_phone",
      "value": "+260976882030"
    },
    {
      "key": "sender_id",
      "value": "BULKBRIDGE"
    },
    {
      "key": "message_id",
      "value": "1"
    },
    {
      "key": "otp_id",
      "value": "1"
    },
    {
      "key": "otp_code",
      "value": "123456"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{api_key}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Docs",
      "item": [
        {
          "name": "OpenAPI JSON",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}/api/v1/docs"
          }
        }
      ]
    },
    {
      "name": "SMS",
      "item": [
        {
          "name": "Send SMS",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"to\": \"{{recipient_phone}}\",\n  \"message\": \"Hello from BulkBridge SMS API.\",\n  \"sender_id\": \"{{sender_id}}\"\n}"
            },
            "url": "{{base_url}}/api/v1/sms/send"
          }
        },
        {
          "name": "List Messages",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/api/v1/sms"
          }
        },
        {
          "name": "Get Message",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/api/v1/sms/{{message_id}}"
          }
        }
      ]
    },
    {
      "name": "OTP",
      "item": [
        {
          "name": "Send OTP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"{{recipient_phone}}\"\n}"
            },
            "url": "{{base_url}}/api/v1/otp/send"
          }
        },
        {
          "name": "Verify OTP by ID",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"otp_id\": \"{{otp_id}}\",\n  \"code\": \"{{otp_code}}\"\n}"
            },
            "url": "{{base_url}}/api/v1/otp/verify"
          }
        },
        {
          "name": "Get OTP",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/api/v1/otp/{{otp_id}}"
          }
        },
        {
          "name": "Cancel OTP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"otp_id\": \"{{otp_id}}\"\n}"
            },
            "url": "{{base_url}}/api/v1/otp/cancel"
          }
        }
      ]
    },
    {
      "name": "Balance",
      "item": [
        {
          "name": "Get Balance",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/api/v1/balance"
          }
        }
      ]
    }
  ]
}
