Token can be generated using API via Security Settings in postman but it fails in Powershell script. Did anyone else experience this?
If you are able to get the token in postman but not in a Powershell script it may be that you are not providing an additional header required for the post request. Try adding the header Content-Type. In Postman this is done automatically.
thank you for the response. The first issue that I’m trying to solve is I cannot get PAT that I generated in sandbox → preferences to generate tokens in postman. I checked the headers and it matches with other working request.
If you have verified that the URL is correct, and that your client credentials are copied correctly. My next recommendation would be to re-generate another set of client credentials and try with a different set.
Did you solve this issue?
I am having a similar issue - postman is throwing an invalid_client error when i try to get an oauth 2.0 access token using client credentials flow.
my authentication url is copied directly from here: