Skip to content

Webhook Format: Slack

When format is set to slack, incoming emails are converted into Slack messages using the Incoming Webhooks API.

  1. Go to api.slack.com/apps and click Create New AppFrom scratch.
  2. In the app settings sidebar, click Incoming Webhooks and toggle it On.
  3. Click Add New Webhook to Workspace, select the target channel, then click Allow.
  4. Copy the generated URL:
    https://hooks.slack.com/services/T00000000/B00000000/YOUR_WEBHOOK_PATH
Terminal window
curl 'https://api.echovalue.dev/webhook' \
-H 'x-token: mytoken' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://hooks.slack.com/services/T00000000/B00000000/YOUR_WEBHOOK_PATH",
"format": "slack"
}'
*Subject line*
From: Sender Name <sender@example.com>
Email body text