POST
/functions/v1/daily_energy_expenditure_calculationRequest JSON
{
"gender": "female",
"height": 168,
"weight": 62,
"age": 34,
"activity": "office"
}Response JSON
{
"status": "ok",
"formula": "Harris-Benedict",
"results": {
"basal_metabolic_rate_kcal": 1403,
"total_daily_energy_expenditure_kcal": 1964,
"total_daily_energy_expenditure_range_kcal": {
"minus10%": 1768,
"plus10%": 2160
}
}
}curl -X POST 'https://tirqjzahcinadeulfylj.supabase.co/functions/v1/daily_energy_expenditure_calculation' \
-H 'x-api-key: $MYMOLECULES_API_KEY' \
-H 'Content-Type: application/json' \
--data '{ "gender": "female", "height": 168, "weight": 62, "age": 34, "activity": "office"}'