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

Fitbit Api Returning 403 for Profile Calls

ANSWERED

Hello,

  I'm facing an issue where I'm getting the following error:

"errorType": "insufficient_scope","message": "This application does not have permission to access profile data. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."

 

  I received the access_token (which was working before) through the normal OAuth2 process (basically I placed a breakpoint in my code, copied that access token, and pasted it in hurl.it.

 

  This process was working for me a few days ago, so I'm not quite sure if something has changed.

 

  Details:

GET https://api.fitbit.com/1/user/-/profile.json

Accept: */*

Accept-Encoding: gzip, deflate

Authorization: Bearer <Insert Access Token Here>

User-Agent: runscope/0.1

 

I have confirmed that for the user account I'm accessing has the correct permissions:

Access & Write
activity and exercise

 

I can provide more details/information if needed.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

It doesnt appear that you have the profile scope from your post. Can you confirm?

 

https://dev.fitbit.com/docs/oauth2/#scope

View best answer in original post

Best Answer
3 REPLIES 3

It doesnt appear that you have the profile scope from your post. Can you confirm?

 

https://dev.fitbit.com/docs/oauth2/#scope

Best Answer

Ah, yes, I seem to only have had the activity scope set.  You just saved me hours of debugging.  Thanks!

Best Answer
0 Votes

@akacool wrote:

Ah, yes, I seem to only have had the activity scope set.  You just saved me hours of debugging.  Thanks!


Excellent, glad that helped! As a future troubleshooting tip, take a look at the body of the error response, it usually includes more information.

Best Answer