Skip to main content

Module push

Module push 

Source
Expand description

API handlers for Web Push subscription management.

  • POST /push/subscribe - register a push subscription (authenticated)
  • POST /push/unsubscribe - remove a push subscription (authenticated)
  • POST /push/preferences - update notification preferences (authenticated)

All endpoints require EIP-712 signature auth. The wallet is extracted from the verified signature, not from the request body.

Structs§

PushPreferencesRequest
PushPreferencesResponse
PushSubscribeRequest
PushSubscribeResponse
PushUnsubscribeRequest
PushUnsubscribeResponse

Functions§

push_preferences
Update notification preferences for an existing push subscription.
push_subscribe
Register a Web Push subscription for the authenticated wallet.
push_unsubscribe
Remove a Web Push subscription for the authenticated wallet.