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

# Subscribe to web push

`POST /v1/web-push/subscribe`

Register a browser push subscription for the authenticated user.

## Request body

- object
  - `endpoint` string, uri, required
  - `keys` object, required
    - `p256dh` string, required
    - `auth` string, required
  - `userAgent` string

## Response `200`

Default Response

- object
  - `success` boolean

## Other responses

- `401` — Default Response
- `429` — Default Response

---

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