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.
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"
}Return the VAPID public key for browser web-push subscription.
Returns the server VAPID public key (null when web-push is not configured) so the client can call pushManager.subscribe without baking the key into the bundle.
Issue M2M access token (client_credentials)
OAuth 2.0 `client_credentials` grant. The canonical request media type is `application/x-www-form-urlencoded`; `application/json` remains accepted for backward wire compatibility. Returns a short-lived `Bearer` access token. M2M clients are provisioned in the admin panel (`POST /api/admin/m2m-clients`).