500 Internal Server Error

I have a problem when I make API request “https://{region}.battle.net/oauth/userinfo” I always receive 500 Internal Server Error.
However, I did pass my token in parameter

If this was just a problem with the token you would see a 401 - Unauthorized. This is probably another error.

If you share the source code you are using for the request we might be able to find the problem.

Actually, I haven’t started developing the code yet, but I’ve started testing it using postman.
curl --header “Authorization: Bearer <access_token>” https://us.battle.net/oauth/userinfo.

but unfortunately i still get 500 Internal Server Error.

In order to get the user info, the token must be created using the authorization_code flow. That means at some point Postman will show a web view for you to sign in to battlenet.

Make sure you didn’t use the client_credentials flow.

Thanks Shiller,

You reddirected me into the right direction.