Skip to content

ViewerService

Chatto exposes this service below /api/connect.

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

Provides authenticated user profile, preferences, and capability state.

Returns the current authenticated viewer. This RPC requires a logged-in user; unauthenticated callers receive an UNAUTHENTICATED error.

POST /api/connect/chatto.api.v1.ViewerService/GetViewer

Request for the authenticated viewer snapshot.

Authenticated viewer snapshot needed by application shells.

FieldTypeDescription
userViewerUserCurrent authenticated user.
capabilitiesViewerCapabilitiesPermission-derived capabilities.
server_notification_preferenceNotificationPreferenceServer-wide notification preference.
room_notification_preferencesrepeated RoomNotificationPreferenceNotification preferences for rooms the user participates in.
viewer_permissionsServerViewerPermissionsEffective server/channel permission decisions for the authenticated user.
viewer_stateServerViewerStateNon-permission server state for the authenticated user.