chat.bsky.moderation.subscribeModEvents

Subscribe to stream of chat events targeted to moderation. Private endpoint.

Details · subscription
Kindsubscription
Authoritymoderation.bsky.chat
Indexed

Subscription

subscription · WebSocket

Parameters

query string

cursor

string

The last known event seq number to backfill from. Use '2222222222222' to backfill from the beginning. Don't specify a cursor to listen only for new events.

Messages

DAG-CBOR frames

Fired when the first message was sent on a convo.

Fire when a group chat is created.

Fired when a member is added to a group chat. Note that members are added in the 'request' state.

Fired when a member joins a group chat via an join link that does not require approval.

Fired when a user requests to join a group chat via an join link that requires approval.

Fired when a join request is approved by the group owner.

Fired when a join request is rejected by the group owner.

Fired when a user accepts a chat convo, either explicitly or by sending a message.

Fired when a member leaves or is removed from a group chat.

Fired when a group chat's metadata or status changes.

Fired when a user exceeds a rate limit.

Errors

FutureCursor

No description in schema.

ConsumerTooSlow

If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection.

#eventChatAccepted

object

Fired when a user accepts a chat convo, either explicitly or by sending a message.

Properties

actorDid

requiredstring · did

The DID of the person accepting the convo.

convoCreatedAt

requiredstring · datetime

When the convo was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

Current member count at the time of the event. Only present for group convos.

groupName

string

The name of the group chat. Only present for group convos.

method

requiredstring

How the convo was accepted.

  • knownValues: explicit | message

ownerDid

string · did

The DID of the group chat owner. Only present for group convos.

rev

requiredstring

#eventConvoFirstMessage

object

Fired when the first message was sent on a convo.

Properties

convoId

requiredstring

createdAt

requiredstring · datetime

messageId

string

recipients

requiredarray

The list of DIDs message recipients. Does not include the sender, which is in the `user` field

itemsstring · did

rev

requiredstring

user

requiredstring · did

The DID of the message author.

#eventGroupChatCreated

object

Fire when a group chat is created.

Properties

actorDid

requiredstring · did

The DID of the actor performing the action. For this event, same as ownerDid.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

The name set at creation time.

initialMemberDids

requiredarray

DIDs of everyone added at creation time.

itemsstring · did

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

#eventGroupChatJoinRequest

object

Fired when a user requests to join a group chat via an join link that requires approval.

Properties

actorDid

requiredstring · did

The DID of the person requesting to join.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

joinLinkCode

requiredstring

The code of the join link used to request joining.

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

subjectFollowsOwner

requiredboolean

Whether the requesting member follows the group owner.

#eventGroupChatJoinRequestApproved

object

Fired when a join request is approved by the group owner.

Properties

actorDid

requiredstring · did

The DID of the owner approving the request.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

subjectDid

requiredstring · did

The DID of the member whose request was approved.

#eventGroupChatJoinRequestRejected

object

Fired when a join request is rejected by the group owner.

Properties

actorDid

requiredstring · did

The DID of the owner rejecting the request.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

subjectDid

requiredstring · did

The DID of the member whose request was rejected.

#eventGroupChatMemberAdded

object

Fired when a member is added to a group chat. Note that members are added in the 'request' state.

Properties

actorDid

requiredstring · did

The DID of the actor performing the action. For this event, same as ownerDid.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

ownerDid

requiredstring · did

The DID of the group chat owner.

requestMembersCount

requiredinteger

The number of members who have not yet accepted the convo.

rev

requiredstring

subjectDid

requiredstring · did

The DID of the member who was added.

subjectFollowsOwner

requiredboolean

Whether the added member follows the group owner.

#eventGroupChatMemberJoined

object

Fired when a member joins a group chat via an join link that does not require approval.

Properties

actorDid

requiredstring · did

The DID of the person joining.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

joinLinkCode

requiredstring

The code of the join link used to join.

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

subjectFollowsOwner

requiredboolean

Whether the joining member follows the group owner.

#eventGroupChatMemberLeft

object

Fired when a member leaves or is removed from a group chat.

Properties

actorDid

requiredstring · did

The DID of the actor. For voluntary: the person leaving. For kicked: the owner.

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

leaveMethod

requiredstring

How the member left.

  • knownValues: voluntary | kicked

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

subjectDid

requiredstring · did

The DID of the member who left or was removed.

#eventGroupChatUpdated

object

Fired when a group chat's metadata or status changes.

Properties

actorDid

requiredstring · did

The DID of the actor performing the action (the owner).

convoCreatedAt

requiredstring · datetime

When the group was originally created.

convoId

requiredstring

createdAt

requiredstring · datetime

groupMemberCount

requiredinteger

Current member count at the time of the event.

groupName

requiredstring

Current group name.

The code of the join link. Only present when updateType is join-link-related.

Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related.

Whether the join link requires owner approval to join. Only present when updateType is join-link-related.

Why the group was locked. Only present when updateType is 'locked'.

  • knownValues: owner_action | owner_left | owner_deactivated | owner_deleted | owner_suspended | owner_taken_down | label_applied | convo_taken_down

newName

string

The new group name. Only present when updateType is 'name_changed'.

oldName

string

The previous group name. Only present when updateType is 'name_changed'.

ownerDid

requiredstring · did

The DID of the group chat owner.

rev

requiredstring

updateType

requiredstring

What changed.

  • knownValues: name_changed | locked | locked_permanently | unlocked | join_link_created | join_link_disabled | join_link_settings_changed

#eventRateLimitExceeded

object

Fired when a user exceeds a rate limit.

Properties

actorDid

requiredstring · did

The DID of the user who hit the rate limit.

createdAt

requiredstring · datetime

endpoint

requiredstring

The NSID of the endpoint that was rate limited.

rev

requiredstring

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group.

  • A view of a conversation for moderation purposes. Unlike chat.bsky.convo.defs#convoView, it does not include viewer-specific data (such as muted, unreadCount, status, lastMessage, lastReaction), since the requester is a moderator and not a member of the conversation. The member list is not included; use chat.bsky.moderation.getConvoMembers to list members.

  • social.colibri.sync.subscribeEvents

    subscription not from the namespace authority

    Opens a WebSocket stream that transmits relevant events for the authenticated user.