HTTP API call from a workflow with an API KEY authentication | Community
Skip to main content
New Participant
April 18, 2024
Solved

HTTP API call from a workflow with an API KEY authentication

  • April 18, 2024
  • 1 reply
  • 535 views

Hello all,

I need to invoke a HTTP API call having an API key as authentication method
from a workflow (Javascript)

I'm using 

HttpClientRequest

and I set NO header so far

I get as reponse:
Unauthorized: no API Key provided. Please contact technical support

Can you help me build this code?

Thank you!
Sal

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by _Manoj_Kumar_

Hello @salvatore_dange 

 

You can pass the authorization header like this:

var req = new HttpClientRequest('https://' + url + myPath) req.header["Authorization"] = "API_KEY_HERE";

 

1 reply

_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
April 22, 2024

Hello @salvatore_dange 

 

You can pass the authorization header like this:

var req = new HttpClientRequest('https://' + url + myPath) req.header["Authorization"] = "API_KEY_HERE";

 

     Manoj     Find me on LinkedIn