The fridge API manages a user’s ingredient inventory. Each user has exactly one fridge, provisioned automatically. Ingredients are organized into named groups of your choosing (e.g. “Proteins”, “Vegetables”, “Pantry”). The grocery planner cross-references fridge contents when generating a shopping list — ingredients already in the fridge are separated into anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/viet2811/ocipe/llms.txt
Use this file to discover all available pages before exploring further.
others list so you know what you already have on hand.
Get fridge contents
GET /api/fridge/
Returns the authenticated user’s fridge with all ingredients organized by group. Groups are returned in reverse alphabetical order; ingredients within each group are ordered by insertion ID.
Authentication: Required — Authorization: Bearer <access_token>
Response
A dictionary keyed by group name. Each value is an array of ingredient objects containing
id (integer — the FridgeIngredient row ID) and name (string).Add an ingredient
POST /api/fridge/ingredient/
Adds a new ingredient to the authenticated user’s fridge. If an ingredient with the same name does not yet exist for this user in the recipes ingredient pool, it is created automatically.
Authentication: Required — Authorization: Bearer <access_token>
Request body
The ingredient name to add.
The group to place the ingredient in. Use an existing group name to add to that group, or supply a new name to create a group on the fly.
Response
Returns the createdFridgeIngredient object.
The FridgeIngredient row ID (used for update and delete operations).
The group the ingredient was placed in.
Update an ingredient
PUT /api/fridge/ingredient/{id}/
Updates the name or group of an existing fridge ingredient. Both fields must be supplied. To move an ingredient to a different group, keep the same name and change group.
Authentication: Required — Authorization: Bearer <access_token>
Path parameters
The FridgeIngredient ID (from the
id field returned by the list or create endpoints).Request body
The new ingredient name. If unchanged, pass the existing name.
The new group name. If unchanged, pass the existing group.
Response
Returns the updatedFridgeIngredient object.
Delete an ingredient
DELETE /api/fridge/ingredient/{id}/
Removes a single ingredient from the fridge.
Authentication: Required — Authorization: Bearer <access_token>
Path parameters
The FridgeIngredient ID to delete.
Response
Returns204 No Content on success with an empty body.
Rename a group
PUT /api/fridge/ingredient/group/{group_name}
Renames a group by updating the group field on every ingredient that belongs to it. All ingredients in the group move to the new name atomically.
Authentication: Required — Authorization: Bearer <access_token>
Path parameters
The current name of the group to rename.
Request body
The new name for the group. Returns
400 Bad Request if this field is missing.Response
Returns200 OK with an empty body on success.
Delete a group
DELETE /api/fridge/ingredient/group/{group_name}
Deletes all ingredients that belong to the specified group.
Authentication: Required — Authorization: Bearer <access_token>
Path parameters
The name of the group whose ingredients should be deleted.
Response
Returns200 OK with an empty body on success.