2 min read

How to use Paubox Email API webhooks

Person wearing Paubox-branded shirt at desk with network diagram icon
Person at computer with Paubox integration icon

Find out how easy it is to use Paubox Email API webhooks

Many services like Slack, Stripe, Teams, Zapier, Tray.io and others already have the option to generate a webhook URL and receive data from HIPAA compliant APIs like Paubox.

Webhooks are extremely useful to send and receive data between two services. They are reactive, which means that you don’t have to manage an always-on connection. This reduces the time spent on development, the amount of data used and the potential for errors during transfer.

Two systems exchanging data through webhook requests and responses

See the image above to understand a bit more about webhooks. There are two systems, A and B. System A sends an API request on the occurrence of an event based on its configuration. System B processes that request and sends a response back to System A. There is no need to constantly poll for new data since the mechanism is completely event-based. 

SEE ALSO: Paubox Email API Quick Guide

How to set up a Paubox Email API webhook

To set up a webhook in Paubox, follow the steps below.

  1. Log in to your Paubox account.
  2. Click on Webhooks from the left menu bar. 
Error or prohibition icon
  1. Click on the Add button. This opens a new modal on the screen.
Red X mark over envelope icon
  1. Enter a domain name and select an event type from the drop-down. There are four events you can choose from: Opened, Delivered, Temporary Failure, Permanent Failure. This event triggers a request from Paubox to the domain you have chosen.

Testing Paubox Email API webhooks without a domain

You can use the Webhook Site to obtain a free test URL if you don’t have a domain. Visiting the website automatically generates a unique URL and an email address. Copy the unique URL (but not the email address) when adding to Paubox. Every time you use our secure email API to send an email, it triggers a webhook and shows up on this page.

Envelope with X mark indicating rejected or failed email delivery

SEE ALSO: The 5-minute guide to Paubox Email API

Common use cases for webhooks

You can use webhooks in many cases. They are very open-ended. You can use them in situations where you want to confirm you've delivered a message or whether you've sent it from your end.

It is important to get a sense of what others might want to use webhooks for. To understand that, you can ask questions like:

  • How do you monitor email deliverability internally? Are there Slack channels or other triggered notifications?
  • How do you track important lead signups (i.e., signing up for a demo or scheduling an appointment)?
  • Do you intend to track email deliverability in an external database?
  • What happens after you send an email on your site/app currently?

Notifications

To highlight potential issues in deliverability in services like Slack or Microsoft Teams (if a message wasn’t delivered or sent out properly), this would come up as a notification or system message on Slack or Teams. It might say something like ‘Message failed to send’ with the response data. You can use middleware services like Tray.io to do this, which is HIPAA compliant.

Follow-ups

Engineers may build out internal processes for:

  • What to do in the event an email is not sent out
  • A follow-up if it is sent successfully

This would include scheduling a new message based on the send status of the old one.

Campaign analytics

You may also use webhooks to successfully track total sends or unique sends for sign-ups, marketing initiatives, etc.

Workflow streamlining

Sending and delivering information to a central database can potentially be a slow or difficult task to maintain. Using webhooks, developers can send information and scale it without having to maintain lots of custom code. In cases where they are using custom code, webhooks can be an easy replacement that can push deliverability data to the database and improve maintainability.

API network diagram with connected nodes

Why healthcare businesses choose Paubox Email API

Paubox Email API is a great option for covered entities to send transactional emails at scale by quickly integrating our secure, HIPAA compliant...

Read More
Image of someone typing an email.

API vs SMTP for secure healthcare emails

Simple Mail Transfer Protocol (SMTP) has been around for decades and was built to move email between servers using a series of text-based commands....

Read More
3D blue letters spelling API on a circuit board

The benefits of using HIPAA complaint email APIs

HIPAA compliant email APIs help organizations easily meet the requirements for secure transmission set by HIPAA Security Rule. Beyond its easy...

Read More

Subscribe to Paubox Weekly

Every Friday we bring you the most important news from Paubox. Our aim is to make you smarter, faster.