Webhook 2 steps request

Hi there,

I am trying to automate submissions to RedView via webhook. Currently, the process involves two steps:

  1. Login to get accessToken
  2. Create enquiry request with form data and including the accessToken as an Authorisation header.

Is it possible to achieve this two-step authentication and submission process using the Webhook add-on? If so, could you please provide guidance on how to configure the webhook for this scenario?

Thanks,
Duncan

You can use the gform_webhooks_request_headers filter to make the request to get the access token and set the authorization header for the feed before the add-on sends the data to the destination endpoint.

See the following page of the documentation for usage examples:

The filter can be used in the theme functions.php file, a custom plugin, or via a code snippets plugin.