# Events

> Every event an app can ask for, when Slaiky sends it, and the scope it needs.

Source: https://slaiky.xyz/docs/reference/events

Ask for events in the app’s settings or its manifest (`settings.event_subscriptions.bot_events`). An event goes out only when the app holds its scope. Over HTTP each one is a signed POST ([events guide](/docs/events)); over Socket Mode an `events_api` envelope ([guide](/docs/socket-mode)). Both carry the same body.

| Event | Sent when | Needs |
| --- | --- | --- |
| `message.channels` | A message in a public channel the bot is in (not its own, not system lines). Edits and deletions too. | `channels:history` |
| `message.groups` | The same, in a private channel the bot is in. | `groups:history` |
| `message.im` | The same, in a direct message with the bot. | `im:history` |
| `message.mpim` | The same, in a group DM the bot is in. | `mpim:history` |
| `app_mention` | Someone mentions the bot where it is a member. | `app_mentions:read` |
| `reaction_added` | A reaction is added to a message where the bot is. | `reactions:read` |
| `reaction_removed` | A reaction is removed, where the bot is. | `reactions:read` |
| `member_joined_channel` | Someone (the bot too) joins a channel the bot is in. | the conversation’s `:read` (`channels:read`, `groups:read`…) |
| `member_left_channel` | Someone (the bot too) leaves a channel the bot is in. | the conversation’s `:read` (`channels:read`, `groups:read`…) |
| `channel_created` | A public channel is made. | `channels:read` |
| `channel_rename` | A channel is renamed: public ones to every app that may list channels, private ones to apps in them. | the conversation’s `:read` (`channels:read`, `groups:read`…) |
| `channel_archive` | A channel is archived (same audience as renames). | the conversation’s `:read` (`channels:read`, `groups:read`…) |
| `channel_unarchive` | A channel is brought back (same audience as renames). | the conversation’s `:read` (`channels:read`, `groups:read`…) |
| `pin_added` | A message is pinned where the bot is. | `pins:read` |
| `pin_removed` | A message is unpinned where the bot is. | `pins:read` |
| `call_started` | A call starts in a conversation the bot is in: who started it and when. Never what is said. | `calls:read` |
| `call_ended` | A call ends in a conversation the bot is in: when, and who was in it for how long. | `calls:read` |
| `app_home_opened` | Someone opens the app’s Home tab. | none |
| `app_uninstalled` | An install of the app is removed from a workspace. Always sent, subscribed or not. | none |

## The wrapper

Every event comes in the same wrapper. `channelType` is `channel` (public), `group` (private), `im` or `mpim`.

*Slaiky → your app · `event_callback`*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0006-5a1e-4c2b-9d6f-1a2b3c4d5e05",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "type": "app_mention",
    "message": {
      "id": "7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06",
      "body": "@docsrecorder is the deploy green?",
      "meta": null,
      "files": [],
      "author": {
        "id": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
        "look": null,
        "name": "Alex Martins",
        "role": "owner",
        "appId": null,
        "isBot": false,
        "title": "Founder · Product",
        "handle": "alex",
        "status": null,
        "agentId": null,
        "timezone": "America/Sao_Paulo",
        "avatarUrl": null,
        "deactivated": false
      },
      "blocks": null,
      "pinned": false,
      "subtype": null,
      "editedAt": null,
      "parentId": null,
      "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
      "createdAt": "2026-11-10T12:00:00.000Z",
      "reactions": [],
      "replyCount": 0,
      "replyUsers": [],
      "lastReplyAt": null,
      "alsoInChannel": false
    },
    "threadId": null,
    "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
    "channelType": "channel"
  }
}

