05-06-2021 02:31
05-06-2021 02:31
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
}>
05-07-2021 11:28
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
05-07-2021 11:28
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
Best Answer