Expand my Community achievements bar.

SOLVED

HTTP API call from a workflow with an API KEY authentication

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

API
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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