```

## Examples (recorded on a real server)

### `message`

*Slaiky → your app*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0010-5a1e-4c2b-9d6f-1a2b3c4d5e09",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "type": "message",
    "message": {
      "id": "7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06",
      "body": "@docsrecorder is the deploy green?",
      "meta": null,
      "files": [],
      "author": {
        "id": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
        "look": null,
        "name": "Alex Martins",
        "role": "owner",
        "appId": null,
        "isBot": false,
        "title": "Founder · Product",
        "handle": "alex",
        "status": null,
        "agentId": null,
        "timezone": "America/Sao_Paulo",
        "avatarUrl": null,
        "deactivated": false
      },
      "blocks": null,
      "pinned": false,
      "subtype": null,
      "editedAt": null,
      "parentId": null,
      "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
      "createdAt": "2026-11-10T12:00:00.000Z",
      "reactions": [],
      "replyCount": 0,
      "replyUsers": [],
      "lastReplyAt": null,
      "alsoInChannel": false
    },
    "threadId": null,
    "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
    "channelType": "channel"
  }
}

```

### `message_changed`

*Slaiky → your app*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0011-5a1e-4c2b-9d6f-1a2b3c4d5e0a",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "type": "message",
    "message": {
      "id": "7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06",
      "body": "@docsrecorder is the deploy green now?",
      "meta": null,
      "files": [],
      "author": {
        "id": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
        "look": null,
        "name": "Alex Martins",
        "role": "owner",
        "appId": null,
        "isBot": false,
        "title": "Founder · Product",
        "handle": "alex",
        "status": null,
        "agentId": null,
        "timezone": "America/Sao_Paulo",
        "avatarUrl": null,
        "deactivated": false
      },
      "blocks": null,
      "pinned": false,
      "subtype": null,
      "editedAt": "2026-11-10T12:00:01.000Z",
      "parentId": null,
      "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
      "createdAt": "2026-11-10T12:00:00.000Z",
      "reactions": [],
      "replyCount": 1,
      "replyUsers": [
        {
          "id": "7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03",
          "look": null,
          "name": "Docs Recorder",
          "role": "member",
          "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
          "isBot": true,
          "title": "Records what Slaiky sends, for the developer docs",
          "handle": "docsrecorder",
          "status": null,
          "agentId": null,
          "timezone": null,
          "avatarUrl": null,
          "deactivated": false
        }
      ],
      "lastReplyAt": "2026-11-10T12:00:02.000Z",
      "alsoInChannel": false
    },
    "subtype": "message_changed",
    "previous": {
      "body": "@docsrecorder is the deploy green?"
    },
    "threadId": null,
    "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
    "channelType": "channel"
  }
}

```

### `message_deleted`

*Slaiky → your app*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0013-5a1e-4c2b-9d6f-1a2b3c4d5e0c",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "type": "message",
    "subtype": "message_deleted",
    "threadId": null,
    "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
    "messageId": "7f3c0014-5a1e-4c2b-9d6f-1a2b3c4d5e0d",
    "channelType": "channel"
  }
}

```

### `reaction_added`

*Slaiky → your app*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0012-5a1e-4c2b-9d6f-1a2b3c4d5e0b",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "item": {
      "type": "message",
      "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
      "messageId": "7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06"
    },
    "type": "reaction_added",
    "userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
    "reaction": "👍",
    "itemUserId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07"
  }
}

```

### `member_joined_channel`

*Slaiky → your app*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0001-5a1e-4c2b-9d6f-1a2b3c4d5e00",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "type": "member_joined_channel",
    "userId": "7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03",
    "channelId": "7f3c0005-5a1e-4c2b-9d6f-1a2b3c4d5e04",
    "inviterId": null,
    "channelType": "channel"
  }
}

```

### `app_home_opened`

*Slaiky → your app*

```json

{
  "type": "event_callback",
  "eventId": "7f3c0015-5a1e-4c2b-9d6f-1a2b3c4d5e0e",
  "eventTime": 1794312000,
  "appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
  "workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
  "event": {
    "tab": "home",
    "type": "app_home_opened",
    "userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
    "channelId": "7f3c0016-5a1e-4c2b-9d6f-1a2b3c4d5e0f"
  }
}

```
