Skip to content

Create a webhook template

As you build and customize your webhooks, you can create and leverage webhook templates for later use within the Braze platform. This way, you can consistently build a variety of webhooks across your different campaigns.

Step 1: Go to the webhook template editor

In the Braze dashboard, go to Content > Webhook.

The "Webhook Templates" page with predesigned and saved webhook templates.

Step 2: Choose your template

From here, you can choose to create a new template, use one of the predesigned webhook templates, or edit an existing template.

For example, if you’re using LINE as a messaging channel, you can set up several webhooks using the predesigned templates for LINE Carousel or LINE Image.

Step 3: Fill out template details

  1. Give your webhook template a unique name.
  2. (Optional) Add a template description to explain how this template is intended to be used.
  3. Add teams and tags as needed to help find and filter for your template.

Step 4: Build your template

  1. Enter the webhook URL.
  2. Select the HTTP method.
  3. Add a request body. This can be either JSON Key/Value Pairs or Raw Text.
  4. (Optional) Add a request header. This may be required by your webhook destination.

To authenticate your webhook, select a saved credential in Credential. Use an HTTPS URL and a credential whose allowed domain covers the destination hostname. For setup, permissions, and header behavior, see Use a saved credential.

Users without the “Edit Webhook Templates” permission see the template’s credential values masked. Braze leaves those values blank when they use the template in a campaign or Canvas, so they must re-enter the values or select a saved credential. For more information, see Masked credentials.

The "Compose" tab when creating a webhook template. Available fields are webhook URL, HTTP method, request body, and request headers. You can also add languages.

Step 5: Test your template

To see how your webhook looks before sending it to your users, you can send a test webhook using the Test tab. Here, you can select to preview the message as a random user, existing user, or custom user. To send a test webhook, you need the “Edit Campaigns” permission in the workspace or for at least one team. Without the permission, Send Test is unavailable. Ask a user who has the permission to send the test.

Step 6: Save your template

Be sure to save your template by selecting Save Template. You’re now ready to use this template in any campaign you choose.

Managing your templates

You can duplicate and archive webhook templates to help better organize and manage your list of templates.

New Stuff!