Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
slack message types
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<http://www.foo.com|This message *is* a link>"
}
}
]
}
{
"attachments": [
{
"color": "#f2c744",
"blocks": [
{
"type": "section",
"text": {
"text": "Invoice submitted",
"type": "mrkdwn"
},
"fields": [
{
"type": "mrkdwn",
"text": "*Amount*"
},
{
"type": "mrkdwn",
"text": "*To*"
},
{
"type": "plain_text",
"text": "£450.00"
},
{
"type": "plain_text",
"text": "GoogleAds"
}
]
}
]
}
]
}
{
"attachments": [
{
"blocks": [
{
"type": "section",
"text": {
"text": "Invoice submitted\n<google.com|Company No1 - Invoice 1>",
"type": "mrkdwn"
},
"fields": [
{
"type": "mrkdwn",
"text": "*Amount*"
},
{
"type": "mrkdwn",
"text": "*To*"
},
{
"type": "plain_text",
"text": "£450.00"
},
{
"type": "plain_text",
"text": "GoogleAds"
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"emoji": true,
"text": "Approve"
},
"style": "primary",
"value": "click_me_123"
},
{
"type": "button",
"text": {
"type": "plain_text",
"emoji": true,
"text": "Deny"
},
"style": "danger",
"value": "click_me_123"
}
]
}
]
}
]
}
{
"attachments": [
{
"blocks": [
{
"type": "section",
"text": {
"text": "Invoice submitted\n<google.com|Company No1 - Invoice 1>",
"type": "mrkdwn"
},
"fields": [
{
"type": "mrkdwn",
"text": "*Amount*"
},
{
"type": "mrkdwn",
"text": "*To*"
},
{
"type": "plain_text",
"text": "£450.00"
},
{
"type": "plain_text",
"text": "GoogleAds"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment