REST API Authentication returns 401 | Community
Skip to main content
Level 2
April 20, 2020
Solved

REST API Authentication returns 401

  • April 20, 2020
  • 1 reply
  • 2702 views

Hi All,

I am trying to get the access token via API from the documentation https://developers.marketo.com/rest-api/authentication/

Been checking my client id and secret, all seems to be working when doing the OAuth 2 via Postman, but this expires so I need to get it via API but gives me error like below. 

Does anyone know what am I missing?

Thanks in advance.

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 SanfordWhiteman

Your request structure looks right, though I wonder what those other 6 headers are. You don't need any special headers along with the token GET request.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
April 20, 2020

Your request structure looks right, though I wonder what those other 6 headers are. You don't need any special headers along with the token GET request.

orchid001Author
Level 2
April 21, 2020

It is working now, when you point out the headers I tried checking it, the 6 header are actually auto-generated in postman when I tried the request, and I unchecked those which gives me error 401 as I thought they are not needed as it wasn't in the documentation, now I turn it back to checked all items in header and it is now successful.

Thank you!