notifications

POST /api/v2/notifications/subscriptions/

Create or update a push subscription (upsert by endpoint).

A push endpoint is a browser-level resource — the same physical push channel regardless of which user subscribed. The lookup uses endpoint alone (matching the model's unique constraint) so that if a different user subscribes from the same browser, the subscription is reassigned to them rather than creating a duplicate that would cause the browser to show the same notification twice.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Request body

PushSubscriptionRequest required
endpoint, string required
p256dh, string required
auth, string required

Response

PushSubscription required
id, integer required
endpoint, string required
p256dh, string required
auth, string required
created_at, string date-time required

Changes

No recorded changes to this operation across all 15 revisions of this API.