Creating 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 Templates > Webhook Templates.
If you’re using the older navigation, you can find this page under Engagement > Templates & Media > 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
- Give your webhook template a unique name.
- (Optional) Add a template description to explain how this template is intended to be used.
- Add teams and tags as needed to help find and filter for your template.
Step 4: Build your template
- Enter the webhook URL.
- Select the HTTP method.
- Add a request body. This can be either JSON Key/Value Pairs or Raw Text.
- (Optional) Add a request header. This may be required by your webhook destination.
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.
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.
Edits made to an existing template aren’t reflected in campaigns that were created using previous versions of that template.
Managing your templates
You can duplicate and archive webhook templates to help better organize and manage your list of templates.
Learn more about creating and managing templates and creative content in Templates and Media.