contents
1{
2 "type": "message",
3 "text": "Hello world!",
4 "user": "U1234567890",
5 "channel": "C1234567890",
6 "ts": "1627420479.000800",
7 "blocks": [
8 {
9 "type": "section",
10 "text": {
11 "type": "mrkdwn",
12 "text": "Hello, this is a message from Slack API!"
13 }
14 }
15 ]
16}
The Slack Message Response Json is an example response of an API, which returns a message object containing information about the message that was sent in a Slack channel.
The type field indicates that this is a message event, and the text field contains the message content. The user and channel fields indicate the user and channel where the message was sent, respectively.
The ts field contains a timestamp for the message, and the blocks field contains an array of blocks that can be used to format the message using Slack's Block Kit Json API.