Skip to content

Braze Learning courseAbout Webhooks

This reference article covers the basics of webhooks to give you the building blocks you need to create your own. Looking for steps on how to create a webhook in Braze? Refer to Creating a webhook.

Webhooks are a common way for applications to communicate—to share data in real time. In this day and age, we rarely have one standalone application that can do everything. Most of the time, you’re working in many different apps or systems that are specialized to perform certain tasks, and these apps all need to be able to communicate with one another. That’s where webhooks come in.

A webhook is an automated message from one system to another after a certain criteria has been met. In Braze, this criteria is usually the triggering of a custom event.

At its core, a webhook is an event-based method for two separate systems to take effective action based on data transmitted in real time. That message contains instructions that tells the receiving system when and how to perform a specific task. Because of this, webhooks can provide you with more dynamic and flexible access to data and programmatic functionality, and empower you to set up customer journeys that streamline processes.

Use cases

Webhooks are an excellent way to connect your systems together—after all, webhooks are how apps communicate. Here are some general scenarios where webhooks can be particularly useful:

  • Sending data to and from Braze
  • Sending messages to your customers via channels not directly supported by Braze
  • Posting to Braze APIs

Some more specific use cases include the following:

  • If a user unsubscribes from email, you could have a webhook update your analytics database or CRM with that same information, ensuring a holistic view of that user’s behavior.
  • Send transactional messages to users within Facebook Messenger or Line.
  • Send direct mail to customers in response to their in-app and web activity by using webhooks to communicate with third-party services like Lob.com.
  • If a gamer reaches a certain level or accrues a certain number of points, use webhooks and your existing API setup to send a character upgrade or coins directly to their account. If you send the webhook as part of a multichannel messaging campaign, you can send a push or other message to let the gamer know about the reward at the same time.
  • If you’re an airline, you can use webhooks and your existing API setup to credit a customer’s account with a discount after they’ve booked a certain number of flights.
  • Endless “If This Then That” (IFTTT) recipes—for instance, if a customer signs into the app via email, then that address can automatically be configured into Salesforce.

Anatomy of a webhook

A webhook consists of the following three parts:

Example webhook broken out into HTTP method, HTTP URL, and request body. See the following table for details.

HTTP methods

The following table describes the four different HTTP methods you can specify in your webhook.

Webhooks in Braze

In Braze, you can create a webhook as a webhook campaign, API campaign, or Canvas component.

  1. In the Braze dashboard, go to Campaigns.
  2. Click Create Campaign and select Webhook.

Refer to Creating a webhook for more information.

  1. In the Braze dashboard, go to Campaigns.
  2. Click Create Campaign and select API Campaign.
  3. Click Add Messages and select Webhook.
  4. Format your API call to include a webhook object.

Refer to Creating a webhook for more information.

  1. In your Canvas, create a new component.
  2. In the Message section of your component, select Webhook.

Refer to Creating a webhook for more information.

HOW HELPFUL WAS THIS PAGE?
New Stuff!