Merran documentation API & integrations
The plan changed
Sent when meals are added, moved, changed or removed, whatever did it: someone in the app, the autoplan, a proposal, Repeat last week, Clear, Undo, a substitute found from the shopping list, or Made it. Changes are gathered for 30 seconds and sent as one event for each person, so someone adding a whole week sends one. Marking meals made or Didn’t isn’t a plan change; those send meal.cooked and meal.skipped. Undo sends this, but never meal.cooked or meal.skipped again.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”This delivery’s id. It stays the same on every retry, so a receiver can use it to ignore one it has handled already.
Example
msg_2KWPBgLlAfxdpx2AI54pPJ85f4WThis delivery’s id. It stays the same on every retry, so a receiver can use it to ignore one it has handled already.
When this attempt was sent, in seconds since 1970. It changes on every retry. Receivers should refuse one that’s far from now.
Example
1731268800When this attempt was sent, in seconds since 1970. It changes on every retry. Receivers should refuse one that’s far from now.
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.
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.
Request Body
Section titled “Request Body”object
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.
object
object
Example
{ "id": "0199e8b0-5a10-7a01-8b00-000000000003", "name": "The Riveras"}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
Example
{ "id": "0199e8b0-5a10-7a01-8b00-000000000001", "name": "Sam Rivera"}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.
The API key or OAuth connection used, for api and mcp. Null otherwise.
object
Example
{ "id": "0199e8b0-5a10-7a01-8b00-000000000009", "name": "Home Assistant"}The days touched, as YYYY-MM-DD, earliest first.
The weeks whose pool was touched, each by its first day as YYYY-MM-DD.
How many meals were added.
How many meals were moved to another day or meal, or had their dishes put in another order.
How many meals had their recipe, side, note or servings changed, or their ingredients changed by a substitute. Servings given as a meal is marked made say how many it made, and don’t count.
How many meals were removed.
Example
{ "household": { "id": "0199e8b0-5a10-7a01-8b00-000000000003", "name": "The Riveras" }, "by": { "id": "0199e8b0-5a10-7a01-8b00-000000000001", "name": "Sam Rivera" }, "via": "app", "key": null, "days": [ "2026-10-15", "2026-10-16" ], "pools": [ "2026-10-11" ], "added": 2, "moved": 1, "changed": 0, "removed": 0}Example
{ "type": "plan.changed", "timestamp": "2026-10-15T18:30:00.000Z", "data": { "household": { "id": "0199e8b0-5a10-7a01-8b00-000000000003", "name": "The Riveras" }, "by": { "id": "0199e8b0-5a10-7a01-8b00-000000000001", "name": "Sam Rivera" }, "via": "app", "key": null, "days": [ "2026-10-15", "2026-10-16" ], "pools": [ "2026-10-11" ], "added": 2, "moved": 1, "changed": 0, "removed": 0 }}Responses
Section titled “Responses”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.