Merran documentation API & integrations
Undo adding a recipe to the list
POST
/api/list/recipes/undo
const url = 'http://localhost:3000/api/list/recipes/undo';const options = { method: 'POST', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"entry":"0199e8b0-5a10-7a01-8b00-00000000001b","made":true,"servings":null}'};
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/undo \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "entry": "0199e8b0-5a10-7a01-8b00-00000000001b", "made": true, "servings": null }'Takes undo from adding a recipe to the list. A meal it made comes off the plan, and so off the list. One that was planned already stays on the plan, off the list again, with its servings as they were. Needs only list write, like adding. With an API key, it needs the list: write permission.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
entry
required
The meal.
string
made
required
Adding made the meal, so Undo takes it off the plan; otherwise it was planned already, and stays.
boolean
servings
required
The meal’s servings before, for one planned already.
number | null
Example
{ "entry": "0199e8b0-5a10-7a01-8b00-00000000001b", "made": true, "servings": null}Responses
Section titled “Responses”Undone.
Media typeapplication/json
object
done
required
boolean
Example
{ "done": true}That meal wasn’t made by adding a recipe to the list.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not signed in.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}That meal isn’t on the plan.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
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.