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

Getting 403 errors after authorizing heartrate and receiving token

ANSWERED

{"errors":[{"errorType":"insufficient_permissions","message":"API client is not authorized by Fitbit to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization p
rocess."}],"success":false}

I get this error but I authorized it in the scope and was given a token.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The issue is resolved. I was attempting to access intraday HR data before my app was approved for intraday. Thank you.

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

https://api.fitbit.com/1/user/-/activities/heart/date/2019-09-09/1d/1sec/time/09:00/16:00.json

 

Here is the json I'm trying to get. 

 

I'm also using 

'Authorization': 'Bearer ' + fitbitAccessToken 

 

Could this have to do with that there actually is not data saved during that time? 

Best Answer
0 Votes

Hi @nquestion 

 

If you authorized the heart rate scope, then you should be able to retrieve the heart rate data.  Would you please private message me the access token you're using?

 

Thanks!

Gordon

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

Hi Gordon,

 

Thanks for the message. I think the issue is that I was trying to access intraday heart rate data before being approved by the API Team. 

I will let you know after approval if this issue is resolved or not.

 

Thank you,

-nquestion

Best Answer
0 Votes

The issue is resolved. I was attempting to access intraday HR data before my app was approved for intraday. Thank you.

Best Answer
0 Votes