Question

API Request Authorization issue

  • 20 November 2023
  • 5 replies
  • 113 views

Badge

Im trying to use the Gong API from Postman. I have my access key and secret. Ive added the Authorization header with a value of <AccessKey>:<AccessSecret> but when i try to use it I get

 

{
"requestId": "12345",
"errors": [
"Missing mandatory header \"Authorization\""
]
}

Anyone know whats going wrong?


5 replies

Userlevel 6
Badge +1

Hey @Conor Downey, let me ask around internally about this. Thanks for your patience!  

Badge

I got it working, thanks

Userlevel 6
Badge +1

Nice! @Conor Downey 

@Conor Downey Would you be willing to share how you got past this problem?

I’m hitting the same exact error, and when I review the headers I am sending in the request, the Authorization header is clearly present:

{'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic <token>'}

But the API still replies with:

{
  "requestId" : "2647q3qffpzs8sh6gzp",
  "errors" : [ "Missing mandatory header \"Authorization\"" ]
}

So I’m definitely open to any suggestions!

@Jeff Falk In Postman make sure you are using basic auth and enter your access key → username & secret → password

 

 

Reply