Merran documentation API & integrations
Add a webhook
const url = 'http://localhost:3000/api/households/current/webhooks';const options = { method: 'POST', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"name":"Home Assistant","address":"http://192.168.1.20:8123/api/webhook/merran-kitchen","events":["recipe.created"],"everything":false,"headers":[]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
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.
The events to send. At least one, unless everything.
Send every event, including ones added later.
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.
object
Example
{ "name": "Home Assistant", "address": "http://192.168.1.20:8123/api/webhook/merran-kitchen", "events": [ "recipe.created" ], "everything": false, "headers": []}Responses
Section titled “Responses”Added.
object
object
Where it sends. The rest of the address is kept sealed, since it’s often the receiver’s password.
The events it’s sent, unless it’s sent everything.
Whether it’s sent every event, including ones added later.
The names of its extra headers. Their values are kept sealed and never shown.
failing while a delivery is being tried again; paused when nothing is sent to it.
Why it’s paused: gave_up when a delivery ran out of tries, gone when its address answered 410 Gone, or by_hand.
When its deliveries began failing in a row.
Why its last delivery that failed did.
The secret its deliveries are signed with, for the receiver to check them.
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.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not signed in.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}The household has 10 webhooks already.
object
object
object
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.