action mastodon_post_api_v1_push_subscription { label: "post_api_v1_push_subscription" description: "Add a Web Push API subscription to receive notifications. Each access token can have one push subscription. If you create a new subscription, the old subscription is deleted." provider: mastodon method: POST path: "/api/v1/push/subscription" encoding: json input: { type: "object" required: ["data", "subscription"] properties: { data: { type: "string" } subscription: { type: "string" } } } output: { description: "Represents a subscription to the push streaming server." required: ["alerts", "endpoint", "id", "server_key"] properties: { alerts: { type: "object" description: "Which alerts should be delivered to the `endpoint`." } endpoint: { type: "string" description: "Where push alerts will be sent to." } id: { type: "string" description: "The ID of the push subscription in the database. Cast from an integer, but not guaranteed to be a number." } server_key: { type: "string" description: "The streaming server's VAPID key." } } } }