Trying to pipe a queue SLA breach event into a Slack channel via webhook. The default payload is too verbose, so I’m trying to map data.queuename to the text field in the Slack block kit JSON, but the webhook delivery fails with a 400 Bad Request. Here is the mapping config I’m using:
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Alert: {{data.queuename}} breached SLA"
}
}
]
}
The error response just says invalid_block without specifying which block. Is the template syntax wrong or is Slack rejecting the structure?