Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

HTTP Plugin : API Key Authentication Issue

Hi Team, 

I need to connect to an endpoint using an API Key.
When I use the following curl command, it works perfectly:

curl -H "Authorization: Basic <API Key>" \ <End Point>

However, when I try to use the HTTP Plugin by entering the <End Point> in the URL and setting the headers as:

Authorization: Basic <API Key>

I receive the following error message:

message":"Sorry, authentication failed. Invalid api key","api_error_code":"api_authentication_failed","error_code":"api_authentication_invalid_key","error_msg":"Sorry, authentication failed. Invalid api key","http_status_code":401}

What am I missing?

Thank you for your help!

0 1 115
1 REPLY 1

Hi @joao_probe,

A 401 error usually indicates that the API key is invalid and the request does not have valid authentication credentials. Please check if its OAuth token is in a bad format, not found, or has expired. 

I hope this helps.