Rensei docs
API ReferenceNotifications

Store a browser web-push subscription for the authenticated user.

Persists a W3C PushSubscription as a per-user web-push device token. Scoped to the authenticated user; a credential with no user identity is rejected.

POST
/api/notifications/web-push/subscribe

Authorization

AuthorizationBearer <token>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/notifications/web-push/subscribe" \  -H "Content-Type: application/json" \  -d '{    "endpoint": "http://example.com",    "keys": {      "p256dh": "string",      "auth": "string"    }  }'
{
  "id": "string"
}
Empty
Empty
Empty