{
  "info": {
    "name": "PushAlert — mcp.ai",
    "description": "REST API for the PushAlert MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/push_alert",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "push_alert_add_subscribers_to_segment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/add/subscribers/to/segment",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "add",
            "subscribers",
            "to",
            "segment"
          ]
        },
        "description": "Add one or more Web Push subscribers to an existing segment.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"segment_id\": 0,\n  \"subscriber_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_create_segment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/segment",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "segment"
          ]
        },
        "description": "Create a Web Push subscriber segment with a letters-and-digits name.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_delete_segment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/segment",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "segment"
          ]
        },
        "description": "Permanently delete a Web Push subscriber segment by ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"segment_id\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_get_notification_stats",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/notification/stats",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "notification",
            "stats"
          ]
        },
        "description": "Get attempted, delivered, clicked, and click-through-rate statistics for a Web Push notification.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"notification_id\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_get_subscriber_attributes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/subscriber/attributes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "subscriber",
            "attributes"
          ]
        },
        "description": "Get custom attributes for a Web Push subscriber.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"subscriber_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_list_segments",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/segments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "segments"
          ]
        },
        "description": "List all Web Push subscriber segments and their subscriber counts.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_remove_subscribers_from_segment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/remove/subscribers/from/segment",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "remove",
            "subscribers",
            "from",
            "segment"
          ]
        },
        "description": "Remove one or more Web Push subscribers from an existing segment.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"segment_id\": 0,\n  \"subscriber_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_send_web_push_notification",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/send/web/push/notification",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "send",
            "web",
            "push",
            "notification"
          ]
        },
        "description": "Send an irreversible Web Push notification to a saved segment, explicit subscriber IDs, or attribute-matched subscribers. If no targeting field is supplied, sends to every subscriber. Excludes paid ri",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"icon\": \"\",\n  \"title\": \"\",\n  \"message\": \"\",\n  \"attributes\": {},\n  \"segment_id\": 0,\n  \"subscriber\": \"\",\n  \"expire_time\": 0,\n  \"subscribers\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "push_alert_set_subscriber_attributes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/set/subscriber/attributes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "set",
            "subscriber",
            "attributes"
          ]
        },
        "description": "Add or update custom attributes for a Web Push subscriber.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"attributes\": {},\n  \"subscriber_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}