Skip to content

NotificationService

Chatto exposes this service below /api/connect.

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

Reads and dismisses pending notifications for the authenticated viewer.

Lists the authenticated viewer’s pending notifications.

POST /api/connect/chatto.api.v1.NotificationService/ListNotifications

Request for the authenticated viewer’s pending notifications.

FieldTypeDescription
pagePageRequestPage request. Defaults to 50 results when absent or limit is zero.

Pending notification page.

FieldTypeDescription
notificationsrepeated NotificationItemPage notifications, newest first.
pagePageInfoPage metadata.

Gets one pending notification. Returns NOT_FOUND when the notification is unknown or has been dismissed.

POST /api/connect/chatto.api.v1.NotificationService/GetNotification

Request one pending notification for the authenticated viewer.

FieldTypeDescription
notification_idstringRequired notification ID.

Pending notification response.

FieldTypeDescription
notificationNotificationItemRequested notification.

Gets pending notifications by ID.

POST /api/connect/chatto.api.v1.NotificationService/BatchGetNotifications

Request pending notifications for a set of stable notification IDs.

FieldTypeDescription
notification_idsrepeated stringRequired notification IDs. Unknown or dismissed IDs are omitted from the response.

Batch pending notification response.

FieldTypeDescription
notificationsrepeated NotificationItemFound notifications. The server preserves first-seen request order and de-duplicates repeated IDs.

Lists pending notifications for one room. Non-members receive an empty page.

POST /api/connect/chatto.api.v1.NotificationService/ListRoomNotifications

Request for pending notifications scoped to one room.

FieldTypeDescription
room_idstringRequired. Room whose notifications should be listed.
pagePageRequestPage request. Defaults to 50 results when absent or limit is zero.

Pending notification page scoped to one room.

FieldTypeDescription
notificationsrepeated NotificationItemPage notifications, newest first.
pagePageInfoPage metadata.

Lists pending notification counts grouped by room as a finite snapshot.

POST /api/connect/chatto.api.v1.NotificationService/ListRoomNotificationCounts

Request for pending notification counts grouped by room.

Result: ListRoomNotificationCountsResponse

Section titled “Result: ListRoomNotificationCountsResponse”

Finite snapshot of pending notification counts grouped by room.

FieldTypeDescription
room_countsrepeated RoomNotificationCountCounts for rooms with at least one pending notification.

Checks whether the authenticated viewer has any pending notifications.

POST /api/connect/chatto.api.v1.NotificationService/HasNotifications

Request for a lightweight pending notification check.

Lightweight pending notification check.

FieldTypeDescription
has_notificationsboolTrue when the authenticated viewer has at least one pending notification.

Dismisses one pending notification. Already-dismissed notifications are treated as idempotent success.

POST /api/connect/chatto.api.v1.NotificationService/DismissNotification

Request to dismiss one pending notification.

FieldTypeDescription
notification_idstringRequired. Notification to dismiss.

Result of dismissing one pending notification.

FieldTypeDescription
dismissedboolTrue when the notification is no longer pending.

Dismisses all pending notifications.

POST /api/connect/chatto.api.v1.NotificationService/DismissAllNotifications

Request to dismiss all pending notifications.

Result of dismissing all pending notifications.

FieldTypeDescription
dismissed_countint32Number of notifications dismissed.