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

Undocumented endpoint in foods API

I've been looking through the documentation for the Food and Water API at https://dev.fitbit.com/build/reference/web-api/food-logging and https://dev.fitbit.com/build/reference/web-api/explore/#/ and was searching for a way to get a list of the current user's custom foods.

 

The documentation specifies 'Create Food' and 'Delete Custom Food' endpoints, but no 'Get Custom Foods' endpoint.

 

Create Food - POST https://api.fitbit.com/1/user/[user-id]/foods.json 

Delete Custom Food - DELETE https://api/fitbit.com/1/user/[user-id]/foods/[food-id].json

 

The API does respond to GET https://api.fitbit.com/1/user/[user-id]/foods.json with a list of custom foods, but this isn't a documented endpoint.

 

Just wondering if it's safe to use this endpoint, or if it's undocumented as it's likely to change at some point in the future?

 

Thanks,

Joe

Best Answer
0 Votes
1 REPLY 1

Hi @jbell1329,

 

Good find! I'll need to reach out to engineering to get more information. I'll let you know once I find anything out.

 

Let me know if you have any questions in the meantime.

Best Answer
0 Votes