Skip to content
merran
GitHubInstall

Merran documentation API & integrations

The pantry changed

POST

Sent when things are put away, used up, moved, changed or removed. Changes are gathered for 30 seconds and sent as one event for each person.

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: pantry.changed
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"
}
added
required

How many things were put away.

integer
usedUp
required

How many were used up.

integer
moved
required

How many were moved to another place.

integer
changed
required

How many had their amount, aisle, name or use-by date changed.

integer
removed
required

How many were removed.

integer

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,
"added": 6,
"usedUp": 2,
"moved": 0,
"changed": 1,
"removed": 0
}

Example

{
"type": "pantry.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,
"added": 6,
"usedUp": 2,
"moved": 0,
"changed": 1,
"removed": 0
}
}

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.