Merran documentation API & integrations
Change what the household eats
const url = 'http://localhost:3000/api/households/current/tastes';const options = { method: 'PUT', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"avoid":[{"food":"peanuts","level":"allergy","who":"Sam"},{"food":"mushrooms","level":"leave-out","who":"Emma"}],"diets":[],"weeknightMinutes":45}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:3000/api/households/current/tastes \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "avoid": [ { "food": "peanuts", "level": "allergy", "who": "Sam" }, { "food": "mushrooms", "level": "leave-out", "who": "Emma" } ], "diets": [], "weeknightMinutes": 45 }'Anyone in the household can: everyone eats. Replaces them all; a food listed twice is kept once, as an allergy if either says so. With an API key, it needs the plan: write permission.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Foods the household doesn’t eat.
object
How firmly: an allergy or never, and recipes with it aren’t suggested; leave-out, and they are, with it crossed off, unless it’s what the dish is or the recipe needs it. Nuts, dairy, gluten, eggs and meat can’t be left out, so they’re saved as never.
Who doesn’t eat it, when it isn’t everyone.
Diets every meal must fit.
The longest a dinner Monday to Thursday can take.
Example
{ "avoid": [ { "food": "peanuts", "level": "allergy", "who": "Sam" }, { "food": "mushrooms", "level": "leave-out", "who": "Emma" } ], "diets": [], "weeknightMinutes": 45}Responses
Section titled “Responses”Saved.
object
Foods the household doesn’t eat.
object
How firmly: an allergy or never, and recipes with it aren’t suggested; leave-out, and they are, with it crossed off, unless it’s what the dish is or the recipe needs it. Nuts, dairy, gluten, eggs and meat can’t be left out, so they’re saved as never.
Who doesn’t eat it, when it isn’t everyone.
Diets every meal must fit.
The longest a dinner Monday to Thursday can take.
Example
{ "avoid": [ { "food": "peanuts", "level": "allergy", "who": "Sam" }, { "food": "mushrooms", "level": "leave-out", "who": "Emma" } ], "diets": [], "weeknightMinutes": 45}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.