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

HTTP API call from a workflow with an API KEY authentication

  • April 18, 2024
  • 1 reply
  • 536 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
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
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  | https://themartech.pro