Set up Paubox webhook notifications in Slack
Send Paubox webhook notifications to Slack
Paubox webhooks send a notification to a web address you choose whenever certain email or form events happen, such as a message being delivered or failing. This article explains how to get those notifications into a Slack channel.
Can Paubox post directly to Slack?
No. Paubox sends webhook notifications in its own fixed format, which Slack can't display as a message. Pasting a Slack channel link or a Slack incoming webhook URL into Paubox won't post anything to your channel.
To see Paubox events in Slack, use an automation tool that can receive a webhook and then post a message to Slack. You'll give Paubox the webhook address from your automation tool, and set up the tool to send the message to your Slack channel.
Step 1: Get a webhook address from your automation tool
In your automation tool, create a new automation that starts when it receives a webhook. Copy the webhook address it gives you. The address must start with https://.
Step 2: Add the webhook in Paubox
- Log in to your Paubox dashboard.
- Click Settings in the left menu, then click the Webhooks tab.
- Click Add webhook.
- In Endpoint URL, paste the webhook address from your automation tool.
- Under Select events to listen, choose the events you want to be notified about.
- Click Add.
If you chose email.received or forms.submission, Paubox also shows a Signing secret. Copy it and keep it somewhere safe, because it isn't shown again. Your automation tool can use it to check that those notifications really came from Paubox. Click Done when you've saved it.
Your new webhook appears in the list on the Webhooks tab.
Step 3: Send the message to Slack
Back in your automation tool, add a step that posts a message to your Slack channel. Use the details from the Paubox notification, such as the event name, to build the message.
Events you can choose
- email.delivered: A message reached the recipient's mail server.
- email.opened: A recipient opened a tracked message.
- email.temporary_failure: Delivery was deferred and will be retried.
- email.failed: Delivery failed and will not be retried.
- email.received: An inbound email was received on your receiving domain.
- forms.submission: Someone submitted one of your forms.
email.received and forms.submission are only available on some accounts, so you may not see them in the list. You'll also only see events for the Paubox products you have access to. If Paubox says two of your selected events can't share one endpoint, create a separate webhook for each.
Note: If you don't see the Webhooks tab under Settings, ask your account admin for access.