Enveloop Docs
Sign up for Enveloop!
  • Enveloop Docs
  • Overview
    • ✨Features
  • Getting Started
    • Introduction to Enveloop
    • Creating a Template
    • Formatting / Dynamic Content
    • Sending a test message
    • Adding a Sending Domain
    • Deploying your first message
  • Product Guides
    • Elements
      • 🔋Table
    • Using Shared Sections
    • Markdown for Formatting
    • Mustache for Dynamic Content
    • Creating a Verified Sender
    • Logging
    • Monitoring
    • Webhooks
    • Themes
  • Integrations
    • Do I need integrations?
    • SMS Integrations
      • Twilio
      • TextGrid
    • Email Integrations
      • SendGrid
      • Postmark
      • Mailgun
      • Amazon SES
      • SMTP
        • ✉️Amazon SES
        • ✉️Gmail SMTP
        • ✉️Google Domain SMTP Relay
    • Partner Integrations
      • Fly.io
  • Enveloop API
    • Getting Started with Enveloop API
    • Core API Endpoints
      • Connecting to the Enveloop API
      • POST /messages
      • GET /templates/:slug
    • Languages and Frameworks
      • 🟢NodeJS
      • 🏮Ruby on Rails
      • 🟡Python
      • 🏮Ruby
  • Settings
    • Sending IPs
  • Company
    • About Us
    • 👩‍⚖️Terms of Service
    • 😎Privacy Policy
Powered by GitBook
On this page
  • Using Webhooks in Enveloop
  • Setting up Webhooks in Enveloop
  • Additional Options
  1. Product Guides

Webhooks

Enveloop webhooks allow you to send data, from Enveloop, to your app when a messaging event occurs.

Last updated 7 months ago

When Enveloop sends a message on your behalf, it can trigger various events. Sometimes, developers want to use these message event moments to capture data in their apps (or in a third-party tool). A simple example would be alerting, or basic analytics.

What is a webhook?

A webhook is a lightweight, automated message that sends data between applications in real time when a specific event occurs. Webhooks are triggered by events and send an HTTP request to another system, and often include a payload of data.

Using Webhooks in Enveloop

You can use webhooks to notify your application when certain events happen when messages are sent from Enveloop, and to messages sent from Enveloop. Some examples of this include:

  • A message being delivered

  • A message being opened

  • A message failing to send

When events like this happen, Enveloop will send a JSON payload to the URL(s) that you provide, including detailed message information. We'll walk you through a brief description of how to set up a webhook.

Setting up Webhooks in Enveloop

Webhooks are located on the Project level in Enveloop -- this means that you can segment out events across multiple projects within a single team. Think of a project in Enveloop as a 1:1 map to your application. One application -- one Enveloop project.

Click Settings in your Enveloop project navigation. In the General tab, you'll see an area labeled Webhooks. From here, you can create the webhooks that you need, expanding as your needs expand.

Click the Add Webhook button and you will be presented with a dialog allowing you to specify the following:

  • The HTTP web address Enveloop should call when the event happens.

  • The event you want to monitor.

  • If you want the content of the message included in the JSON payload sent to the address.

After providing these settings, save the webhook and you are now ready to use the webhook when the defined event occurs.

It's a simple process that can add real value to your data collection and event monitoring efforts.

Additional Options

If you do not currently have functionality to support Enveloop calling into your app when an event happens, there are other ways you can capture events -- using third party API tools. For example, you may use Zapier, IFTTT, or Make.

In future documentation, we'll include some basic steps that show how to integrate these tools with message events in Enveloop!

Webhooks are available, per project, in Enveloop. You can find them in the Project Settings.
You can create an Enveloop webhook by including a URL and the event you want to monitor.
A screen capture of an area of the user interface for the Enveloop app that shows where webhooks would be listed. It includes an empty table that shows that no webhooks have been created yet.
A screen capture of an area of the user interface for the Enveloop app that shows a dialog window to add a webhook. It has options for the webhook URL, the event to send the payload on, and an example of the JSON payload.