{
  "info": {
    "_postman_id": "a29d49d8-6d65-4ff0-8c4a-4c9f5514cbb4",
    "name": "Pushfa Webservices",
    "description": "Postman collection for Pushfa public notification webservices. Set collection variables before sending requests.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://pushfa.com/api/webservices"
    },
    {
      "key": "api_public_key",
      "value": "YOUR_PUBLIC_KEY"
    },
    {
      "key": "api_private_key",
      "value": "YOUR_PRIVATE_KEY"
    },
    {
      "key": "fcm_token",
      "value": "USER_FCM_TOKEN"
    },
    {
      "key": "topic_uuid",
      "value": "TOPIC_UUID"
    },
    {
      "key": "alias",
      "value": "USER_ALIAS_ID"
    },
    {
      "key": "notification_id",
      "value": "MESSAGE_RECEPTOR_UUID"
    }
  ],
  "item": [
    {
      "name": "Send single message",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fcm_token\": \"{{fcm_token}}\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"btn_left\": {\n    \"title\": \"Left button\",\n    \"url\": \"https://example.com/left\"\n  },\n  \"btn_right\": {\n    \"title\": \"Right button\",\n    \"url\": \"https://example.com/right\"\n  },\n  \"get_delivery_status\": true,\n  \"webhook_url\": \"https://example.com/pushfa-webhook\",\n  \"get_click_status\": true,\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-single-message",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-single-message"
          ]
        }
      }
    },
    {
      "name": "Send single lite message",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fcm_token\": \"{{fcm_token}}\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-single-lite-message",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-single-lite-message"
          ]
        }
      }
    },
    {
      "name": "Send group message with reports",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fcm_tokens\": [\"{{fcm_token}}\"],\n  \"topic\": \"{{topic_uuid}}\",\n  \"device\": \"all\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"btn_left\": {\n    \"title\": \"Left button\",\n    \"url\": \"https://example.com/left\"\n  },\n  \"btn_right\": {\n    \"title\": \"Right button\",\n    \"url\": \"https://example.com/right\"\n  },\n  \"get_delivery_status\": true,\n  \"webhook_url\": \"https://example.com/pushfa-webhook\",\n  \"get_click_status\": true,\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-group-message",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-group-message"
          ]
        }
      }
    },
    {
      "name": "Send group lite message",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fcm_tokens\": [\"{{fcm_token}}\"],\n  \"topic\": \"{{topic_uuid}}\",\n  \"device\": \"all\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-group-lite-message",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-group-lite-message"
          ]
        }
      }
    },
    {
      "name": "Send group message without report",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fcm_tokens\": [\"{{fcm_token}}\"],\n  \"topic\": \"all\",\n  \"device\": \"all\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"btn_left\": {\n    \"title\": \"Left button\",\n    \"url\": \"https://example.com/left\"\n  },\n  \"btn_right\": {\n    \"title\": \"Right button\",\n    \"url\": \"https://example.com/right\"\n  },\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-group-message-without-report",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-group-message-without-report"
          ]
        }
      }
    },
    {
      "name": "Send via user alias id",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"alias\": \"{{alias}}\",\n  \"device\": \"all\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"btn_left\": {\n    \"title\": \"Left button\",\n    \"url\": \"https://example.com/left\"\n  },\n  \"btn_right\": {\n    \"title\": \"Right button\",\n    \"url\": \"https://example.com/right\"\n  },\n  \"get_delivery_status\": true,\n  \"get_click_status\": true,\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-via-user-alias-id",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-via-user-alias-id"
          ]
        }
      }
    },
    {
      "name": "Send quickly to topic",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"topic\": \"{{topic_uuid}}\",\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"title\": \"Pushfa title\",\n  \"body\": \"Pushfa notification body\",\n  \"link_url\": \"https://example.com\",\n  \"image_url\": \"https://example.com/image.jpg\",\n  \"btn_left\": {\n    \"title\": \"Left button\",\n    \"url\": \"https://example.com/left\"\n  },\n  \"btn_right\": {\n    \"title\": \"Right button\",\n    \"url\": \"https://example.com/right\"\n  },\n  \"sendTime\": \"current\",\n  \"time\": \"2026-06-01 12:30\",\n  \"ttl\": 86400\n}"
        },
        "url": {
          "raw": "{{base_url}}/send-quickly-to-topic",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "send-quickly-to-topic"
          ]
        }
      }
    },
    {
      "name": "Check notification status",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"api_public_key\": \"{{api_public_key}}\",\n  \"api_private_key\": \"{{api_private_key}}\",\n  \"notification_ids\": [\"{{notification_id}}\"]\n}"
        },
        "url": {
          "raw": "{{base_url}}/check-notification-status",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "check-notification-status"
          ]
        }
      }
    }
  ]
}
