- Blind mode tutorial
lichess.org
Donate

Problem with API : List your challenges

Hi, good peoples:

I am using API to list all my challenges:

call a get request to URL: https://lichess.org/api/challenge

but received this error message :
[error] => Missing scope

Do you have any idea ?

Hi, good peoples: I am using API to list all my challenges: call a get request to URL: https://lichess.org/api/challenge but received this error message : [error] => Missing scope Do you have any idea ?

Make sure you're sending a token which has the challenge:read scope along with your request. https://lichess.org/account/oauth/token/create?scopes[]=challenge:read

curl https://lichess.org/api/challenge -H "Authorization: Bearer lip_TokenYouCreated"

Make sure you're sending a token which has the `challenge:read` scope along with your request. https://lichess.org/account/oauth/token/create?scopes[]=challenge:read curl https://lichess.org/api/challenge -H "Authorization: Bearer lip_TokenYouCreated"

@ItsGam3Tyme said in #3:

Make sure you're sending a token which has the challenge:read scope along with your request. lichess.org/account/oauth/token/create?scopes[]=challenge:read

curl lichess.org/api/challenge -H "Authorization: Bearer lip_TokenYouCreated"

Thanks you so much, your answer helped!!

@ItsGam3Tyme said in #3: > Make sure you're sending a token which has the `challenge:read` scope along with your request. lichess.org/account/oauth/token/create?scopes[]=challenge:read > > curl lichess.org/api/challenge -H "Authorization: Bearer lip_TokenYouCreated" Thanks you so much, your answer helped!!

This topic has been archived and can no longer be replied to.