Get Diet Types
Retrieve all available diet type options.Authentication
This endpoint does not require authentication.Request
No parameters required.Response
Returns an array of diet type objects.Diet type ID
Diet type name (lowercase)Available diet types:
high_protein- High protein dietlow_carb- Low carbohydrate dietvegan- Plant-based diet (no animal products)vegetarian- Vegetarian diet (no meat)low_calorie- Low calorie diethigh_fiber- High fiber diethigh_carb- High carbohydrate diet
Example Request
Example Response
Get Dietary Restrictions
Retrieve all available dietary restriction options.Authentication
This endpoint does not require authentication.Request
No parameters required.Response
Returns an array of dietary restriction objects.Restriction ID
Restriction name (lowercase)Examples:
gluten free, lactose intolerance, nut allergy, shellfish allergyExample Request
Example Response
Get Taste Preferences
Retrieve all available taste preference options.Authentication
This endpoint does not require authentication.Request
No parameters required.Response
Returns an array of taste preference objects.Taste preference ID
Taste preference name (lowercase)Examples:
spicy, sweet, savory, sour, bitterExample Request
Example Response
Usage in Profile
These preference endpoints are typically used in the following workflow:- Fetch available options - Call these endpoints to get lists of available diet types, restrictions, and tastes
- Display to user - Show these options in your UI for the user to select
- Submit with profile - Include selected preferences when calling the Update Profile endpoint
Example Workflow
Notes
- All three endpoints are public and do not require authentication
- Names are stored and returned in lowercase
- When updating a profile, you can reference existing items by
idor create new ones by only providing thename - Diet types are predefined enums and must match one of the allowed values
- Restrictions and tastes can be custom values entered by users
