Merran documentation API & integrations
Still cooking
const url = 'http://localhost:3000/api/cooking/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"servings":6}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/cooking/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "servings": 6 }'Cook view checks in every 5 minutes while it’s open and on screen, when it’s on screen again, and when servings change. A session with no word for 30 minutes and no timer running ends. Checking in calls off an ending that was coming: a reload’s page going away, or leaving with a timer running. Sends nothing. With an API key, it needs the plan: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
How many servings it’s making, as cook view shows them. Null for a recipe that doesn’t say.
Example
{ "servings": 6}Responses
Section titled “Responses”Still cooking.
object
Who’s cooking. Null if they’ve left Merran.
object
object
Its page in Merran. Null when the server has no public address (MERRAN_PUBLIC_URL).
The recipe cooked with it as a pairing, if any.
object
Its page in Merran. Null when the server has no public address (MERRAN_PUBLIC_URL).
The planned meal it’s cooked for, if any.
object
The meal’s entry in the plan.
Its day, as YYYY-MM-DD. For a meal in the week’s pool, the first day of that week.
Whether it’s in the week’s pool, waiting for a day, rather than planned for one.
The recipe’s name, or the note for a meal that’s only a note.
The recipe. Null for a meal that’s only a note, or one whose recipe is in Recently deleted.
object
Its page in Merran. Null when the server has no public address (MERRAN_PUBLIC_URL).
The side dish, if it has one. Null while it’s in Recently deleted, as the plan leaves it out.
object
Its page in Merran. Null when the server has no public address (MERRAN_PUBLIC_URL).
When cook view last said it’s still cooking.
Cook view was left with a timer still running, or its page went away a moment ago: it ends when the timers are done, or in a minute.
Its running timers, the soonest first.
object
The timer’s id, which cook view picked when it started.
What it’s for, like “Simmer the sauce” or “10 minutes”.
How long it runs, in seconds: its length when started, with each minute added.
When it goes off, by the server’s clock: cook view says how many seconds are left, not when.
Example
{ "id": "0199e8b0-5a10-7a01-8b00-000000000037", "cook": { "id": "0199e8b0-5a10-7a01-8b00-000000000001", "name": "Sam Rivera" }, "recipe": { "id": "0199e8b0-5a10-7a01-8b00-000000000006", "slug": "lemon-chicken", "title": "Lemon Chicken", "url": "https://merran.example.com/recipes/lemon-chicken" }, "with": null, "meal": null, "servings": 4, "startedAt": "2026-10-15T18:30:00.000Z", "heardAt": "2026-10-15T18:30:00.000Z", "leaving": false, "endedAt": null, "outcome": null, "timers": [ { "id": "t-4f2a", "label": "Simmer the sauce", "seconds": 600, "endsAt": "2026-10-15T18:40:00.000Z" } ]}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 cooking session of yours, or it’s ended: start a new one.
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.