Records that the user opened the bell panel and resets their badge count. Returns the current new_since_opened count (always 0 after this call) and the server time so the JS can update its poll cursor if needed.
Handler: bell_opened()
No parameters declared in the route registration.
curl
curl-X POST -u"user:application-password""https://example.com/wp-json/davo/v1/notifications/bell-opened"
Saves a mute/unmute preference for the current user, per channel. email_enabled is optional — when omitted, the repository mirrors it from is_muted so callers that only know about a single toggle (the notification item's "Turn off these notifications" action) continue to turn both channels off/on together with zero changes on their end. has_param() is used rather than get_param() ?? null so an explicit false is not confused with "not provided".
Handler: save_preference()
No parameters declared in the route registration.
curl
curl-X POST -u"user:application-password""https://example.com/wp-json/davo/v1/notifications/preferences"
Tracks whether a browser tab is actively visible. Push delivery uses this foreground state to avoid native push duplicates while the user is actively viewing Davo.
Returns the full registry of notification types in the flat shape used by the notification preferences UI: { id, group, label, channels }. This is the single place the frontend fetches the type list from — previously the Profile domain bridged this via a davo_notification_preference_types filter; that bridge is now retired in favor of the Notifications domain serving its own registry directly.
Marks specific notification IDs as unread for the current user — the explicit "Mark as unread" toggle (Facebook-style), as opposed to the previous auto-read-on-view behavior.
Handler: mark_unread()
No parameters declared in the route registration.
curl
curl-X POST -u"user:application-password""https://example.com/wp-json/davo/v1/notifications/unread"
Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.