Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fitbit sleep api returns insufficient_scope error

Fitbit sleep API returns this error, but weight and activity API works fine

Also, I added sleep to the scope, but it didn't help me

 

GET https://api.fitbit.com/1.2/user/-/sleep/date/2017-04-02.json

 

{"errors":[{
"
errorType":"insufficient_scope",
"message":"This application does not have permission to access sleep data. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],
"success":false
}>

 

Best Answer
1 REPLY 1

Hi @sunloverz 

 

That error typically means the access token you have doesn't have access to the sleep data.   If you added sleep after the original token was created, then double-check you're using the updated token.   

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes