Event delivery
When an event happens, Roamze sends one POST with a JSON body to every URL subscribed to it.
Example delivery
POST <target_url>
Content-Type: application/json
User-Agent: Roamze-Webhooks/1.0 (+https://roamze.com)
Roamze-Event: inquiry.created
Roamze-Event-Id: evt_4f9c2b7a1e0d4c3b8a6f5e4d3c2b1a09
Roamze-Signature: t=1768494600,v1=5d41402abc4b2a76b9719d911017c592...
{
"id": "evt_4f9c2b7a1e0d4c3b8a6f5e4d3c2b1a09",
"type": "inquiry.created",
"created_at": "2026-01-15T16:30:00.000Z",
"business": {
"id": "2d8c1f4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"name": "Ridgeline Guides",
"roamze_page": "https://roamze.com/guides/ridgeline-guides"
},
"data": { ...the event's fields, below... }
}
Envelope fields
Event envelope fields| Field | Type | Description |
|---|
| id | string | This delivery's event id: evt_ followed by 32 hex characters. Same as the Roamze-Event-Id header. |
| type | string | The event name. Same as the Roamze-Event header. |
| created_at | string | When the event was sent (ISO 8601, UTC). |
| business.id | string | The business's Roamze id (the id from GET /me). |
| business.name | string | null | The business's name. |
| business.roamze_page | string | null | The business's public page on Roamze. |
| data | object | The event's fields, listed per event below. |
How delivery works
- The target URL must be
https and must resolve to a public internet address. Roamze checks this when the subscription is made and again before every delivery. - Any 2xx response counts as delivered. Each event is sent once, with a 5 second timeout, and isn’t retried.
- Redirects aren’t followed. A 3xx response counts as a failed delivery.
- A
410 Gone response deletes the subscription at once, and nothing more is sent to that URL. - After 20 failed deliveries in a row, the subscription is switched off.
- Use the event’s record id (
inquiry_id or booking_id) to de-duplicate. The Roamze app on Zapier uses it as the item id, so a live event and a sample of the same record match. - A business can send a test from its dashboard. A test arrives with
type test; the Roamze app on Zapier ignores it.
Signature
Every delivery is signed in the Roamze-Signature header:
Roamze-Signature: t=<unix seconds>,v1=<signature>
v1 is the hex HMAC-SHA256 of "<t>.<raw request body>", keyed with the subscription’s signing secret. To check it, compute the same HMAC over the raw body and compare it to v1, and reject a t that is far from the current time.
The signing secret (whsec_…) is shown to the business once when it adds a webhook URL by hand on Connected accounts. Subscriptions made through POST /hooks are signed the same way with a secret Roamze generates and doesn’t return, so the Roamze app on Zapier doesn’t check the signature; it relies on Zapier’s private target URL.
Verify in Node.js
import crypto from "node:crypto";
function verify(header, rawBody, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto
.createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
const a = Buffer.from(expected);
const b = Buffer.from(parts.v1 ?? "");
return fresh && a.length === b.length && crypto.timingSafeEqual(a, b);
}