Merran documentation API & integrations
Add a recipe to the list
const url = 'http://localhost:3000/api/list/recipes';const options = { method: 'POST', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"recipe":"lemon-chicken","withRecipe":"garlic-rice","servings":8}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/list/recipes \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "recipe": "lemon-chicken", "withRecipe": "garlic-rice", "servings": 8 }'A recipe’s ingredients on the list without planning a day for it, as Add from plan would put them, the list following that meal from then on. A meal of the recipe planned already from today to the end of the week, and not on the list yet, goes on, with the servings given. Otherwise a new one goes in the week’s any-day meals. The week is the one with tomorrow in it, so on its last day it’s next week. Every-week items don’t come along. Give undo to /list/recipes/undo to take it back. With an API key, it needs the list: write permission.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The recipe, by id or address.
A side or sauce it’s made with, by id or address.
None for the recipe’s own servings.
It’s made today, so it goes in this week’s any-day meals even on the week’s last day, when it would otherwise go in next week’s.
Example
{ "recipe": "lemon-chicken", "withRecipe": "garlic-rice", "servings": 8}Responses
Section titled “Responses”On the list.
object
object
Its day, or for the week’s pool, the week’s first day.
In the week’s pool: for any day of the week.
Its place among the meal’s dishes.
Null for a note.
object
Its photo as a small square, for small tiles.
In a serving, when its nutrition is known.
What it’s made with: “with peanut sauce”.
object
A meal that isn’t a recipe: “leftovers”.
Null for the recipe’s own servings.
Why it was picked, when Fill the week picked it: none otherwise.
Why a meal was picked: the night’s theme (“Taco night”), or one nothing fitted; food at home it uses up; food on sale at the household’s store; never made; not had in so many weeks; rated so many stars; quick enough for a weeknight. And, after those, the foods to leave out of it for someone who doesn’t like them.
object
object
object
object
One is the lowest it’s been in a while.
object
object
object
object
object
object
Ingredients and instructions saved for one planned meal; the library recipe stays separate. Nutrition must be recalculated for substitutions.
object
object
The line as written.
What it is to the dish, as tidy up marked it: needed, swappable or optional. A dislike is left out of lines that aren’t needed. None until marked.
object
It made the meal, in the week’s any-day meals; false when a meal of the recipe planned already went on the list.
object
The meal.
Adding made the meal, so Undo takes it off the plan; otherwise it was planned already, and stays.
The meal’s servings before, for one planned already.
New lines on the list.
Lines added to ones already there.
Left off: always on hand.
Left off: at home already, and now set aside for it.
Example
{ "entry": { "id": "0199e8b0-5a10-7a01-8b00-00000000001b", "date": "2026-10-12", "anyDay": true, "meal": "dinner", "position": 0, "status": "planned", "recipe": { "id": "0199e8b0-5a10-7a01-8b00-000000000006", "slug": "lemon-chicken", "name": "Lemon Chicken", "photo": null, "thumb": null, "servings": 4, "totalMinutes": 50, "calories": 412 }, "withRecipe": { "id": "0199e8b0-5a10-7a01-8b00-000000000007", "slug": "garlic-rice", "name": "Garlic Rice", "calories": 210 }, "note": null, "servings": null, "why": [ { "kind": "theme", "label": "Taco night" } ], "createdAt": "2026-10-15T18:30:00.000Z", "variants": [] }, "made": true, "undo": { "entry": "0199e8b0-5a10-7a01-8b00-00000000001b", "made": true, "servings": null }, "added": 6, "merged": 1, "onHand": [ "salt" ], "inPantry": []}Not signed in.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}No such recipe.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.