- You can test Slack webhooks with ngrok locally
- See Slack: Outgoing Webhooks
[
{
"method": "POST",
"path": "/slack",
"command": "echo New message from $USER: $MESSAGE",
"validate": [
{
"source": "jsonBody",
"find": "payload.token",
"match": "exactly",
"value": "W062f8ewla1QPPayTpYc3aqp"
}
],
"parseJson": [
{
"query": "payload.user_name",
"variable": "USER"
},
{
"query": "payload.text",
"variable": "MESSAGE"
}
]
}
]