Slaikydocs

    Slaiky says#events

    Events

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

    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); over Socket Mode an events_api envelope (guide). Both carry the same body.

    EventSent whenNeeds
    message.channelsA message in a public channel the bot is in (not its own, not system lines). Edits and deletions too.channels:history
    message.groupsThe same, in a private channel the bot is in.groups:history
    message.imThe same, in a direct message with the bot.im:history
    message.mpimThe same, in a group DM the bot is in.mpim:history
    app_mentionSomeone mentions the bot where it is a member.app_mentions:read
    reaction_addedA reaction is added to a message where the bot is.reactions:read
    reaction_removedA reaction is removed, where the bot is.reactions:read
    member_joined_channelSomeone (the bot too) joins a channel the bot is in.the conversation’s :read (channels:read, groups:read…)
    member_left_channelSomeone (the bot too) leaves a channel the bot is in.the conversation’s :read (channels:read, groups:read…)
    channel_createdA public channel is made.channels:read
    channel_renameA 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_archiveA channel is archived (same audience as renames).the conversation’s :read (channels:read, groups:read…)
    channel_unarchiveA channel is brought back (same audience as renames).the conversation’s :read (channels:read, groups:read…)
    pin_addedA message is pinned where the bot is.pins:read
    pin_removedA message is unpinned where the bot is.pins:read
    call_startedA call starts in a conversation the bot is in: who started it and when. Never what is said.calls:read
    call_endedA call ends in a conversation the bot is in: when, and who was in it for how long.calls:read
    app_home_openedSomeone opens the app’s Home tab.none
    app_uninstalledAn 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 appevent_callback
    
    {
      "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
    
    {
      "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
    
    {
      "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
    
    {
      "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
    
    {
      "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
    
    {
      "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
    
    {
      "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"
      }
    }
    

    Updated . Every method, scope, event and limit here is generated from the server’s own code.