Oauth2 unauthorized response format

Hi all,

Currently I am trying to get the API token. For success of calling it returns response in json format but when I try to test the call without authorization it returns response in xml format. Below is how my API token calls an unauthorized user.

image

Can I change it to json format? Thank you.

Regards,
Amir

Hi,
Have you tried adding Accept: application/json header to your HTTP request? Maybe it will change the response content type.