Event Webhook

Rate this page:

Event Webhooks provides data about the email you send when the user takes an action.

A webhook is an HTTP callback that allows a web application to POST a message to a URL when certain events take place. Often called “Reverse APIs,” Webhooks can be used to receive data in real time, pass it on to another application, or process the data faster than traditional APIs.

Some of the traditional APIs that SendGrid provides include:

  • SMTP API: Provides custom handling instructions for email headers within messages.
  • Web API: Allows users to retrieve account information like bounces, unsubscribes, or spam reports.
  • Marketing Email API: Offers developers the ability to manage the lists, identities, and delivery events for marketing emails.
  • Template Engine API: Provides a way for marketers and developers to create, iterate, and deploy transactional email templates.

While webhooks are traditionally more complex to set up, the speed and efficiency of webhooks have increased their popularity in the developer community. There are 3 main types of webhooks:

  • Push Webhooks: Enables users to receive data in real time.
  • Pipe Webhook: Not only enable the users to receive data in real time, but they also allow users to code it and take certain actions based on event triggers.
  • Plugin Webhooks: Enhance the capabilities of the platforms on both the sending and receiving level, allowing the sharing of data in a 2-way relationship.

SendGrid’s Event Webhook combines the push, pipe, and plugin capabilities listed above. The Event Webhook notifies a URL via HTTP POST about events that take place with your email in the SendGrid platform. The Event Webhook then captures email-specific data related to unsubscribes, spam reports, bounced emails, and response data, and reports them in the manner in which you specify.

With the Event Webhook, users can create advanced email analytics, customize the delivery of your email analytics to their platform, set up triggered email campaigns synced to third-party platforms, and insert dynamic data. In all, there are 9 email events and 1 account event that can be captured.

Using the SendGrid Event Webhook allows users to follow the email best practices that will increase their email deliverability. For instance, by immediately responding to bounces, unsubscribes, and spam reports, users can ensure that they’re always sending to a clean list. By using the open and click tracking, they can remove unresponsive users and ensure that they’re always sending to a highly engaged list.

To help users take full advantage of the Event Webhook, SendGrid has also created the EventKit. The SendGrid EventKit allows users to create a user-friendly app where they download a PHP script and then upload it to their server in order to take advantage of the Event Webhook. You can learn more by visiting the EventKit blog post.

In addition to the Event Webhook, SendGrid has also created the Parse Webhook to improve engagement with recipients. The SendGrid Parse Webhook allows users to parse the contents and attachments of messages. Using Parse Webhook, SendGrid users can post blog articles or receive uploads directly from email replies. The webhook will then POST the parsed portions of the email to a URL specified by the user.

SendGrid provides a full-service solution for solving your total email delivery needs. We’re the world’s largest email infrastructure as a service provider working hand in hand with developers to ensure that we’re providing tools and services that solve real-world problems.

Rate this page:

Thank you for your feedback!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

thanks-feedback-gif