Skip to main content

Overview

The app.bsky.notification namespace provides lexicons for managing notifications about social interactions and activity.

Key Concepts

  • Notifications: Events about interactions with your content (likes, replies, follows, etc.)
  • Notification Reasons: Different types of notification events
  • Read State: Whether notifications have been seen
  • Preferences: Settings for which notifications to receive
  • Activity Subscriptions: Subscribe to posts from specific users

Queries

listNotifications

List notifications for the authenticated user. Endpoint: app.bsky.notification.listNotifications Authentication: Required
array
Filter by specific notification reasons
integer
Max notifications (1-100, default 50)
boolean
Whether to show priority notifications
string
Pagination cursor
string
ISO 8601 timestamp of when notifications were last seen
Response:
string
Next page cursor
array
required
Array of notification objects
boolean
Whether these are priority notifications
string
When notifications were last seen
Example:

getUnreadCount

Get count of unread notifications. Endpoint: app.bsky.notification.getUnreadCount Authentication: Required
boolean
Only count priority notifications
string
ISO 8601 timestamp to check unread count since
Response:
integer
required
Number of unread notifications
Example:

Procedures

updateSeen

Update the seen timestamp for notifications. Endpoint: app.bsky.notification.updateSeen Authentication: Required
string
required
ISO 8601 timestamp
Example:

registerPush

Register a device for push notifications. Endpoint: app.bsky.notification.registerPush Authentication: Required
string
required
DID of the push notification service
string
required
Push notification token
string
required
Platform: ios, android, or web
string
required
Application identifier
Example:

unregisterPush

Unregister a device from push notifications. Endpoint: app.bsky.notification.unregisterPush Authentication: Required
string
required
DID of the push notification service
string
required
Push notification token to unregister

Preferences

getPreferences

Get notification preferences. Endpoint: app.bsky.notification.getPreferences Authentication: Required Response: Notification preferences object Example:

putPreferences

Update notification preferences. Endpoint: app.bsky.notification.putPreferences Authentication: Required
object
required
Notification preferences object
Example:

Activity Subscriptions

putActivitySubscription

Subscribe to activity from a user (get notified of their posts). Endpoint: app.bsky.notification.putActivitySubscription Authentication: Required
string
required
DID of the user to subscribe to
object
required
Subscription settings (post, reply)
Example:

listActivitySubscriptions

List activity subscriptions. Endpoint: app.bsky.notification.listActivitySubscriptions Authentication: Required
integer
Max subscriptions (1-100, default 50)
string
Pagination cursor
Response: Array of activity subscription objects

Notification Types

notification

Notification object structure.
string
required
AT-URI of the notification record
string
required
CID of the notification record
object
required
Profile of the actor who triggered the notification
string
required
Notification reason (see below)
string
AT-URI of the subject (e.g., the post that was liked)
object
required
The notification record data
boolean
required
Whether notification has been read
string
required
When notification was created
array
Content labels

Notification Reasons

Possible values for the reason field:
  • like: Someone liked your post
  • repost: Someone reposted your post
  • follow: Someone followed you
  • mention: Someone mentioned you in a post
  • reply: Someone replied to your post
  • quote: Someone quoted your post
  • starterpack-joined: Someone joined via your starter pack
  • verified: You received verification
  • unverified: Verification was removed
  • like-via-repost: Someone liked a post via your repost
  • repost-via-repost: Someone reposted a post via your repost
  • subscribed-post: New post from someone you’re subscribed to
  • contact-match: Contact match found

Type Definitions

preferences

Notification preferences for all notification types.
object
required
Chat notification settings
object
required
Follow notification settings
object
required
Like notification settings
object
required
Like-via-repost notification settings
object
required
Mention notification settings
object
required
Quote notification settings
object
required
Reply notification settings
object
required
Repost notification settings
object
required
Repost-via-repost notification settings
object
required
Starter pack join notification settings
object
required
Subscribed post notification settings
object
required
Unverified notification settings
object
required
Verified notification settings

filterablePreference

Settings for filterable notification types.
string
required
Who to include: all or follows
boolean
required
Show in notification list
boolean
required
Send push notification

activitySubscription

Activity subscription settings.
boolean
required
Notify for new posts
boolean
required
Notify for new replies

Common Use Cases

Display Notification Feed

Notification Badge

Subscribe to User Updates

Configure Notification Preferences

Resources