Slaiky says#payloads
Interaction payloads
What Slaiky sends when someone runs a command, clicks, picks, uses a shortcut or submits a modal.
Commands and interactions come with who and where (userId, user, channelId), a responseUrl to answer later and, when a modal can open, a triggerId valid for 30 seconds (guide). Over HTTP they are signed POSTs to the command’s URL or the interactivity URL; over Socket Mode, envelopes.
A slash command (slash_command)
Someone runs one of the app’s commands. Over HTTP it goes to the command’s URL; over Socket Mode it is a slash_commands envelope.
{
"text": "shipped the export",
"type": "command",
"user": {
"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
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
"command": "/docsdemo",
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"triggerId": "1731240000.trigger.docs",
"responseUrl": "https://app.slaiky.xyz/api/apps/respond/docs-response-token",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"responseToken": "docs-response-token"
}
A click or a pick (block_actions)
Someone presses a button or picks an option in a message, a modal or the Home tab.
{
"type": "block_actions",
"user": {
"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
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"value": "v42",
"userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
"actions": [
{
"type": "button",
"value": "v42",
"actionId": "ship"
}
],
"message": {
"id": "7f3c0018-5a1e-4c2b-9d6f-1a2b3c4d5e11",
"body": "Ship it?",
"meta": null,
"files": [],
"author": {
"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
},
"blocks": [
{
"text": "Ship it?",
"type": "section"
},
{
"type": "actions",
"elements": [
{
"text": "Ship",
"type": "button",
"style": "primary",
"value": "v42",
"actionId": "ship"
}
]
}
],
"pinned": false,
"subtype": null,
"editedAt": null,
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"createdAt": "2026-11-10T12:00:03.000Z",
"reactions": [],
"replyCount": 0,
"replyUsers": [],
"lastReplyAt": null,
"alsoInChannel": false
},
"actionId": "ship",
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"messageId": "7f3c0018-5a1e-4c2b-9d6f-1a2b3c4d5e11",
"triggerId": "1731240000.trigger.docs",
"responseUrl": "https://app.slaiky.xyz/api/apps/respond/docs-response-token",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"responseToken": "docs-response-token"
}
A global shortcut (shortcut)
Someone picks the app’s shortcut in the composer’s menu.
{
"type": "shortcut",
"user": {
"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
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"triggerId": "1731240000.trigger.docs",
"callbackId": "docs_global",
"responseUrl": "https://app.slaiky.xyz/api/apps/respond/docs-response-token",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"responseToken": "docs-response-token"
}
A message shortcut (message_action)
Someone picks the app’s shortcut in a message’s menu. Carries the message.
{
"type": "message_action",
"user": {
"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
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
"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": [
{
"count": 1,
"emoji": "👍",
"userIds": [
"7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07"
]
},
{
"count": 1,
"emoji": "👀",
"userIds": [
"7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03"
]
}
],
"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
},
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"messageId": "7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06",
"triggerId": "1731240000.trigger.docs",
"callbackId": "docs_message",
"responseUrl": "https://app.slaiky.xyz/api/apps/respond/docs-response-token",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"responseToken": "docs-response-token"
}
A modal submitted (view_submission)
Someone presses the modal’s submit button. view.state.values holds every input by blockId and actionId.
{
"type": "view_submission",
"user": {
"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
},
"view": {
"id": "7f3c0017-5a1e-4c2b-9d6f-1a2b3c4d5e10",
"hash": "1731240000.docs",
"type": "modal",
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"close": "Not now",
"state": {
"values": {
"done": {
"v": {
"type": "plain_text_input",
"value": "Shipped the export to CSV"
}
},
"mood": {
"v": {
"type": "static_select",
"selectedOption": {
"text": "Smooth",
"value": "smooth"
}
}
}
}
},
"title": "Daily update",
"blocks": [
{
"type": "input",
"label": "What did you finish?",
"blockId": "done",
"element": {
"type": "plain_text_input",
"actionId": "v",
"multiline": true
}
},
{
"type": "input",
"label": "How is it going?",
"blockId": "mood",
"element": {
"type": "static_select",
"options": [
{
"text": "Smooth",
"value": "smooth"
},
{
"text": "Blocked",
"value": "blocked"
}
],
"actionId": "v"
},
"optional": true
}
],
"submit": "Post",
"botUserId": "7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03",
"callbackId": "daily",
"previousId": null,
"privateMetadata": null
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"triggerId": "1731240000.trigger.docs",
"responseUrl": "https://app.slaiky.xyz/api/apps/respond/docs-response-token",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"responseToken": "docs-response-token"
}
A modal closed (view_closed)
Someone closes a modal that asked for it (notifyOnClose).
{
"type": "view_closed",
"user": {
"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
},
"view": {
"id": "7f3c0019-5a1e-4c2b-9d6f-1a2b3c4d5e12",
"hash": "1731240000.docs",
"type": "modal",
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"close": "Not now",
"title": "Daily update",
"blocks": [
{
"type": "input",
"label": "What did you finish?",
"blockId": "done",
"element": {
"type": "plain_text_input",
"actionId": "v",
"multiline": true
}
},
{
"type": "input",
"label": "How is it going?",
"blockId": "mood",
"element": {
"type": "static_select",
"options": [
{
"text": "Smooth",
"value": "smooth"
},
{
"text": "Blocked",
"value": "blocked"
}
],
"actionId": "v"
},
"optional": true
}
],
"submit": "Post",
"botUserId": "7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03",
"callbackId": "closing",
"previousId": null,
"privateMetadata": null
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"userId": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
"parentId": null,
"channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
"isCleared": false,
"triggerId": "1731240000.trigger.docs",
"responseUrl": "https://app.slaiky.xyz/api/apps/respond/docs-response-token",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"responseToken": "docs-response-token"
}
Updated . Every method, scope, event and limit here is generated from the server’s own code.