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

How many nnumbers of scopes are allowed in Fitbit authorization

https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=#&redirect_uri=#%2F&scope=activity%20heartrate%20settings%20sleep%20oxygen_saturation%20profile%20respiratory_rate&code_challenge=#&code_challenge_method=S256 


Here is my URL with 7 scopes added. When I include only 6 scopes, it works fine, but with 7 scopes, one of them gets skipped.

I want to know if Fitbit has a limitation on the number of scopes or if there is a bug on my end.

Best Answer
0 Votes
5 REPLIES 5

Hi @usamaa 

You can add all of the scopes in your authorization URL.   I'll reach out to you directly to get some more information from you.

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

I'm still facing the same issue. Can you please help me?

When I select the scopes manually, the last one i select is ignored.
For example ==>  if i click on profile's checkbox in the last the it gets ignored.

and if is click on allow all then the settings gets ignored

Here is the URL I am using:

https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=&redirect_uri=https%3A%2F%2Ffit...

usamaa_0-1741646572660.png

 

Best Answer
0 Votes

 

What do you mean by the last checkbox gets ignored?

Best Answer
0 Votes

For example if i select sleep in the last from this list in the screenshot then it gets skipped

usamaa_0-1741810951230.png

 




Best Answer
0 Votes

How do you know it gets skipped?   When you use the /oauth2/token endpoint to exchange the authorization code for the access token and refresh token, do you see all the scopes listed in the response.   For example

Screenshot 2025-03-13 at 10.14.50 AM.png

If you're getting an error when calling the endpoint for sleep, what is the syntax you are calling and the error message received?

Best Answer
0 Votes