Emma Slack App
Share
Explore

icon picker
Functions

Post a message with input blocks

curl -X POST "https://slack.com/api/chat.postMessage" \
-H "Content-type: application/json" \
-H "Authorization: Bearer XXXXXXX" \
-d '{
"channel": "C057DL1P878",
"text": "Hello world :tada:",
"thread_ts": "1700807760.078439,


"blocks": [
{
"type": "section",
"fields": [
{curl - X POST "https://slack.com/api/chat.postMessage"\ -
H "Content-type: application/json"\ -
H "Authorization: Bearer XXXXXXX"\ -
d '{
"channel": "C057DL1P878",
"text": "Hello world :tada:",
"thread_ts": "1700807760.078439,


"blocks": [{
"type": "section",
"fields": [{
"type": "plain_text",
"text": "No assistant has been installed on this channel.",
"emoji": true
}]
},
{
"type": "input",
"element": {
"type": "static_select",
"placeholder": {
"type": "plain_text",
"text": "Select an assistant",
"emoji": true
},
"options": [{
"text": {
"type": "plain_text",
"text": "*this is plain_text text*",
"emoji": true
},
"value": "value-0"
},
{
"text": {
"type": "plain_text",
"text": "*this is plain_text text*",
"emoji": true
},
"value": "value-1"
},
{
"text": {
"type": "plain_text",
"text": "*this is plain_text text*",
"emoji": true
},
"value": "value-2"
}
],
"action_id": "static_select-action"
},
"label": {
"type": "plain_text",
"text": "Assistants",
"emoji": true
}
},
{
"type": "actions",
"elements": [{
"type": "button",
"text": {
"type": "plain_text",
"text": "Install",
"emoji": true
},
"value": "click_me_123",
"action_id": "actionId-0"
}]
}
]


}
' | jq .
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.