The Webhook Node
The Webhook node allows you send Profile Data to another system.
In this Article
About the Webhook Node
The Webhook node allows you to make calls to an external API and make use of the data that you're currently tracking with your other existing integrations and products.
Send any data from a profile's attributes and if the MA flow is triggered by an event any data in that event can be sent.
Data stored in older events can not be sent with the webhook. Meaning only data from the event triggering the flow is the event data you can send. Events already stored on a profile can not be send.
It is not possible to add data to a Profile using the webhook.
Setting up the node
Note that you may require additional help from a developer, or a person with development skills and knowledge about APIs. We suggest that you reach out to a member of your development department to make sure that all the settings are correct.
Drag the Webhook Node into the canvas and click it to open it up and see all available options.
Choose a http method on the http dropdown.
While the action of the HTTP method depends on the API you're using, here's a rundown of what each method generally does in most cases.
GET: Retrieve data from the path/endpoint.
POST: Create new data into the path/endpoint.
PUT: Update existing data in the path/endpoint.
DELETE: Delete data in the path/endpoint.
PATCH: Partially update data in the path/endpoint.
Please note, currently, the webhook node will send your request as a GET parameter instead of a request body payload.
We suggest that you test your Webhook node with sites like https://webhook.site or https://requestbin.com with non-sensitive test data to make sure it's working as expected.
Enter the URL. This is the URL to the endpoint where the Webhook will call. The Webhook node supports static parameters.
Add Profile Data
Next, define the data you want to send.
Add Profile Data as URL Parameter
You can add Profile Data through URL Parameters. Choose which parameters to send and choose the data from the drop down menu.
Choose the Attribute (Default or Custom) or Event data you wish to send to your API.
If your Listen node is not listening for an Event, the Event data option will not be available in the Webhook node.
Add Header Data
If you want to add headers set it up here by specifying the name and value for each header you want to send. Repeat to add yet another header.
From the Response drop-down menu, choose between a string value or a status code for the response type.
In Expected response, add an expected response as a string value or status code.
In Error Handling, define the behaviour of the Webhook node whenever the API response doesn't match your criteria or there is an expected error (for example, the URL is incorrect or the server doesn't respond.
Next node yes: Profiles continue to the next node via the Yes path way.
Next node no: Profiles continue to the next node via the No path way.
Exit flow: Profiles exit the flow.