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.
Solved! Go to Solution.
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.
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.