Get Notification Preferences
Push Notification Endpoints
Get Notification Preferences
Read the authenticated user’s disabled push notification types
GET
Get Notification Preferences
Returns the set of notification event types the acting user has disabled for push. A user with no preference row is all-on — the response is an empty
Returned when a service/master key omits the required
Returned when the
disabledTypes array.
Disabling a type only suppresses push; the in-app notification is still written.
Requires authentication. Acting-user-scoped: an end-user token (Authorization: Bearer <accessToken>) reads its own preferences. A service/master key acts on behalf of a named user via the optional userId query param — a service key without userId is rejected, and an end-user token may not name a different user. Requires the push bundle.
Query Parameters
The acting user whose preferences are read. Service/master keys only — a service key must pass it; an end-user token infers it from the auth token and may not name a different user.
Response
Returns200.
The event types the user has opted out of. Empty when no preferences are set (all-on). Values are drawn from the event palette.
Error Responses
Missing User ID — 400
Missing User ID — 400
userId (it has no implicit session user).Bundle Not Installed — 403
Bundle Not Installed — 403
push bundle is not installed for this project.
