# chat.bsky.moderation.subscribeModEvents

> Published by [bsky-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:4v4y5r3lwsbtmsxhile2ljac)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.moderation.subscribeModEvents)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.moderation.subscribeModEvents/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.moderation.subscribeModEvents/examples)

## Definitions

### `chat.bsky.moderation.subscribeModEvents`

**Type**: `subscription`

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

```json
{
  "type": "subscription",
  "errors": [
    {
      "name": "FutureCursor"
    },
    {
      "name": "ConsumerTooSlow",
      "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection."
    }
  ],
  "message": {
    "schema": {
      "refs": [
        "#eventConvoFirstMessage"
      ],
      "type": "union"
    }
  },
  "parameters": {
    "type": "params",
    "properties": {
      "cursor": {
        "type": "string",
        "description": "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."
      }
    }
  },
  "description": "Subscribe to stream of chat events targeted to moderation. Private endpoint."
}
```

### `chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `rev` | `string` | Yes |  |
| `user` | `string` (did) | Yes | The DID of the message author. |
| `convoId` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `messageId` | `string` | No |  |
| `recipients` | `array` | Yes | The list of DIDs message recipients. Does not include the sender, which is in the `user` field |

## Raw Schema

```json
{
  "id": "chat.bsky.moderation.subscribeModEvents",
  "defs": {
    "main": {
      "type": "subscription",
      "errors": [
        {
          "name": "FutureCursor"
        },
        {
          "name": "ConsumerTooSlow",
          "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection."
        }
      ],
      "message": {
        "schema": {
          "refs": [
            "#eventConvoFirstMessage"
          ],
          "type": "union"
        }
      },
      "parameters": {
        "type": "params",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "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."
          }
        }
      },
      "description": "Subscribe to stream of chat events targeted to moderation. Private endpoint."
    },
    "eventConvoFirstMessage": {
      "type": "object",
      "required": [
        "createdAt",
        "rev",
        "convoId",
        "user",
        "recipients"
      ],
      "properties": {
        "rev": {
          "type": "string"
        },
        "user": {
          "type": "string",
          "format": "did",
          "description": "The DID of the message author."
        },
        "convoId": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "messageId": {
          "type": "string"
        },
        "recipients": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "did"
          },
          "description": "The list of DIDs message recipients. Does not include the sender, which is in the `user` field"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
