nutrition

Preview a starting nutrition plan without changing settings

post/v1/nutrition/recommendation

Request

  • Base URL: http://localhost:4318
  • URL: http://localhost:4318/v1/nutrition/recommendation
  • Auth: HTTP bearer

Request body

weightUnit'kg' | 'lb'
genderstring

Optional self-described gender; never substitutes for the equation coefficient.

aspirationsstring
ageinteger
weightKgnumber
heightCmnumber
equationSex'male' | 'female'

Coefficient from the original resting-energy equation; ask, never infer from name. May be omitted with established maintenance calories.

activityFactornumber

Whole-day activity multiplier including exercise. NIDDK typical range 1.4 sedentary to 2.5 very active; this remains an estimate.

knownMaintenanceKcalnumber
maintenanceEvidencestring

How maintenance was established. Never infer it from partially logged intake.

goal'maintain' | 'lose_fat' | 'gain_muscle'
training'none' | 'endurance' | 'resistance' | 'mixed'
pregnantOrBreastfeedingboolean
requiresClinicalDietboolean

A condition or medication requiring individualized nutrition, e.g. kidney disease or glucose-lowering treatment.

eatingDisorderHistoryboolean
pace'gentle' | 'moderate'
dietPreference'flexible' | 'mediterranean' | 'vegetarian' | 'vegan'
macroPreference'balanced' | 'more_carbs' | 'more_fat'
proteinGPerKgnumber
targetWeightKgnumber

Response

Success

object required

Changes

No recorded changes to this operation across all 1 revision of this API.