notifications

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.

post/api/v2/notifications/subscriptions/

Request

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

Request body

endpointstring required
p256dhstring required
authstring required

Response

idinteger required
endpointstring required
p256dhstring required
authstring required
created_atstring date-time required

Changes

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