Skip to main content
Level 2
Apr 18, 2024 1:25 PM UTC
Solved

HTTP API call from a workflow with an API KEY authentication

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.
Manoj_Kumar
Manoj_KumarAccepted solution
Community Advisor
Apr 22, 2024 1:16 AM UTC

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  | https://themartech.pro

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
Apr 22, 2024 1:16 AM UTC

Hello @salvatore_dange 

 

You can pass the authorization header like this:

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

 

Translate
Manoj  | https://themartech.pro