data_map.webhooks
An array of objects that define external API calls.
Name | Type | Default | Description |
---|---|---|---|
webhooks Required | object[] | - | An array of objects that accept the webhooks Parameters . |
webhooks Parameters
Processing Order
The properties are processed in the following sequence:
foreach
expressions
output
Only applicable when multiple of these properties are set in your configuration.
Name | Type | Defaults | Description |
---|---|---|---|
expressions Optional | object | - | A list of expressions to be evaluated upon matching. |
error_keys Optional | string | string[] | - | A string or array of strings that represent the keys to be used for error handling. |
url Required | string | - | The endpoint for the external service or API. Authentication can also be set in the url in the format of username:password@url . |
foreach Optional | object | - | Iterates over an array of objects and processes an output based on each element in the array. Works similarly to JavaScript's forEach method. This accepts the foreach properties |
headers Optional | object | - | Any necessary headers for the API call. |
method Required | string | - | The HTTP method (GET, POST, etc.) for the API call. |
input_args_as_params Optional | boolean | false | A boolean to determine if the input parameters should be passed as parameters. |
params Optional | object | - | An object of any necessary parameters for the API call. The key is the parameter name and the value is the parameter value. |
required_args Optional | string | string[] | - | A string or array of strings that represent the parameters that are required to make the webhook request. |
output Required | object | - | Defines the response or action to be taken when the webhook is successfully triggered. |