Developers

Zapier app API.

The API the official Roamze app on Zapier calls: API key sign-in, REST hook subscriptions, sample data, and the events Roamze sends when travelers get in touch.

Overview

Roamze is where outdoor guides and tour businesses get found and booked. The Roamze app on Zapier lets a business send new messages, booking requests and news sign-ups from Roamze to the other tools it uses.

All endpoints live under one base URL, take and return JSON, and use snake_case field names.

Base URL

https://api.roamze.com/api/zapier

The app has three triggers, all REST hooks: turning a Zap on subscribes a URL with POST /hooks, Roamze then POSTs each event to that URL as it happens, and turning the Zap off unsubscribes with DELETE /hooks/:id.

  • New Message

    inquiry.created

    A traveler sends the business a question on Roamze.

  • New Booking Request

    booking.requested

    A traveler asks to book one of the business's trips on Roamze.

  • New News Sign-up

    customer.opted_in

    A traveler ticks “Send me news from this guide” when contacting the business. Only people who opted in.

Authentication

Every request carries the business’s Roamze key in the X-Api-Key header.

Header

X-Api-Key: rz_...
  • The business owner makes a key in the Roamze dashboard: avatar menu → Connected accounts → Zapier & webhooks → Make a key (roamze.com/operators/dashboard/channels). Only the owner can make one.
  • A key is rz_ followed by 43 URL-safe characters. It’s shown once, when it’s made. Roamze stores only a hash of it.
  • A business can have up to 10 active keys. The owner can revoke any of them on the same page.
  • A key acts only for the business that made it. Every endpoint returns and changes that business’s data only.
  • A missing, wrong or revoked key gets 401 with {"error":"invalid_key"}. In Zapier this shows as a request to reconnect the Roamze account.

Example

curl https://api.roamze.com/api/zapier/me \
  -H "X-Api-Key: rz_..."

Endpoints

Four endpoints. Responses are never cached.

GET/me

The business the key belongs to. Zapier calls it to test a new connection and uses business_name as the connection's label.

Response

200 OK
{
  "id": "2d8c1f4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
  "business_name": "Ridgeline Guides"
}

Errors

  • 401 { "error": "invalid_key" } The key is missing, wrong or revoked.

POST/hooks

Subscribe a URL to one event (REST hook subscribe). Zapier calls it when a Zap is turned on. Keep the returned id to unsubscribe later.

Request body

{
  "event": "inquiry.created",
  "target_url": "https://hooks.zapier.com/hooks/standard/123456/abcdef/"
}

Response

201 Created
{
  "id": "7f1e2d3c-4b5a-4968-8776-655443322110"
}

Errors

  • 400 { "error": "invalid_events" } event isn't one of the three events below.
  • 400 { "error": "invalid_url" } target_url isn't an https URL, has a username or password in it, is longer than 2,000 characters, or doesn't resolve.
  • 400 { "error": "private_address" } target_url resolves to an address that isn't on the public internet.
  • 400 { "error": "too_many" } The business already has 50 subscriptions made through this API.
  • 503 { "error": "not_configured" } Subscriptions can't be saved right now. Try again later.
  • 401 { "error": "invalid_key" } The key is missing, wrong or revoked.

DELETE/hooks/:id

Unsubscribe (REST hook unsubscribe). Zapier calls it when a Zap is turned off or deleted. It only removes subscriptions this business made through this API. An id that is unknown or already removed also returns 200, so repeating the call is safe.

Response

200 OK
{
  "ok": true
}

Errors

  • 401 { "error": "invalid_key" } The key is missing, wrong or revoked.

GET/samples/:event

Sample records for one event, so fields can be mapped before a real event arrives. Returns this business's three most recent records of that kind, newest first, in the same shape as a live event's data. A business with none gets one placeholder record.

Response

200 OK
[
  {
    "inquiry_id": "sample-inquiry",
    "name": "Sam Rivera",
    "email": "sam@example.com",
    ...
  }
]

Errors

  • 404 { "error": "unknown_event" } event isn't one of the three events below.
  • 401 { "error": "invalid_key" } The key is missing, wrong or revoked.

event in POST /hooks and GET /samples/:event is one of inquiry.created, booking.requested or customer.opted_in.

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
FieldTypeDescription
idstringThis delivery's event id: evt_ followed by 32 hex characters. Same as the Roamze-Event-Id header.
typestringThe event name. Same as the Roamze-Event header.
created_atstringWhen the event was sent (ISO 8601, UTC).
business.idstringThe business's Roamze id (the id from GET /me).
business.namestring | nullThe business's name.
business.roamze_pagestring | nullThe business's public page on Roamze.
dataobjectThe 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);
}

