---
title: "Subscribe Notify Push"
method: POST
path: "/api/notify/subscription"
tags: ["Notify"]
---

# Subscribe Notify Push

`POST /api/notify/subscription`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/notify/subscription`
- Auth: none required

## Request body

- NotifySubscriptionRequest: NotifySubscriptionRequest schema
  - `endpoint` string, required: Push service endpoint URL (https only, max 2048 chars)
  - `keys` NotifySubscriptionKeys, required
    - `auth` string, required: Base64url-encoded 16-byte auth secret
    - `p256dh` string, required: Base64url-encoded 65-byte uncompressed EC public key
  - `locale` string: Preferred locale for push payload text (max 16 chars)
  - `topics` string[], nullable, required: Topics to subscribe to; concrete names or single-wildcard patterns

## Response `200`

OK

- NotifySubscriptionResponse: NotifySubscriptionResponse schema
  - `data` NotifySubscriptionData
    - `endpoint_hash` string, required
    - `topics` string[], nullable, required
  - `message` string
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
