How to Generate access token in postaman using oauth

How to Generate access token in postaman using oauth
After doing all the steps my access token is not generated in postman.Can anyone help me in this.

Thanks in Advance

Hi @Nithysha,

Happy to help.

First, here is a high level overview of the steps you need to follow:

  1. Authorize your OAuth app
  2. Get redirected to your Redirect URL, to which a code is appended in the browser
  3. Retrieve the code from the browser URL
  4. Exchange the code for an access_token by calling our /oauth endpoint
  5. Use access_token to authorize requests to our API

Once you’ve retrieved the code, you can use Postman to send a request to our OAuth endpoint — here is an example:

You will need to send your Client ID/Secret in the Authorization header as well. This can be handled as follows:

I hope this helps!
Will

Yes Got it.I cant able to get the token from my application.I am getting below error.
{“reason”:“grant type authorization_code is not supported from token endpoint”,“error”:“invalid_request”}

Thanks in Advance

Hi @Nithysha,

Can you confirm you’re using the request URL in my screenshot above, after retrieving the code?

Thanks,
Will

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