Skip to content

NotificationPreferencesService

Chatto exposes this service below /api/connect.

Shared message and enum definitions are documented in Shared Types And Enums.

Reads and updates per-room notification preferences for the current user.

Returns the current user’s explicit and effective server notification level.

POST /api/connect/chatto.api.v1.NotificationPreferencesService/GetServerNotificationPreference

Input: GetServerNotificationPreferenceRequest

Section titled “Input: GetServerNotificationPreferenceRequest”

Request for the current user’s server-level notification preference.

Current notification preference.

FieldTypeDescription
preferenceNotificationPreferenceCurrent stored and effective notification preference.

Updates the current user’s explicit server notification level and returns the resulting stored and effective levels.

POST /api/connect/chatto.api.v1.NotificationPreferencesService/UpdateServerNotificationPreference

Input: UpdateServerNotificationPreferenceRequest

Section titled “Input: UpdateServerNotificationPreferenceRequest”

Request to update the current user’s server-level notification level.

FieldTypeDescription
levelNotificationLevelRequired. New explicit notification level. Use NOTIFICATION_LEVEL_DEFAULT to return the server to default behavior.

Result: UpdateNotificationPreferenceResponse

Section titled “Result: UpdateNotificationPreferenceResponse”

Updated notification preference.

FieldTypeDescription
preferenceNotificationPreferenceStored and effective notification preference after the update.

Returns the current user’s explicit and effective notification level for a room. Use this before rendering room notification controls so the UI can distinguish inherited defaults from an explicit room override. Returns NOT_FOUND when the room does not exist and PERMISSION_DENIED when the room exists but is inaccessible to the caller.

POST /api/connect/chatto.api.v1.NotificationPreferencesService/GetRoomNotificationPreference

Input: GetRoomNotificationPreferenceRequest

Section titled “Input: GetRoomNotificationPreferenceRequest”

Request for the current user’s notification preference in one room.

FieldTypeDescription
room_idstringRequired. Room whose notification preference should be loaded for the current user.

Uses the same result shape documented above.

Updates the current user’s explicit notification level for a room and returns the resulting stored and effective levels.

POST /api/connect/chatto.api.v1.NotificationPreferencesService/UpdateRoomNotificationPreference

Input: UpdateRoomNotificationPreferenceRequest

Section titled “Input: UpdateRoomNotificationPreferenceRequest”

Request to update the current user’s notification level in one room.

FieldTypeDescription
room_idstringRequired. Room whose notification level should be changed for the current user.
levelNotificationLevelRequired. New explicit notification level. Use NOTIFICATION_LEVEL_DEFAULT to return the room to inherited/default behavior.

Uses the same result shape documented above.