Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Time to start cooking

POST

Sent when it’s time to start cooking a planned meal: when it’s served, less its longest dish’s total time (or prep and cook time added up). A meal whose dishes don’t say how long they take sends nothing, nor does the pool. Each meal sends it once, up to 15 minutes late, so a meal planned after its start time has gone by sends nothing.

webhook-id
required

This delivery’s id. It stays the same on every retry, so a receiver can use it to ignore one it has handled already.

string

Example

msg_2KWPBgLlAfxdpx2AI54pPJ85f4W

This delivery’s id. It stays the same on every retry, so a receiver can use it to ignore one it has handled already.

webhook-timestamp
required

When this attempt was sent, in seconds since 1970. It changes on every retry. Receivers should refuse one that’s far from now.

string

Example

1731268800

When this attempt was sent, in seconds since 1970. It changes on every retry. Receivers should refuse one that’s far from now.

webhook-signature
required

v1, and a base64 HMAC-SHA256 signature of {webhook-id}.{webhook-timestamp}.{body}, made with the webhook’s secret. Several, separated by spaces, while a secret is being replaced.

string

Example

v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=

v1, and a base64 HMAC-SHA256 signature of {webhook-id}.{webhook-timestamp}.{body}, made with the webhook’s secret. Several, separated by spaces, while a secret is being replaced.

Media typeapplication/json
object
type
required
string
Allowed values: meal.time_to_start
timestamp
required

When it happened, which isn’t always when it’s sent: deliveries can arrive out of order. A gathered event happened when the last change in it was made.

string
data
required
object
household
required
object
id
required
string
name
required
string

Example

{
"id": "0199e8b0-5a10-7a01-8b00-000000000003",
"name": "The Riveras"
}
by
required

Who did it. Null when Merran did it on its own: a schedule, a timer going off, or work it does in the background, like importing a batch of links.

object
id
required
string
name
required
string

Example

{
"id": "0199e8b0-5a10-7a01-8b00-000000000001",
"name": "Sam Rivera"
}
via
required

How it was done: app by someone signed in, api with an API key or OAuth connection on the REST API, mcp by an AI app through /mcp, or merran by Merran on its own.

string
Allowed values: app api mcp merran
key
required

The API key or OAuth connection used, for api and mcp. Null otherwise.

object
id
required
string
name
required
string

Example

{
"id": "0199e8b0-5a10-7a01-8b00-000000000009",
"name": "Home Assistant"
}
date
required

The meal’s day, as YYYY-MM-DD.

string
meal
required
string
Allowed values: breakfast lunch dinner snack
time
required

When it’s served, as HH:mm on the household’s clock: the time set for that meal on that day, or the household’s usual time for the meal.

string
serveAt
required

When it’s served, as an instant.

string
startAt
required

When to start cooking: when it’s served, less its longest dish’s time.

string
minutes
required

How long its longest dish takes, in minutes.

integer
dishes
required

Each dish planned for the meal, in the plan’s order.

Array<object>
>= 1 items
object
entryId
required

The dish’s entry in the plan.

string
title
required

The recipe’s name, or the note for a dish that’s only a note.

string
recipe
required

The recipe. Null for a dish that’s only a note.

object
id
required
string
slug
required
string
title
required
string
url
required

Its page in Merran. Null when the server has no public address (MERRAN_PUBLIC_URL).

string | null

Example

{
"id": "0199e8b0-5a10-7a01-8b00-000000000006",
"slug": "lemon-chicken",
"title": "Lemon Chicken",
"url": "https://merran.example.com/recipes/lemon-chicken"
}
side
required

The side dish, if it has one.

object
id
required
string
slug
required
string
title
required
string
url
required

Its page in Merran. Null when the server has no public address (MERRAN_PUBLIC_URL).

string | null

Example

{
"id": "0199e8b0-5a10-7a01-8b00-000000000006",
"slug": "lemon-chicken",
"title": "Lemon Chicken",
"url": "https://merran.example.com/recipes/lemon-chicken"
}
totalMinutes
required

How long it takes, in minutes: the recipe’s total time, or its prep and cook times added up, or its side’s when that’s longer. Null when neither says.

integer | null

Example

{
"entryId": "0199e8b0-5a10-7a01-8b00-00000000001b",
"title": "Lemon Chicken",
"recipe": {
"id": "0199e8b0-5a10-7a01-8b00-000000000006",
"slug": "lemon-chicken",
"title": "Lemon Chicken",
"url": "https://merran.example.com/recipes/lemon-chicken"
},
"side": {
"id": "0199e8b0-5a10-7a01-8b00-000000000007",
"slug": "garlic-rice",
"title": "Garlic Rice",
"url": "https://merran.example.com/recipes/garlic-rice"
},
"totalMinutes": 45
}

Example

{
"household": {
"id": "0199e8b0-5a10-7a01-8b00-000000000003",
"name": "The Riveras"
},
"by": null,
"via": "merran",
"key": null,
"date": "2026-10-15",
"meal": "dinner",
"time": "18:00",
"serveAt": "2026-10-16T01:00:00.000Z",
"startAt": "2026-10-16T00:15:00.000Z",
"minutes": 45,
"dishes": [
{
"entryId": "0199e8b0-5a10-7a01-8b00-00000000001b",
"title": "Lemon Chicken",
"recipe": {
"id": "0199e8b0-5a10-7a01-8b00-000000000006",
"slug": "lemon-chicken",
"title": "Lemon Chicken",
"url": "https://merran.example.com/recipes/lemon-chicken"
},
"side": {
"id": "0199e8b0-5a10-7a01-8b00-000000000007",
"slug": "garlic-rice",
"title": "Garlic Rice",
"url": "https://merran.example.com/recipes/garlic-rice"
},
"totalMinutes": 45
}
]
}

Example

{
"type": "meal.time_to_start",
"timestamp": "2026-10-15T18:30:00.000Z",
"data": {
"household": {
"id": "0199e8b0-5a10-7a01-8b00-000000000003",
"name": "The Riveras"
},
"by": null,
"via": "merran",
"key": null,
"date": "2026-10-15",
"meal": "dinner",
"time": "18:00",
"serveAt": "2026-10-16T01:00:00.000Z",
"startAt": "2026-10-16T00:15:00.000Z",
"minutes": 45,
"dishes": [
{
"entryId": "0199e8b0-5a10-7a01-8b00-00000000001b",
"title": "Lemon Chicken",
"recipe": {
"id": "0199e8b0-5a10-7a01-8b00-000000000006",
"slug": "lemon-chicken",
"title": "Lemon Chicken",
"url": "https://merran.example.com/recipes/lemon-chicken"
},
"side": {
"id": "0199e8b0-5a10-7a01-8b00-000000000007",
"slug": "garlic-rice",
"title": "Garlic Rice",
"url": "https://merran.example.com/recipes/garlic-rice"
},
"totalMinutes": 45
}
]
}
}

Any 2xx answer counts as delivered. 410 Gone pauses the webhook.

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.