05-06-2021 02:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Jogger
1
0
1
05-06-2021 02:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
}>
1 REPLY 1
05-07-2021 11:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



Fitbit Developer
2071
219
508
05-07-2021 11:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

