Merran documentation API & integrations
What could have run out cooking a meal
GET
/api/pantry/ran-out
const url = 'http://localhost:3000/api/pantry/ran-out?meal=0199e8b0-5a10-7a01-8b00-00000000001b';const options = { method: 'GET', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/pantry/ran-out?meal=0199e8b0-5a10-7a01-8b00-00000000001b' \ --cookie merran.session_token=<merran.session_token>The foods a meal’s recipe and side take, each once, for asking what ran out: always-on-hand foods like salt among them, water left out. A note meal has none. With an API key, it needs the pantry: read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”meal
required
The cooked meal.
string format: uuid
Example
0199e8b0-5a10-7a01-8b00-00000000001bThe cooked meal.
Responses
Section titled “Responses”What could have run out.
Media typeapplication/json
object
foods
required
Each food once: the recipe’s in order, then its side’s. Water is left out.
Array<object>
object
food
required
The food, as the pantry and the list know it.
string
name
required
string
staple
required
One of the household’s always-on-hand foods.
boolean
Example
{ "foods": [ { "food": "chicken thigh", "name": "chicken thighs", "staple": false }, { "food": "salt", "name": "salt", "staple": true } ]}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." } }}No such meal.
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.