Get Token from API using Postman

I’m trying to get the Bearer Token by using Postman, but after I’ve configured it, the only thing I keep receiving is a “Oops, something went wrong” message.

Here’s my configuration:


image

For my env variables, I just copied and pasted from Auth0 Dashboard

Also, I’m using a Node local server, based on this course configuration:

Hi @murilo.gamboa.melo,

Welcome to the Auth0 Community!

What are you trying to do with the token? If you simply want to retrieve a user’s access/id tokens, there are easier ways than working through the entire code flow. For instance, you can set up a password grant and exchange username/password directly for tokens, or you could use our authentication API debugger to get them programmatically.

Take a look at this thread that covers the topics I just mentioned.

If you want to do something different, let me know and we can work through it.

Hi @dan.woda, thanks!
I’m trying to get the token and use it to access the private enpoint with it, I’ve generated the token via curl without any problem, but it didn’t work on postman when I try to use it, I keep getting the unauthorized error.
I’ll upload a video showing the proccess.

1 Like

Sounds good! let me know.

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