Daily Nutritional Goals
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:
Accessible by the following User Types:
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.


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. Withforce: 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_formulais 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 ofGET /v2/nutrition/getRecommendedDailyIntake.nutrient_listoptionally 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: truereplaces 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 bynull.- 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_goalreturns persisted goal ranges; it does not run either energy equation again.GET /v2/nutrition/getRecommendedDailyIntakereturns 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_goalcan manually create or override a single nutrient goal.DELETE /v2/daily_nutritional_goalremoves 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
forcesetting. - Exception: updating a nonempty
reference_nutrientslist in the user profile automatically creates missing goals for the selected indicators (force: falsebehavior); 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
-
GET /daily_nutritional_goal → ⚫ 🔴 🔵 Retrieve the user's current daily nutritional goals.
-
POST /daily_nutritional_goal → ⚫ 🔴 🔵 Create or update daily nutritional goals for the user.
-
DELETE /daily_nutritional_goal → ⚫ 🔴 🔵 Delete the user's daily nutritional goals.
-
POST /daily_nutritional_goal/autocompute → ⚫ 🔵 Automatically personalize daily nutritional goals using the user profile info (sex, age, weight, height and activity level).
-
Optional helpers:
- GET /nutrition/getRecommendedDailyIntake → 🔴 Baseline recommendations to initialize goals.
Typical Workflow
For manually defined goals
- Fetch recommendations via GET /nutrition/getRecommendedDailyIntake, or compute targets from an active Nutritional Plan.
- Create/update goals with POST /daily_nutritional_goal.
- Retrieve & display goals using GET /daily_nutritional_goal.
- 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
- Ensure user profile data includes sex, age, weight, height, and activity level, required for automatic calculations.
- Auto-generate goals via POST /daily_nutritional_goal/autocompute, which personalizes kcal, macros, and micronutrients based on the user profile.
- Nutritional Plans integration: assigning a plan automatically defines or updates the Daily Nutritional Goals required to accomplish it.
- Retrieve and display the computed targets using GET /daily_nutritional_goal.
- Re-compute when profile changes (e.g., weight or activity updates).
- Use these goals in progress dashboards for automatic tracking.
Updated 13 days ago
