Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Add a webhook

POST
/api/households/current/webhooks
curl --request POST \
--url http://localhost:3000/api/households/current/webhooks \
--header 'Content-Type: application/json' \
--cookie merran.session_token=<merran.session_token> \
--data '{ "name": "Home Assistant", "address": "http://192.168.1.20:8123/api/webhook/merran-kitchen", "events": [ "recipe.created" ], "everything": false, "headers": [] }'

Household admins only, up to 10 a household. Its signing secret is made now and returned with it. An address on the home network is refused unless the server admin allows it for this household (webhook_home_network).

Media typeapplication/json
object
name
required
string
>= 1 characters <= 80 characters
address
required

Where to send, http or https, with no user name or password in it: put those in a header. An address on the home network needs the server admin’s leave.

string
>= 1 characters
events

The events to send. At least one, unless everything.

Array<string>
default: <= 24 items
Allowed values: recipe.created recipe.updated recipe.deleted recipe.restored import.finished tidy.ready review.waiting cooking.started cooking.ended timer.started timer.extended timer.finished timer.cancelled plan.changed plan.autoplanned meal.cooked meal.skipped list.changed list.completed list.sent pantry.changed day.summary meal.time_to_start pantry.use_soon
everything

Send every event, including ones added later.

boolean
headers

Up to 5 headers sent with each delivery, like a token for n8n’s Header Auth. Each needs a value, on one line. They can’t replace content-type, content-length, host, user-agent or the webhook- headers, or be one that’s only for a single connection, like connection or transfer-encoding.

Array<object>
default: <= 5 items
object
name
required
string
/^[A-Za-z0-9-]{1,64}$/
value
required
string
>= 1 characters <= 1000 characters /^[\t\x20-\x7e\x80-\xff]*$/

Example

{
"name": "Home Assistant",
"address": "http://192.168.1.20:8123/api/webhook/merran-kitchen",
"events": [
"recipe.created"
],
"everything": false,
"headers": []
}

Added.

Media typeapplication/json
object
webhook
required
object
id
required
string
name
required
string
host
required

Where it sends. The rest of the address is kept sealed, since it’s often the receiver’s password.

string
events
required

The events it’s sent, unless it’s sent everything.

Array<string>
Allowed values: recipe.created recipe.updated recipe.deleted recipe.restored import.finished tidy.ready review.waiting cooking.started cooking.ended timer.started timer.extended timer.finished timer.cancelled plan.changed plan.autoplanned meal.cooked meal.skipped list.changed list.completed list.sent pantry.changed day.summary meal.time_to_start pantry.use_soon
everything
required

Whether it’s sent every event, including ones added later.

boolean
headers
required

The names of its extra headers. Their values are kept sealed and never shown.

Array<string>
state
required

failing while a delivery is being tried again; paused when nothing is sent to it.

string
Allowed values: working failing paused
pausedReason
required

Why it’s paused: gave_up when a delivery ran out of tries, gone when its address answered 410 Gone, or by_hand.

string | null
Allowed values: gave_up gone by_hand
pausedAt
required
string | null format: date-time
failingSince
required

When its deliveries began failing in a row.

string | null format: date-time
lastError
required

Why its last delivery that failed did.

string | null
lastDeliveredAt
required
string | null format: date-time
createdAt
required
string format: date-time
secret
required

The secret its deliveries are signed with, for the receiver to check them.

string

Example

{
"webhook": {
"id": "0199e8b0-5a10-7a01-8b00-000000000034",
"name": "Home Assistant",
"host": "192.168.1.20:8123",
"events": [
"recipe.created"
],
"everything": false,
"headers": [],
"state": "working",
"pausedReason": null,
"pausedAt": null,
"failingSince": null,
"lastError": null,
"lastDeliveredAt": "2026-10-15T18:30:00.000Z",
"createdAt": "2026-10-01T17:30:00.000Z"
},
"secret": "whsec_GABmWOVDpDHcyCEkbbUEMKosvEGEC3mYhXOM7W4ZiDY="
}

The address, the events or a header can’t be used, with a message for each field.

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 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."
}
}
}

The household has 10 webhooks already.

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.