slack-apislack-block-kit

Slack Web API | User Bot Builder Payload


There is a slack Web API to post a message to slack.

chat.postMessage

This works completely fine with normal text. Wanted to check if we can use the Bot Kit Builder JSON payload with Web API to post rich cards via Slack Web API as well?


Solution

  • ok, Nevermind, I did not went through the entire documentation of API. we can use "blocks" parameter and paste bot builder payload there.