Daily Nutritional Goals

Define per-user Daily Nutritional Goals (kcal, macros and, on higher plans, micronutrients). Goals can be auto-created by Nutritional Plans or set manually, and they power Remaining Daily Intake.

You can initialize goals from Recommended Daily Intake and combine them with Nutritional Plans. Alternatively, if you need more precision in your personalization, you can manually edit the daily goals for each user manually.


Plan & Token Requirements

Feature available in the following LogMeal Plans:

Analyse
Monitor
Recommend
Custom

Accessible by the following User Types:

⚫ APICompany | 🔴 APIUser | 🔵 APIUserManager

What It Does

Daily Nutritional Goal stores target values and ranges for energy (kcal), macronutrients and, depending on your plan, micronutrients (e.g., fiber, sugar, sodium, potassium, vitamins and minerals).
These goals are used across the platform to compute Remaining Daily Intake and to evaluate a user's progress. If no explicit goals are defined, the system can fallback to Recommended Daily Intake for baseline targets.

recommended nutrients personalized nutritional goals
remaining calories visualization recommended healthy eating pyramid

When to Use It / Outcomes

  • You want to pin personalized targets for a user (kcal, macros, and micronutrients).
  • You need explicit goals instead of relying only on user profile generic recommendations.
  • You maintain coaching or plan assignments and want goals to adapt accordingly.
  • Output: JSON with the user's current goals (GET), confirmation of updates (POST) or deletion (DELETE).

Feature-Specific Details

  • Goal structure: targets typically include either a single target value or a min/max (or range + warning_range) per nutrient.
  • Units: each nutritional indicator has its own fixed unit. Kcal for energy; grams for macros and most nutrients; milligrams or micrograms for some micronutrients.
  • Plan integration: assigning a Nutritional Plan automatically defines/updates daily goals to accomplish that plan.
  • Fallbacks: when manually defined goals are missing, Recommended Daily Intake can be used to bootstrap good defaults. Autocompute uses revised Harris–Benedict by default; bmr_formula: "mifflin_st_jeor" selects Mifflin–St Jeor. With force: true, supported nutrients are recalculated but manually set goals for nutrients without an automatic rule are preserved. US National Academies DRIs provide the age/sex reference values for vitamins, minerals, fiber, folate equivalents and alpha-linolenic acid (NASEM 2019).
  • Localization: nutrient display names can be localized in your UI; the API returns canonical nutrient keys.

Automatic Calculation: Requests and Persistence

The Recommended Daily Intake guide describes the revised Harris–Benedict default, the optional Mifflin–St Jeor method, activity-informed energy recommendations, and the use of Dietary Reference Intakes (DRIs) for supported micronutrients.

POST /v2/daily_nutritional_goal/autocompute is a write operation: it calculates profile-based values and stores the available targets for user_id. The following examples use an APICompany or APIUserManager credential permitted to manage that user.

Default calculation (revised Harris–Benedict), without overwriting existing goals:

{
  "user_id": 1238,
  "force": false
}

Recalculate selected nutrients with the optional Mifflin–St Jeor method:

{
  "user_id": 1238,
  "bmr_formula": "mifflin_st_jeor",
  "nutrient_list": ["ENERC_KCAL", "CHOCDF", "PROCNT", "FAT"],
  "force": true
}
  • bmr_formula is optional; the default is "harris_benedict". The choice applies to the current autocompute operation, not a permanent user-profile preference. It is not a parameter of GET /v2/nutrition/getRecommendedDailyIntake.
  • nutrient_list optionally limits the calculation to named standard nutritional indicators. If it is omitted or empty, all supported standard indicators are considered.
  • force: false (the default) preserves existing saved targets and computes those not yet defined.
  • force: true replaces calculable targets within the selected scope. Automatically unsupported indicators cannot be computed: previously stored manual goals for them are preserved, rather than being deleted or replaced by null.
  • Recommendations depend on the completeness of the user profile and may be less personalized when information is missing.

Retrieval and further changes

  • GET /v2/daily_nutritional_goal returns persisted goal ranges; it does not run either energy equation again.
  • GET /v2/nutrition/getRecommendedDailyIntake returns on-demand recommendations while respecting previously configured goals; it does not create new goal records. For companies with access, it includes supported micronutrient recommendations.
  • POST /v2/daily_nutritional_goal can manually create or override a single nutrient goal. DELETE /v2/daily_nutritional_goal removes a saved goal; subsequent recommendations may then fall back to calculated values.
  • A later change in weight, height, age, or activity does not retroactively alter existing saved targets. Invoke autocompute again when you intend to replace them, selecting the desired nutrients and force setting.
  • Exception: updating a nonempty reference_nutrients list in the user profile automatically creates missing goals for the selected indicators (force: false behavior); it does not overwrite existing goals.
  • Assigning a Nutritional Plan may itself set or replace goals as part of the plan workflow.

The computed response provides each supported indicator's average_value, range, unit, and localized label. Automatic recommendations are general nutritional references; a dietitian can define more appropriate manual values for individual clinical needs.


Related Endpoints


Typical Workflow

For manually defined goals

  1. Fetch recommendations via GET /nutrition/getRecommendedDailyIntake, or compute targets from an active Nutritional Plan.
  2. Create/update goals with POST /daily_nutritional_goal.
  3. Retrieve & display goals using GET /daily_nutritional_goal.
  4. Use goals to compute Remaining Daily Intake and to power progress UIs; delete with DELETE /daily_nutritional_goal if you want to revert to recommendations.

For automatically defined goals

  1. Ensure user profile data includes sex, age, weight, height, and activity level, required for automatic calculations.
  2. Auto-generate goals via POST /daily_nutritional_goal/autocompute, which personalizes kcal, macros, and micronutrients based on the user profile.
  3. Nutritional Plans integration: assigning a plan automatically defines or updates the Daily Nutritional Goals required to accomplish it.
  4. Retrieve and display the computed targets using GET /daily_nutritional_goal.
  5. Re-compute when profile changes (e.g., weight or activity updates).
  6. Use these goals in progress dashboards for automatic tracking.

Did this page help you?