Waywatch
Help · Premium

Call a URL from an alert

Add a “Call a URL” step to an alert profile and our server sends a message to a web address you choose when the alert reaches that step. Use it to start something on your side: a message to your team, a document released if you don’t check in, your lights turned on.

It runs on false alarms too. Whatever it starts may not be reversible, so put the step in a later stage to give yourself time to cancel. If the alert ends after the step ran, we call the address again (alert.cancelled or alert.safe) so your side can stand down.
When

When we call

alert.step
The alert reached the stage with this step.
alert.cancelled
The alert was ended as a false alarm, after this step had run.
alert.safe
The alert was ended and the person said they’re safe, after this step had run.
test
You tapped “Send test”. The details in it are made up.

Test alerts never call your address: use “Send test” on the step instead. A missed check-in or a journey that goes wrong calls it from our server, even if your phone is off.

What

What we send

A POST with a JSON body. user, location, battery and link are only there if you switch them on for the step. Your medical ID, recordings and contacts are never sent. Anyone with link can open the alert page until it expires, so only include it if you trust where it goes.

{
  "id": "Xq3n8Wd0TzPq1aRk",
  "event": "alert.step",
  "createdAt": "2026-11-25T21:14:05.000Z",
  "test": false,
  "alert": {
    "id": "a8Fk2LmQ0s",
    "trigger": "checkin",
    "startedAt": "2026-11-25T21:12:00.000Z",
    "stage": 2
  },
  "user": { "name": "Sam" },
  "location": { "lat": 51.5007, "lng": -0.1246, "accuracy": 12 },
  "battery": { "percent": 41, "charging": false },
  "link": "https://…/incident/a8Fk2LmQ0s?t=…"
}

trigger is what started the alert: sos (the SOS button), contact (Contact Mode), checkin, journey, or a smart trigger: safeword, decibel, accelerometer (a fall), crash, vehicle, snatch, headphones or heartRate.

Headers

Content-Type
application/json
X-Webhook-Event
The event, as above.
X-Webhook-Id
Which of your steps sent it.
X-Webhook-Signature
t=<unix seconds>,v1=<HMAC-SHA256, hex>
Idempotency-Key
The same as the body’s id. A retry sends the same one, so you can ignore repeats.
Security

Checking it’s really from us

Each step has a signing secret, shown once when you set it up (you can make a new one at any time). We sign every call with it: v1 is an HMAC-SHA256 of {t}.{body}. Recompute it and compare, and reject old timestamps. For example, in Node.js:

import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody: the request body exactly as received (a string, not parsed JSON).
export function isFromUs(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(
    signatureHeader.split(',').map((p) => p.split('=')),
  );
  const t = Number(parts.t);
  // Reject anything older than 5 minutes (a replay).
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac('sha256', secret)
    .update(`${t}.${rawBody}`)
    .digest('hex');
  const a = Buffer.from(expected, 'hex');
  const b = Buffer.from(parts.v1 ?? '', 'hex');
  return a.length === b.length && timingSafeEqual(a, b);
}
Delivery

How we deliver it

  • Any 2xx reply counts as delivered. Reply quickly, and do the slow work afterwards.
  • We wait 10 seconds for a reply.
  • If it fails (no connection, a timeout, a 5xx, 408 or 429), we try again after 1, 3 and 6 minutes, then stop. A retry has the same id and Idempotency-Key.
  • Other 4xx replies and redirects aren’t retried. Use the final address, not one that redirects.
  • HTTPS only, and only addresses on the public internet.
  • Up to 60 calls an hour per account, and 10 tests.

Each call’s outcome shows on the alert in the app and on its alert page (for you, not your contacts).

Examples

Using it with other services

Zapier

Make a Zap that starts with Webhooks by Zapier → Catch Hook, and paste its URL into the step. Use the fields in the next steps of the Zap.

IFTTT

Use the Webhooks service’s “Receive a web request with a JSON payload” trigger. The address looks like https://maker.ifttt.com/trigger/{event}/json/with/key/{key}.

Home Assistant

Add an automation with a Webhook trigger. Your instance needs a public HTTPS address (for example through Home Assistant Cloud): https://…/api/webhook/{id}.