Call API header name error: "not legal"

Im not sure whether this is a bug or not, but im trying to set up a Call API action. The header is “Authorization: Bearer #API_Key#”

When i enter a custom value for the header as “Authorization: Bearer” followed by the API key as the value, i get this error:

Call API: TypeError: Authorization Bearer: is not a legal HTTP header name

I cant figure out any other way to set it up, but feel like i must be doing something wrong as “Authorization: Bearer” is commonly used for an authentication header…

Check out this video and observe how the headers are set up for the authorization. I have a feeling you might be configuring it wrong.

I am! you replied before i got a chance to delete my post - i made such an embarrassing error.

The header name should be “Authorization” and the value should be Bearer #API_Key#

Oops

1 Like

No worries. This might be good information for others that run into the same issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.