Food Restrictions & Diet Labels
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:
Accessible by the following User Types:
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.


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:
-
GET /info/foodLabels ā ā« š“ šµ List selectable Health and Diet labels and their localized display names. Pass an optional three-letter
languagecode (e.g.spa,eng,fre); otherwise the account's language is used. The JSON keys are the canonical values used in profile updates, while the translated values are for display. -
GET /profile/getUserProfileInfo ā š“ Retrieve a userās profile, including current restrictions and preferences.
-
GET /managers/getUserProfileInfo/{userId} ā ā« šµ Retrieve profile information for a specific managed user.
-
POST /profile/modifyUserProfileInfo ā š“ Add or modify user food restrictions directly within the user profile.
-
POST /managers/modifyUserProfileInfo/{userId} ā ā« šµ Add or modify restrictions for managed users.
Typical Workflow
- 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. - Retrieve current restrictions: call GET /profile/getUserProfileInfo to read
food_restrictions(Health labels) anddiet_preferences(Diet labels). - Add or update restrictions: submit the canonical keys from
/info/foodLabelsin thehealth_labelsand/ordiet_labelsarrays to POST /profile/modifyUserProfileInfo or the manager/company equivalent. Use[]to clear a selection; omit the field to retain it. - Validate meal compatibility: recommendations take these restrictions and preferences into account, subject to the rules supported by the recommendation feature.
Updated 17 days ago
