Sending Slack Blocks

I am trying to post some slack blocks as a message and running into an issue. I’ve selected “Blocks” in the message type, and stringifying the input array but it always just sends the notification text content. Even trying with a super simple block that I know is valid it doesn’t work. You get an error if you don’t specify any notification text, so I enter an empty string, but that content apparently is overriding what is specified in the blocks.

You can see in the output that the block content is ignored and notification text is sent instead, even if that text is an empty space.

hello @chocolatecake420

it should be set with the below syntax:

{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "block text"
      }
    }
  ]
}

as specified in the Slack’s Block KIT builder

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.