Get the server's VAPID public key for push subscription.
{ "publicKey": "BPx..." } Subscribe to push notifications for an event.
| Field | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | Push subscription endpoint URL |
keys.p256dh | string | Yes | P-256 Diffie-Hellman public key |
keys.auth | string | Yes | Authentication secret |
locale | string | No | Language for notifications (e.g. "pt-PT"). Defaults to "en" |
clientId | string | No | Client ID for self-notification suppression |
{ "ok": true } Unsubscribe from push notifications.
| Field | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | The push subscription endpoint to remove |
{ "ok": true }