I’m trying out the battle.net API. When I go to the api page (Blizzard Battle.net Developer Portal) and insert my ClientID/ClientSecret into the “try” fields, the “response status” is shows 401 unauthorized. Are there any issues with my api key or account? Should I generate a new secret/client id? Not sure why this error is showing up.
1 Like
Hey, the page isn’t updated for the new systems by now. You can use this autorization-code-flow from the api guides (sadly I cannot post links as new users so you have to find it yourself sorry) to get your own auth token and just use curl/postman/insomnia/api tester or whatever to do your request.
So no most likely no issue with your account or api key, but it’s no longer allowed to send the access_token as query instead it needs to be send as authtorization header.
Curl example:
curl --header "Authorization: Bearer insert_your_access_token_here" REST API URL
(example from authorization-code-flow guide)
1 Like