Events

The data field of each event. GET /samples/:event returns records in this same shape.

inquiry.created

Zapier trigger: New Message

A traveler sends the business a question on Roamze.

inquiry.created data fields
FieldTypeDescription
inquiry_idstringThe message's id. Stable, so it can be used to de-duplicate.
namestring | nullTraveler's name.
emailstring | nullTraveler's email.
phonestring | nullTraveler's phone.
messagestring | nullWhat they wrote.
tripstring | nullTitle of the trip they asked about, if any.
trip_datestring | nullDate they want to go (YYYY-MM-DD).
group_sizeinteger | nullHow many people.
sourcestring | nullWhere they found the business, for example roamze_profile.
created_atstringWhen it was sent (ISO 8601, UTC).
inbox_urlstringLink to the business's Roamze inbox.

Example data

{
  "inquiry_id": "6b2f6a0e-0000-4000-8000-000000000001",
  "name": "Sam Rivera",
  "email": "sam@example.com",
  "phone": "+1 555 0100",
  "message": "Do you have space this Saturday?",
  "trip": "Half-day guided hike",
  "trip_date": "2026-02-01",
  "group_size": 2,
  "source": "roamze_profile",
  "created_at": "2026-01-15T16:30:00.000Z",
  "inbox_url": "https://roamze.com/operators/dashboard/leads"
}

booking.requested

Zapier trigger: New Booking Request

A traveler asks to book one of the business's trips on Roamze.

booking.requested data fields
FieldTypeDescription
booking_idstringThe booking request's id. Stable, so it can be used to de-duplicate.
namestring | nullTraveler's name.
emailstring | nullTraveler's email.
phonestring | nullTraveler's phone.
messagestring | nullNote they added, if any.
tripstring | nullTitle of the trip.
requested_datestring | nullRequested date (YYYY-MM-DD).
requested_timestring | nullRequested start time (HH:MM:SS).
party_sizeinteger | nullHow many people.
statusstring | nullThe request's status, for example requested.
sourcestring | nullHow it was made, for example booking_button.
created_atstringWhen it was requested (ISO 8601, UTC).
inbox_urlstringLink to the business's Roamze inbox.

Example data

{
  "booking_id": "6b2f6a0e-0000-4000-8000-000000000002",
  "name": "Sam Rivera",
  "email": "sam@example.com",
  "phone": "+1 555 0100",
  "message": null,
  "trip": "Half-day guided hike",
  "requested_date": "2026-02-01",
  "requested_time": "08:00:00",
  "party_size": 2,
  "status": "requested",
  "source": "booking_button",
  "created_at": "2026-01-15T16:30:00.000Z",
  "inbox_url": "https://roamze.com/operators/dashboard/leads"
}

customer.opted_in

Zapier trigger: New News Sign-up

A traveler ticks “Send me news from this guide” when contacting the business. Only people who opted in.

customer.opted_in data fields
FieldTypeDescription
emailstringEmail of the person who signed up.
sourcestringWhere they signed up, for example inquiry.
consent_textstring | nullThe exact wording they agreed to.
opted_in_atstringWhen they signed up (ISO 8601, UTC).

Example data

{
  "email": "sam@example.com",
  "source": "inquiry",
  "consent_text": "Send me news and new trips from this guide. Unsubscribe anytime.",
  "opted_in_at": "2026-01-15T16:30:00.000Z"
}

Events carry the traveler’s contact details. They are the business’s own leads, sent only to URLs that business set up, and never include anything about another business.

Errors

Errors return a non-2xx status and a JSON body with an error code.

Error codes
StatuserrorMeaning
400invalid_eventsPOST /hooks: event isn't a known event.
400invalid_urlPOST /hooks: target_url isn't a valid https URL.
400private_addressPOST /hooks: target_url isn't on the public internet.
400too_manyPOST /hooks: the business has 50 subscriptions already.
401invalid_keyThe X-Api-Key header is missing, wrong or revoked.
404unknown_eventGET /samples/:event: event isn't a known event.
500(message)Something went wrong on our side. Safe to retry.
503not_configuredPOST /hooks: subscriptions can't be saved right now.

Support

Questions about the Roamze app on Zapier or this API? Email support@roamze.com or use our contact page.

Building an AI agent instead? See Roamze for developers.