Food Restrictions & Diet Labels

Define and manage user-specific food restrictions, intolerances, or dietary exclusions. Ensure meal recommendations and plans respect each user’s unique needs.

Use this feature together with Nutritional Plans and Recipe and Dish Recommendations to generate truly personalized, compliant meal options.


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

Food Restrictions allow you to define what foods, ingredients, or nutrient categories a user cannot consume due to allergies, medical conditions, or preferences.
These restrictions can be automatically applied when generating meal recommendations, nutritional plans, or dish suggestions, ensuring safe and personalized outputs.

food restriction allergy gluten-free
meal plan filter dietary exclusions peanut allergy

When to Use It / Outcomes

  • You want to exclude allergens or disliked foods from user recommendations.
  • You need to enforce medical dietary rules (e.g., low sodium, gluten-free, lactose-free).
  • You manage large user groups with specific restrictions (e.g., vegan, halal, diabetic).
  • Output: JSON confirming restriction creation/update/deletion or a list of all restrictions defined per user.

Feature-Specific Details

  • Restriction types: Ingredients, dishes, allergens, nutrient-based thresholds, or tags (e.g., ā€œno porkā€, ā€œlow sodiumā€, ā€œavoid sugarā€).
  • Integration: restrictions are respected in Meal Recommendations, Nutritional Plans, and Goal Adjustments.
  • Personalization: each restriction is stored per user and can be updated at any time.
  • Localization: all restriction labels and nutrient names can be localized.

Related Endpoints

Use the following endpoints to discover, select, and manage food restrictions:


Typical Workflow

  1. Discover available labels: call GET /info/foodLabels with ?language=spa (or another supported code) to display Health and Diet labels in the user's preferred language.
  2. Retrieve current restrictions: call GET /profile/getUserProfileInfo to read food_restrictions (Health labels) and diet_preferences (Diet labels).
  3. Add or update restrictions: submit the canonical keys from /info/foodLabels in the health_labels and/or diet_labels arrays to POST /profile/modifyUserProfileInfo or the manager/company equivalent. Use [] to clear a selection; omit the field to retain it.
  4. Validate meal compatibility: recommendations take these restrictions and preferences into account, subject to the rules supported by the recommendation feature.

Did this page help you?