Recipes API
21 ops: list_recipes, get_recipe, create_recipe, save_recipe_version, compare_recipe_versions, promote_recipe_version, dismiss_recipe_version, record_recipe_cook, update_recipe, delete_recipe, add_recipe_note, delete_recipe_note, add_recipe_image, remove_recipe_image, create_recipe_upload_link, shar
list_recipes
readList recipes · POST /api/v1/list_recipes · scope recipes:read or GET …?input=
The person's saved recipes, most recently changed first: id, title, tags, the current version, how many versions there are, which version numbers are candidates waiting for a verdict, how often it was cooked, the current version's average rating, and whether it is shared. Filters: q (title, description or tag contains), tag, undecided (only recipes with a candidate), status (active by default). With pantry: true each recipe is compared with what is on hand (have, total, missing, uses_expiring) and the most cookable come first: use that for "what can I make tonight" or to use up food that is about to expire.
curl -X POST https://getgutlog.com/api/v1/list_recipes \ -H "Authorization: Bearer gutlog_…"npx @meterapp/gutlog list_recipes{
"type": "object",
"properties": {
"q": {
"description": "Title, description or tag contains.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"tag": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"status": {
"default": "active",
"type": "string",
"enum": [
"active",
"archived",
"all"
]
},
"undecided": {
"description": "Only recipes with a candidate version waiting for a decision.",
"type": "boolean"
},
"pantry": {
"default": false,
"description": "Compare each recipe's current version with what is on hand: adds `pantry` (have, total, missing, uses_expiring) and sorts the most cookable first. Use it for \"what can I make tonight\".",
"type": "boolean"
},
"limit": {
"default": 50,
"type": "integer",
"minimum": 1,
"maximum": 200
},
"offset": {
"default": 0,
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
}get_recipe
readGet a recipe · POST /api/v1/get_recipe · scope recipes:read or GET …?input=
One recipe at one version (current by default; a number or latest for another): ingredients with amounts and canonical ingredient ids, steps with their photos and notes, servings and times, the version's status and ratings; plus every version in brief (number, label, status, what changed, ratings), the recipe's own photos and notes, the last cooks, `watch` (ingredients on the person's own trigger or allergen list) and `next` (what to ask or do next). pantry: true adds what is on hand and what is missing. Call it before changing a recipe, so the new version starts from what is saved. Versions: the first is the current one (the status quo). Every change is a new version, a candidate until the person promotes it (it becomes current) or dismisses it (the current one stays); older versions are kept and can be promoted again.
curl -X POST https://getgutlog.com/api/v1/get_recipe \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog get_recipe --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"version": {
"default": "current",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
],
"description": "A version: its number (1, 2, 3…), \"current\" (the status quo) or \"latest\" (the newest one saved, often a candidate)."
},
"pantry": {
"default": false,
"description": "Also say which ingredients are on hand, which are missing and which use food that expires soon.",
"type": "boolean"
}
},
"required": [
"recipe_id"
]
}create_recipe
writeSave a new recipe · POST /api/v1/create_recipe · scope recipes:write
Save a recipe you and the person worked out, as version 1 (the current one). You write it: this stores it. Send the title, every ingredient (name, quantity, unit; grams when you can estimate them, so a serving can be logged with nutrients; note, optional, group) and the steps in order (sentences, or { text, minutes, tip }), plus servings, times, tags and where it was adapted from. To build it from what is in the kitchen, read get_raw_ingredients and list_expiring first. Returns the saved recipe as get_recipe does, with its id. To change a saved recipe use save_recipe_version, never create_recipe again.
curl -X POST https://getgutlog.com/api/v1/create_recipe \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"title":"Let me log a recipe once and reuse it","ingredients":[{"name":"scrambled eggs"}],"steps":["step"]}'npx @meterapp/gutlog create_recipe --json '{"title":"Let me log a recipe once and reuse it","ingredients":[{"name":"scrambled eggs"}],"steps":["step"]}'{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The dish: \"Weeknight dal\", \"Mum's lentil soup\"."
},
"description": {
"description": "A sentence or two on what it is and when to make it.",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"tags": {
"description": "Free tags for finding it later: \"weeknight\", \"low-fodmap\", \"freezes well\".",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"source_url": {
"description": "Where it was adapted from, when it was.",
"type": "string",
"maxLength": 2000,
"format": "starts_with",
"pattern": "^https:\\/\\/.*"
},
"ingredients": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "The ingredient as a cook would write it: \"yellow onion\", \"San Marzano tomatoes\". Resolved to a canonical ingredient when possible."
},
"quantity": {
"description": "How much, in `unit`. Omit for \"to taste\".",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100000
},
"unit": {
"description": "Any unit a cook uses: g, kg, oz, lb, ml, l, tsp, tbsp, cup, each, clove, can, pinch… Units the pantry knows are normalized (\"tablespoons\" → tbsp).",
"type": "string",
"minLength": 1,
"maxLength": 24
},
"grams": {
"description": "The weight in grams when you know or can estimate it; lets a cooked serving be logged with nutrients.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100000
},
"ingredient_id": {
"description": "Canonical ingredient id, when you know it. Omit to resolve from the name.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"note": {
"description": "Preparation or detail: \"finely diced\", \"room temperature\".",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"optional": {
"description": "True when the dish works without it.",
"type": "boolean"
},
"group": {
"description": "A sub-heading when the list has parts: \"For the sauce\".",
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"name"
]
},
"description": "Everything that goes in, in the order it is used."
},
"steps": {
"minItems": 1,
"maxItems": 80,
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 2000
},
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "One instruction, in the imperative."
},
"minutes": {
"description": "How long this step takes, when it matters.",
"type": "number",
"minimum": 0,
"maximum": 10000
},
"tip": {
"description": "A hint, a doneness cue or what to watch for.",
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"required": [
"text"
]
}
]
},
"description": "The method, one step per entry, as sentences or { text, minutes, tip }."
},
"servings": {
"description": "How many servings it makes.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"yield": {
"description": "What it makes when servings is not the natural unit: \"one 9-inch loaf\", \"24 cookies\".",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"prep_minutes": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"cook_minutes": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"equipment": {
"description": "What is needed beyond a knife and a pan: \"Dutch oven\", \"stand mixer\".",
"maxItems": 40,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"note": {
"description": "A first note to keep with it (why it exists, what to try next).",
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"client": {
"description": "Which assistant is calling (claude, chatgpt, cursor…), for provenance.",
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"required": [
"title",
"ingredients",
"steps"
]
}save_recipe_version
writeSave a new version of a recipe · POST /api/v1/save_recipe_version · scope recipes:write
Save a change to a recipe as a new version: less salt, a swap for what is in the pantry, a different method. Send change_summary (what changed and why) and only the parts that changed: ingredients and steps are full replacements of the list, everything omitted is copied from based_on (the current version by default). It is saved as a candidate and the current version stays the standard, unless promote: true (use that only when the person says the change is simply a correction). Photos of unchanged steps carry over. Returns the version, what differs from its parent, and what to do next: cook it, record_recipe_cook, then promote_recipe_version or dismiss_recipe_version. Versions: the first is the current one (the status quo). Every change is a new version, a candidate until the person promotes it (it becomes current) or dismisses it (the current one stays); older versions are kept and can be promoted again.
curl -X POST https://getgutlog.com/api/v1/save_recipe_version \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","change_summary":"change_summary"}'npx @meterapp/gutlog save_recipe_version --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","change_summary":"change_summary"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"based_on": {
"default": "current",
"description": "The version this change starts from. Default current. Fields you omit are copied from it.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"change_summary": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "What changed and why, in a sentence: \"Half the salt, added lemon at the end: v1 was flat\". Shown when comparing versions."
},
"label": {
"description": "A short name for the version: \"less salt\", \"air fryer\".",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"ingredients": {
"description": "The full new ingredient list (not a patch). Omit to keep the parent's.",
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "The ingredient as a cook would write it: \"yellow onion\", \"San Marzano tomatoes\". Resolved to a canonical ingredient when possible."
},
"quantity": {
"description": "How much, in `unit`. Omit for \"to taste\".",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100000
},
"unit": {
"description": "Any unit a cook uses: g, kg, oz, lb, ml, l, tsp, tbsp, cup, each, clove, can, pinch… Units the pantry knows are normalized (\"tablespoons\" → tbsp).",
"type": "string",
"minLength": 1,
"maxLength": 24
},
"grams": {
"description": "The weight in grams when you know or can estimate it; lets a cooked serving be logged with nutrients.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100000
},
"ingredient_id": {
"description": "Canonical ingredient id, when you know it. Omit to resolve from the name.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"note": {
"description": "Preparation or detail: \"finely diced\", \"room temperature\".",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"optional": {
"description": "True when the dish works without it.",
"type": "boolean"
},
"group": {
"description": "A sub-heading when the list has parts: \"For the sauce\".",
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"name"
]
}
},
"steps": {
"description": "The full new method (not a patch). Omit to keep the parent's. Photos of steps whose text is unchanged carry over.",
"minItems": 1,
"maxItems": 80,
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 2000
},
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "One instruction, in the imperative."
},
"minutes": {
"description": "How long this step takes, when it matters.",
"type": "number",
"minimum": 0,
"maximum": 10000
},
"tip": {
"description": "A hint, a doneness cue or what to watch for.",
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"required": [
"text"
]
}
]
}
},
"servings": {
"description": "How many servings it makes.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"yield": {
"description": "What it makes when servings is not the natural unit: \"one 9-inch loaf\", \"24 cookies\".",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"prep_minutes": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"cook_minutes": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"equipment": {
"description": "What is needed beyond a knife and a pan: \"Dutch oven\", \"stand mixer\".",
"maxItems": 40,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"promote": {
"default": false,
"description": "Make it the current version right away. Default false: it is a candidate until the person has cooked it and says it is better.",
"type": "boolean"
},
"client": {
"description": "Which assistant is calling (claude, chatgpt, cursor…), for provenance.",
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"required": [
"recipe_id",
"change_summary"
]
}Compare two versions of a recipe · POST /api/v1/compare_recipe_versions · scope recipes:read or GET …?input=
Two versions side by side (the current one against the latest by default): ingredients added, removed and changed, steps added and removed, changed servings and times, each version's cooks, average rating, would-make-again answers and what the person said about it. When the base is current and the other is a candidate, `suggestion` says what the ratings point to (promote, keep_current, cook_first, cook_again) with the reason. Use it to help the person decide which one is better; they decide.
curl -X POST https://getgutlog.com/api/v1/compare_recipe_versions \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog compare_recipe_versions --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"base": {
"default": "current",
"description": "The version to compare from. Default current.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"against": {
"default": "latest",
"description": "The version to compare with. Default latest.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
}
},
"required": [
"recipe_id"
]
}Make a version the current one · POST /api/v1/promote_recipe_version · scope recipes:write
Make a version the recipe's current one, the new standard: after the person has said the change was better. The version it replaces is kept and can be promoted again (that is also how to go back). A shared link shows the newly promoted version from then on. Only on the person's word; never because the ratings alone suggest it.
curl -X POST https://getgutlog.com/api/v1/promote_recipe_version \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog promote_recipe_version --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"version": {
"default": "latest",
"description": "The version to decide on. Default latest.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
}
},
"required": [
"recipe_id"
]
}Keep the current version · POST /api/v1/dismiss_recipe_version · scope recipes:write
Turn a candidate version down: the person tried it and prefers the current one, or no longer wants to try it. The current version stays; the dismissed one is kept in the history with the reason and can still be promoted later. Not for the current version itself.
curl -X POST https://getgutlog.com/api/v1/dismiss_recipe_version \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog dismiss_recipe_version --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"version": {
"default": "latest",
"description": "The version to decide on. Default latest.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"reason": {
"description": "Why the current one stays: \"too sweet\", \"not worth the extra hour\".",
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"required": [
"recipe_id"
]
}record_recipe_cook
writeRecord cooking a recipe · POST /api/v1/record_recipe_cook · scope recipes:write
Record that a version was cooked and how it turned out: the rating (1–5, from the person), would_make_again, and their notes on what worked and what to change. This feedback is what decides between versions, so record it each time, for the version that was actually cooked (current by default). Pass cook_id to add a rating or notes to an earlier cook instead. Returns the version's and the current version's ratings, a `suggestion` when a candidate now has a verdict, `log_meal_recipe` (pass it as log_meal's `recipe` to put a serving in the diary) and what to ask next. Take what was used out of the pantry with consume_pantry_items.
curl -X POST https://getgutlog.com/api/v1/record_recipe_cook \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog record_recipe_cook --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"version": {
"default": "current",
"description": "The version that was cooked. Default current; say the number when a candidate was cooked.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"cook_id": {
"description": "An earlier cook to add the rating or notes to (from get_recipe_nudges or a previous call) instead of recording a new one.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"cooked_on": {
"description": "The day it was cooked (YYYY-MM-DD). Default today.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"rating": {
"description": "How it turned out, 1 (would not eat again) to 5 (best yet). Ask the person; do not guess.",
"type": "integer",
"minimum": 1,
"maximum": 5
},
"would_make_again": {
"type": "boolean"
},
"notes": {
"description": "What they said about it: what worked, what to change next time.",
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"servings": {
"description": "How many servings were made, when not the recipe's.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"meal_id": {
"description": "The diary meal it became, when it was logged.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"recipe_id"
]
}update_recipe
writeUpdate a recipe's details · POST /api/v1/update_recipe · scope recipes:write
Change what is not part of a version: the title, description, tags, the source it was adapted from, or archive it (archived: true hides it from list_recipes, nothing is deleted). Ingredients, steps, servings and times change only through save_recipe_version.
curl -X POST https://getgutlog.com/api/v1/update_recipe \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog update_recipe --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 2000
},
{
"type": "null"
}
]
},
"tags": {
"description": "Replaces the tags.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"source_url": {
"anyOf": [
{
"type": "string",
"maxLength": 2000,
"format": "starts_with",
"pattern": "^https:\\/\\/.*"
},
{
"type": "null"
}
]
},
"archived": {
"description": "true hides it from list_recipes (nothing is deleted); false brings it back.",
"type": "boolean"
}
},
"required": [
"recipe_id"
]
}delete_recipe
writeDelete a recipe · POST /api/v1/delete_recipe · scope recipes:write
Delete a recipe for good: every version, its cooks, notes and photos, and its shared link. Cannot be undone; to put it out of the way use update_recipe { archived: true } instead. Only on the person's clear request.
curl -X POST https://getgutlog.com/api/v1/delete_recipe \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog delete_recipe --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
}
},
"required": [
"recipe_id"
]
}add_recipe_note
writeAdd a note to a recipe · POST /api/v1/add_recipe_note · scope recipes:write
Keep a note in the person's words: on the recipe as a whole ("Dad likes it with rice"), on one version (version), or on one step of a version (version and step: "my oven runs hot, 12 minutes was enough"). Notes are optional, private unless the person shares the recipe with include_notes, and come back with get_recipe. For how a cook turned out use record_recipe_cook instead.
curl -X POST https://getgutlog.com/api/v1/add_recipe_note \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","body":"I cook the same chili every week and re-enter it each time."}'npx @meterapp/gutlog add_recipe_note --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","body":"I cook the same chili every week and re-enter it each time."}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "The note, in the person's words."
},
"version": {
"description": "Attach it to one version. Omit for a note on the recipe as a whole.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"step": {
"description": "Attach it to one step of that version (1 = the first step). Needs version.",
"type": "integer",
"minimum": 1,
"maximum": 80
}
},
"required": [
"recipe_id",
"body"
]
}delete_recipe_note
writeDelete a recipe note · POST /api/v1/delete_recipe_note · scope recipes:write
Delete one of the person's notes on a recipe, a version or a step, by its id (from get_recipe). The recipe and its versions are untouched.
curl -X POST https://getgutlog.com/api/v1/delete_recipe_note \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"note_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog delete_recipe_note --json '{"note_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"note_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Note id from get_recipe."
}
},
"required": [
"note_id"
]
}add_recipe_image
writeAdd an image to a recipe · POST /api/v1/add_recipe_image · scope recipes:write
Attach an image to a recipe (its cover and gallery), to one version (how that version turned out) or to one step of a version. Send image as { url } (a public https link we download and keep a copy of: an image you generated and hosted, a photo already online) or { data, media_type } (base64, for agents that hold the bytes: coding agents, the CLI, the API). In a chat where you have neither (a photo the person attached, an image you made that has no public URL) call create_recipe_upload_link and give the person the link instead. Set generated: true for an image a model made. JPEG, PNG, WebP or GIF; camera location data is removed. Images are optional.
curl -X POST https://getgutlog.com/api/v1/add_recipe_image \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","image":{"data":"data","media_type":"image/jpeg"}}'npx @meterapp/gutlog add_recipe_image --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","image":{"data":"data","media_type":"image/jpeg"}}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"image": {
"anyOf": [
{
"type": "object",
"properties": {
"data": {
"type": "string",
"minLength": 100,
"maxLength": 6000000,
"description": "The image, base64-encoded (no data: prefix), at most ~4 MB. Only for agents that hold the bytes (a coding agent, the CLI, the API): a chat assistant cannot read an attachment's bytes."
},
"media_type": {
"type": "string",
"enum": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
]
}
},
"required": [
"data",
"media_type"
]
},
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2000,
"format": "starts_with",
"pattern": "^https:\\/\\/.*",
"description": "A public https URL of the image; we download and keep a copy (at most 10 MB). The URL must load without a sign-in."
}
},
"required": [
"url"
]
}
],
"description": "The image: { data, media_type } or { url }. In a chat with neither, call create_recipe_upload_link and give the person the link."
},
"version": {
"description": "Attach it to one version (how that version turned out). Omit for the recipe's cover and gallery, shown for every version.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"step": {
"description": "Attach it to one step of that version (1 = the first step). Needs version.",
"type": "integer",
"minimum": 1,
"maximum": 80
},
"caption": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"alt": {
"description": "What the image shows, for screen readers and when it cannot load.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"generated": {
"default": false,
"description": "true when an image model made it rather than a camera; the shared page says so.",
"type": "boolean"
}
},
"required": [
"recipe_id",
"image"
]
}remove_recipe_image
writeRemove a recipe image · POST /api/v1/remove_recipe_image · scope recipes:write
Remove one image by its id (from get_recipe). A step photo carried over to newer versions is removed only from the version this id belongs to.
curl -X POST https://getgutlog.com/api/v1/remove_recipe_image \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"image_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog remove_recipe_image --json '{"image_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"image_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Image id from get_recipe."
}
},
"required": [
"image_id"
]
}Get a link to add recipe photos · POST /api/v1/create_recipe_upload_link · scope recipes:write
A short-lived link the person opens on their phone or computer to add photos to a recipe, a version or a step, with no sign-in. This is how photos get in from a chat: an assistant in ChatGPT or Claude can see an attached photo but cannot pass its bytes to a tool. Give them upload_url as it is; it expires (60 minutes by default) and accepts max_images photos. Call get_recipe afterwards to see what arrived.
curl -X POST https://getgutlog.com/api/v1/create_recipe_upload_link \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'npx @meterapp/gutlog create_recipe_upload_link --json '{"recipe_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Recipe id (recipes.id), from list_recipes or create_recipe."
},
"version": {
"description": "Photos from this link attach to one version. Omit for the recipe's gallery.",
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "string",
"enum": [
"current",
"latest"
]
}
]
},
"step": {
"description": "…or to one step of that version.",
"type": "integer",
"minimum": 1,
"maximum": 80
},
"max_images": {
"default": 12,
"description": "How many photos the link accepts.",
"type": "integer",
"minimum": 1,
"maximum": 40
},
"expires_in_minutes": {
"default": 60,
"type": "integer",
"minimum": 5,
"maximum": 1440
}
},
"required": [
"recipe_id"
]
}What recipes are waiting on the person · POST /api/v1/get_recipe_nudges · scope recipes:read or GET …?input=
What is waiting for the person across their recipes, most useful first: candidate versions whose ratings now point to a verdict (promote, or dismiss), cooks with no rating yet, and candidates saved but never cooked. Each has `ask` (a question to put to them) and `then` (the call that records their answer). Call it when a conversation turns to cooking or recipes and bring up one or two; never decide for them. Also says whether the weekly reminder email is on (set_recipe_reminders).
curl -X POST https://getgutlog.com/api/v1/get_recipe_nudges \ -H "Authorization: Bearer gutlog_…"npx @meterapp/gutlog get_recipe_nudges{
"type": "object",
"properties": {}
}set_recipe_reminders
writeSet recipe reminders · POST /api/v1/set_recipe_reminders · scope recipes:write
Turn the weekly recipe reminder email on or off: one email in a week that has something waiting (a version to promote or drop, a cook with no rating), none otherwise, with counts only and no recipe content. The email is part of Plus; get_recipe_nudges gives the same prompts in chat on every plan. Off by default; only on the person's request.
curl -X POST https://getgutlog.com/api/v1/set_recipe_reminders \ -H "Authorization: Bearer gutlog_…" \ -H "Content-Type: application/json" \ -d '{"email":"off"}'npx @meterapp/gutlog set_recipe_reminders --json '{"email":"off"}'{
"type": "object",
"properties": {
"email": {
"type": "string",
"enum": [
"off",
"weekly"
],
"description": "weekly: one email a week when versions are waiting for a verdict or cooks have no rating; off: none."
}
},
"required": [
"email"
]
}