lichess.org
Donate

Get Members of Team API does not work with Acess Token

Dear lovely Lichess Developers and co.,

Today I was playing a little bit with the Lichess APIs and the API-key which can be used for the OAuth2 Authentication. Since I am more familiar with R I was using the hhtr2 library for accessing the APIs. I could retrieve some data of APIs, for which the Authentication is needed, but I realized that I get the Error "{\"error\":\"Missing scope\"}" every time I want to retrieve data from the "Get members of a team" API.

This API needs the team:read permission, which I have within my API-Key, but the description is "Permission to read private-Team Information" and not read usernames of teams. I was wondering, whether there is a bug or missing permission within the key or whether it is not possible to use this API with the key.

If not, is there another way to authenticate and use the API within R?

Thank you in advance,
Greetings Bulldozer
Is the member list public for that team? Are you a team leader or a member in the team? Teams have a toggle :

>Hide team member list from non-members.

So the usernames might indeed be " private team information " for some teams. But if you are a member of the team, I would expect it to work