---
title: "Subscribe"
method: POST
path: "/notifications/web-push/subscriptions"
tags: ["Notifications"]
---

# Subscribe

`POST /notifications/web-push/subscriptions`

## Request body

- WebPushSubscriptionCreate — `PushSubscription.toJSON()` as the browser gives it.
  - `endpoint` string, required
  - `keys` WebPushSubscriptionKeys, required
    - `p256dh` string, required
    - `auth` string, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

> 33 revisions in range; 1 not diffed.

- **2026-10-06** `eb0ac355046c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/notifications/web-push/subscriptions/post.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/59dba414f8ae?raw)
