Skip to main content

Notifications

User notifications inbox.

Access it as client.notifications on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.

Quick start

from strongly import Strongly

client = Strongly()

# List (auto-paginates as you iterate) # filters: unread_only
for notification in client.notifications.list():
print(notification.id)

Methods

Core

list

list(*, unread_only: Optional[bool] = None, limit: Optional[int] = None) -> Dict[str, Any]

List the caller's notifications.

Args: unread_only: When True, return only unread notifications. limit: Max notifications to return.

Other

mark_all_read

mark_all_read() -> Dict[str, Any]

Mark all of the caller's notifications as read.

mark_read

mark_read(notification_id: str) -> Dict[str, Any]

Mark a single notification as read.

unread_count

unread_count() -> Dict[str, Any]

Get the count of unread notifications for the caller.