---
title: "Push Subscribe"
method: POST
path: "/push/subscribe"
tags: ["Web Push"]
---

# Push Subscribe

`POST /push/subscribe`

Create a new Web Push subscription.

If an existing subscription exists on this session, it will be removed.

## Request body

- WebPushSubscription — Web Push subscription
  - `endpoint` string, required
  - `p256dh` string, required
  - `auth` string, required

## Response `204`

Success

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/revolt/apis/revolt-api.md) · [All operations](https://skmtc.net/revolt/apis/revolt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/revolt/revolt-api/revisions/fee80de86d4d/schema)
