Skip to main content

data_map.webhooks

An array of objects that define external API calls.

NameTypeDefaultDescription
webhooksRequiredobject[]-An array of objects that accept the webhooks Parameters.

webhooks Parameters

Processing Order

The properties are processed in the following sequence:

  1. foreach
  2. expressions
  3. output

Only applicable when multiple of these properties are set in your configuration.

NameTypeDefaultsDescription
expressionsOptionalobject-A list of expressions to be evaluated upon matching.
error_keysOptionalstring | string[]-A string or array of strings that represent the keys to be used for error handling.
urlRequiredstring-The endpoint for the external service or API. Authentication can also be set in the url in the format of username:password@url.
foreachOptionalobject-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
headersOptionalobject-Any necessary headers for the API call.
methodRequiredstring-The HTTP method (GET, POST, etc.) for the API call.
input_args_as_params OptionalbooleanfalseA boolean to determine if the input parameters should be passed as parameters.
paramsOptionalobject-An object of any necessary parameters for the API call. The key is the parameter name and the value is the parameter value.
required_argsOptionalstring | string[]-A string or array of strings that represent the parameters that are required to make the webhook request.
outputRequiredobject-Defines the response or action to be taken when the webhook is successfully triggered.