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

WebApi sync weight data failed error code 403

Hi everyone,

 

I'm encountering an issue while trying to sync weight data to Fitbit using the Web API. I receive a 403 Forbidden error with the message "The caller does not have permission", but I'm certain that I've completed the full authorization process.

 

Details:
  • Error Code: 403
  • Error Message"The caller does not have permission" 
  • API Endpoint: POST /1/user/-/body/log/weight.json
  • Authorization Scopes: I've requested and received all necessary permissions, including the weight scope.
  • Token Validity: My access token is valid and has not expired.
Best Answer
0 Votes
3 REPLIES 3

Hi @haoziy 

Thanks for reaching out about this issue!

I tried to reproduce this on my end using both GET and POST requests for Weight logs via the Fitbit Web API Explorer, and both worked as expected.
Could you please try making the request you're implementing directly in the Fitbit Web API Explorer?

If it works there, you can then compare the settings between your app and the tool to find the discrepancy. If you still run into the same issue, please provide a screenshot and the reproduction steps.

Thanks,
Inca

Best Answer

Hi

@IncaFitbit 

Thank you for your response!

but my issue remains unresolved. The error code is 403, and the error message is "The caller does not have permission." However, this type of error is not included in documentation.

step1: auth

request:

url: 

https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=xxxxxx&redirect_uri=xxxxxx&scope=weight%20nutrition 

fitbit:

haoziy_4-1748337067829.png

 

response:

haoziy_0-1748336772444.png

 

step2: sync weight data

request:

 

haoziy_2-1748336937466.png

response:

haoziy_3-1748337004790.png

 

 

Best Answer
0 Votes

I noticed you've also opened another ticket regarding this issue. To ensure we don't miss any messages and keep all information in one place, let's continue our conversation on the following ticket:
https://community.fitbit.com/t5/Web-API-Development/Webapi-sync-weight-data-failed-error-The-caller-...

 
Best Answer