Sending outbound webhooks from an automation allows you to send a real-time notification with event data from Brevo to an external app when a contact reaches the Call a webhook step.
This article explains how to send outbound webhooks from an automation. You can also create outbound webhooks directly from Brevo or from the API.
Before you start
From your external app, make sure to retrieve the URL of the server or endpoint you want to send the outbound webhook to. If you're unsure where to retrieve it, check your external app’s help center or contact their support team.
Send outbound webhooks from an automation
To send outbound webhooks from an automation, you need to add the Call a webhook step.
Use the following tabs to view instructions for the new or classic automation editor:
- Go to Automations.
- Click Create an automation.
- Create a new automation from scratch.
-
From the Actions tab, add the
Call a webhook step to the automation.
-
Enter the URL of the server or endpoint you want to send your events
to. This tells Brevo where to send the outbound webhook when an event
happens.
-
(Optional) By default, the outbound webhook will include the contact
ID, email, step ID, and workflow ID. Activate the
Include details of the contact who triggered the event option
to include all the contact attributes for the contact in the webhook.
- Click Save.
- Finish setting up your automation and activate it.
- Go to Automations.
- Click Create an automation.
- Select the classic editor.
-
Configure the settings for your automation.
- Add an entry point to your automation.
- (Optional) Add the steps you want your contacts to go through before triggering the webhook.
-
Add the
Call a webhook step to your automation:
- On the canvas, click + where you want to add the Call a webhook step.
- Select the Call a webhook step.
-
Paste the webhook URL provided by your external app. This callback URL tells Brevo where to send data when an event happens.
💡 Good to knowThe webhook URL must be generated and retrieved from your external app. If you're unsure where to retrieve it, check your external app’s help center or contact their support team. -
(Optional) Activate the
I want to send contact properties to the webhook option
to include contact properties in the webhook.
- Click OK.
- Finish setting up your automation and activate it.
Secure your outbound webhooks
To secure your outbound webhooks, you need to whitelist some of Brevo's IP ranges. This ensures that only authorized requests can trigger webhooks.
➡️ To learn more, check our dedicated article Brevo IP ranges: List of publicly exposed services.
🤔 ¿Tiene alguna duda?
Si tiene alguna pregunta, no dude en ponerse en contacto con nuestro equipo de asistencia mediante la creación de un ticket desde su cuenta. Si todavía no tiene una cuenta, puede ponerse en contacto con nosotros aquí.
Si necesitas ayuda con un proyecto usando Brevo, podemos ponerte en contacto con la agencia partner de Brevo adecuada.