The webhook node sends information from a flow in real-time to an external application.
Currently, Pendula supports the following credential types: username/password, request header and bearer token.
Some examples of how the webhook node can be used include:
- Updating an entry in a system of records
- Writing to a spreadsheet
Quick links
Using 'GET': Validate payloads and use webhook merge fields
What is a Webhook?
Webhook is a way for an app to automatically provide other applications with real-time data.
Create a Webhook
- Provide the credential from the external application in the Integrations page. This ensures Pendula's identity can be verified every time a call is made.
- In the Flow builder, drag and drop the webhook node onto the canvas to open up the settings panel.
- In the Make an API call section, select the HTTP request method you want to use for (
GET
,PUT
orPOST
) - Insert the API endpoint URL – this is where you want to send the request to.
- In the Authentication section, select authentication type required.
- Select the relevant stored credential. If the credential hasn't been added, you can add one in the Integrations page.
- In the Request body section, select your Content type (currently available in JSON or Text)
- Enter your request body
Using 'GET': Validate payloads and use webhook merge fields
When using 'GET' requests to bring external data into the flow, you can reference the data as merge fields later in the flow. Pendula allows you to paste a sample payload (of the returned 'GET' payload) into the Merge fields tab of the webhook node.
You can learn more about Pendula and merge fields here.
Simply copy the request body of the payload in the other system (not including headers) and paste into the sample payload field. The sample payload must be in JSON format (key value pairs with hierarchy)
Here's an example of the request body of a payload, in JSON format:
{
"userid": "harrison-example",
"firstname": "harrison",
"lastname": "koenig",
"mobile": "+61400000000"
}