Webhook use with 2-step authorization with a bearer token

Hello,

I’m kind of stuck here. This goes above my simple digital marketing knowlegde :slight_smile:

Situation:

  • I have an automation that uses a webhook to POST the form data to an external CRM application of my client. So that the lead info would get automatically in their company CRM.

  • Now their IT tells me they have added a 2-step authorization with a bearer token. First u need to retrieve a bearer token with a GET request. So that the Call REST Webservice = POST + bearer token

Any ideas or hints on how to do this in AC, how to continue from here?

Thanks!

Regards,
Bert

As far as I know, we can’t support a custom authentication scheme like this directly through our automations. However, as a work-around, you may want to consider creating a web service that sits in the middle that can do this work. For example, you could build a serverless function in AWS (Lambda) or Azure (Function), or use a service like Pipedream. The automation calls this serverless function, and that function does the work of retrieving the bearer token and posting the data to your CRM.

I hope this helps!