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§
- Push
Preferences Request - Push
Preferences Response - Push
Subscribe Request - Push
Subscribe Response - Push
Unsubscribe Request - Push
Unsubscribe Response
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.