Merran documentation API & integrations
Put what planned meals are short of on the list
const url = 'http://localhost:3000/api/list/for-meals';const options = { method: 'POST', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"items":["0199e8b0-5a10-7a01-8b00-000000000026"]}'};
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/for-meals \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "items": [ "0199e8b0-5a10-7a01-8b00-000000000026" ] }'For planned meals on the list that are still to come: everything set aside for them in things used up, and what things at home don’t have enough of any more, which stops being set aside. Each goes on the list as those meals’ share, so the list follows the plan for it. The answer says what the list and the pantry were, for Undo with /list/restore and /pantry/restore. With an API key, it needs the list: write permission.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Things used up, as removing them said they were: all they were set aside for goes on the list.
Something at home as it was, to put it back (Undo).
object
Where it’s kept.
Example
2026-10-20object
How much of it was counted on when the meal went on the list, keeping that much off the list.
object
Example
{ "id": "0199e8b0-5a10-7a01-8b00-000000000026", "name": "chicken thighs", "foodKey": "chicken thigh", "quantity": 2, "unit": "pound", "amountText": null, "aisle": "0199e8b0-5a10-7a01-8b00-000000000021", "storedIn": "fridge", "useBy": "2026-10-18", "forMeals": [ { "meal": "0199e8b0-5a10-7a01-8b00-00000000001b", "quantity": 2, "unit": "pound", "counted": { "quantity": 2, "unit": "pound" } } ], "createdAt": "2026-10-15T18:30:00.000Z"}Things at home, by id: what there isn’t enough of any more goes on the list, and stops being set aside.
Example
{ "items": [ "0199e8b0-5a10-7a01-8b00-000000000026" ]}Responses
Section titled “Responses”On the list.
object
New lines on the list.
Lines added to ones already there.
The lines added to, as they were: for Undo with /list/restore.
An item as it was, to put it back (Undo).
object
How it got on the list: from the plan, typed in, every week, a usual buy, or the assistant.
object
What checking it off put in the pantry, so unchecking takes it back out.
object
The pantry item it went into; null for household things and staples.
It made that pantry item, rather than joining one already there.
It gave an amount to a pantry item that was there with none, so taking it back leaves that item with none again.
object
The purchase it recorded.
The new lines’ ids: for Undo with /list/restore.
Things at home as they were, for Undo with /pantry/restore.
Something at home as it was, to put it back (Undo).
object
Where it’s kept.
object
How much of it was counted on when the meal went on the list, keeping that much off the list.
object
Example
{ "added": 1, "merged": 0, "before": [], "remove": [ "0199e8b0-5a10-7a01-8b00-00000000001d" ], "pantry": []}Nothing to put on the list.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}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." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.