Skip to main content

Webhooks

PingRoom rooms have two webhook connectors. Incoming webhooks let any system fire a Ping into a room. Outgoing webhooks forward every Ping back out to a URL you control: signed, retried, and delivered at the edge. Signals in, actions out.

Input · Free and Pro

Incoming webhooks

An incoming webhook is a single URL that fires a room when anything POSTs to it. A room can carry up to four (CI, a cron job, a form backend, an IoT button, whatever can make an HTTP request), each optionally tied to a Quick Ping preset. A free account keeps one incoming webhook active across all the rooms it owns; Pro lifts that cap. Creating, editing, rotating, testing, and switching off are free. Switching on a second one on a free account returns 402 with code: pro_feature_required, reason: free_trigger_limit_reached and kind: incoming_webhook, naming the room whose webhook holds the free slot in active_trigger. Every webhook in a response carries covered_by_plan: whether the owner's plan lets it fire right now.

Fire endpoint (public, no auth header):

POST  /api/webhooks/{inviteCode}/{secret}

The {secret} in the path is the credential: anything that captures the URL can fire the webhook, so treat it like a password. PingRoom returns webhook URLs only to the room owner and marks every such response no-store. Only POST sends a Ping. A GET is read-only and returns setup information, which prevents browser previews and link scanners from firing the room accidentally.

Request body

Every field is optional. An empty POST uses the webhook's saved content and optional Quick Ping preset. A webhook can send its own content without occupying a Quick Ping button.

FieldTypeMeaning
titlestring ≤ 40Notification title. Overrides the webhook's saved title for this call.
messagestring ≤ 120 private / 160 publicNotification body. Overrides the webhook's saved message for this call; the room determines the limit. A GitHub delivery (it carries an X-GitHub-Event header) with no message gets a one-line summary instead, such as "CI failed on main · acme/app", unless the webhook has a saved message.
actionint 1 to 16 | nullWhich Quick Ping preset to use. Defaults to the webhook's configured action number, if any; null fires without a preset, using the webhook's own title and message. A value that is not a whole number, such as GitHub's "completed", is ignored, so a service that sends its own action field can post here directly.
emojistring ≤ 16Per-Ping display emoji. Overrides the webhook or action icon for this call.
iconroom-icon idPer-Ping v3 icon-catalog id. Must be a current PingRoom room icon.
color6-digit hexPer-Ping accent, with or without a leading # (for example #e33122).
soundcanonical sound idPer-Ping sound override from PingRoom's sound catalog.
dataobject ≤ 25 keys / 8KBObject carried alongside the Ping. Lists are rejected; data.live_status is reserved and stripped. Two keys are reserved and validated: data.location ({latitude, longitude, label?, address?}) and data.checklist ({items: [{text}]}, 1–25 items, each ≤ 80 characters). Any other shape for them returns 422. A third reserved key, data.actions, puts up to 3 buttons on the Ping: a list of {id?, label, type: "open_url" | "webhook", url, style?, body?}. See Buttons on a Ping below.
correlation_idstring ≤ 255Your own id, echoed back unchanged on every read surface. Optional.
reply_tostring ≤ 255Id of the Ping this one answers. Optional.
tagsstring[] ≤ 10Optional labels to filter history by later. Each is 1 to 32 characters of lowercase letters, digits, - and _, starting with a letter or digit. Trimmed, lowercased and de-duplicated by the server. A top-level live_status payload takes them when the stream is created; a later ping never changes them.
replace_keystring 1–64Optional. Letters, digits and . _ : -. This webhook's own handle for "the Ping I keep updating". A fire that carries it replaces this webhook's earlier Ping with the same key in the room, instead of creating one, while that Ping is under 24 hours old, replaced fewer than 20 times, an ordinary webhook Ping and in a private room. The response then carries replaced: true. Otherwise a new Ping is created that keeps the key. A fire that carries requires_ack (or an acknowledging action), is_urgent, tags, or a different action, emoji, icon, color, correlation_id or reply_to than the stored Ping creates a new Ping instead, and so does a fire that carries data.actions: a Ping with buttons is never replaced, and a fire with buttons never replaces one.
is_urgentbooleanRequest time-sensitive delivery, which may be allowed through Focus / Do Not Disturb according to the recipient's device settings. Delivery priority only, and independent of requires_ack — it asks nothing of the recipient.
requires_ackbooleanOverride whether this Ping needs acknowledgement; otherwise the quick action's setting applies. Shows a lock-screen card with an Acknowledge button, but does not raise the interruption level on its own. Feature gates may reject authoring.
ack_timeout_secondsint 1 to 86400Optional acknowledgement deadline, used when requires_ack resolves true.
metricobjectTop level only. Sets a room metric instead of sending a Ping: {key, value, label?, format?, unit?}. See Room metrics below. Cannot be combined with live_status.

A top-level live_status payload enters PingRoom’s separate streamed-status protocol and has its own state/template validation. It is not an ordinary custom-data field; nested data.live_status is reserved and removed.

Example:

# Fire a room. The secret in the URL is the credential, so no auth header.
curl -sX POST https://api.pingroom.io/api/webhooks/ABC123/whk_9f3c…e1 \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: build-4821' \
  -d '{
    "title": "Deploy finished",
    "message": "Production is live ✅",
    "action": 1,
    "data": { "commit": "a1b2c3d", "env": "prod" }
  }'

To bypass a saved preset for this delivery, pass action: null with the content you want to send:

{ "action": null, "title": "New application", "message": "A vendor form is ready to review." }

A successful fire returns 200:

{
  "success": true,
  "message": "Webhook triggered successfully",
  "notification_id": "019e79be-3acd-73b6-b440-8ab0a7bffed8",
  "room": { "id": "…", "name": "Build Alerts" },
  "webhook": { "id": "…", "name": "CI", "emoji": "🚀" },
  "action": { "number": 1, "label": "Deploy done", "icon": "🚀" },
  "notification_title": "Deploy finished",
  "notification_message": "Production is live ✅",
  "triggered_at": "2026-06-02T18:24:05+00:00"
}

When a fire with a replace_key replaces an earlier Ping, the same 200 body carries that Ping’s notification_id and replaced: true. A fire that creates a Ping has no replaced key. The notification on a recipient’s phone changes in place, silently, on app versions that support it; people who already read the Ping are not notified again, and other clients show the new text on their next load. Reads of the Ping carry edited_at (ISO 8601, null until the first replacement). A replacement writes no trigger log, does not count as a new trigger, and does not send the outgoing ping event.

When the body carries data.actions, the 200 body also carries actions and, when one of them is a webhook button, action_signing_secret. See Buttons on a Ping below.

Room metrics

A top-level metric object sets a named value in the room, such as MRR or open tickets, instead of sending a Ping. It sends no Ping and no push, writes no trigger log, and does not call the room’s outgoing webhook. It is not subject to the cooldown and does not start one, and the other Ping fields in the body are ignored. It cannot be combined with live_status: a body with both is a 422 naming metric. The other gates still apply in the same order (room, secret, enabled, owner, plan), as does the 60 calls per minute route limit. A room holds at most 8 metrics. The phone widget that displays metrics is not released yet.

# Set a room metric. No Ping is sent and no push goes out.
curl -sX POST https://api.pingroom.io/api/webhooks/ABC123/whk_9f3c…e1 \
  -H 'Content-Type: application/json' \
  -d '{ "metric": { "key": "mrr", "value": 12400, "label": "MRR", "format": "currency", "unit": "USD" } }'

The answer is 201 when the call created the metric and 200 otherwise:

{
  "success": true,
  "metric": {
    "key": "mrr",
    "label": "MRR",
    "format": "currency",
    "unit": "USD",
    "value": 12400,
    "value_updated_at": "2026-11-11T08:12:30.000000Z"
  }
}

A call that repeats the stored value changes nothing: it keeps value_updated_at, adds unchanged: true to the answer, and writes no log row, so a script that polls every minute stays quiet. key is 1 to 40 characters, label at most 24, format is number, currency, percent, unit or text, and value is sent raw. The full rules are in the metrics reference. PingRoom can switch room metrics off; the call then answers 403 feature_disabled and a stored metric is kept.

Buttons on a Ping

A data.actions list puts up to 3 buttons on the Ping, on the notification’s long-press actions and under the Ping’s card in the iPhone and Android apps (updated versions). An open_url button opens an https page in the app’s in-app browser. A webhook button makes PingRoom deliver a signed tap to your URL, once per person, for 24 hours after the Ping.

# Put two buttons on a Ping. Private standard rooms only.
curl -sX POST https://api.pingroom.io/api/webhooks/ABC123/whk_9f3c…e1 \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Disk alert",
    "message": "Disk 91% on db-2",
    "correlation_id": "disk-db-2",
    "data": {
      "actions": [
        { "id": "dash", "label": "Open dashboard", "type": "open_url",
          "url": "https://grafana.example.com/d/disk" },
        { "id": "clean", "label": "Clean up now", "type": "webhook",
          "url": "https://ops.example.com/cleanup", "style": "danger",
          "body": { "host": "db-2" } }
      ]
    }
  }'

The 200 answer carries the buttons as recipients see them and the secret their deliveries are signed with:

{
  "success": true,
  "message": "Webhook triggered successfully",
  "notification_id": "019e79be-3acd-73b6-b440-8ab0a7bffed8",
  …
  "actions": [
    { "id": "dash", "label": "Open dashboard", "type": "open_url", "style": "default",
      "url": "https://grafana.example.com/d/disk", "host": "grafana.example.com" },
    { "id": "clean", "label": "Clean up now", "type": "webhook", "style": "danger" }
  ],
  "action_signing_secret": "<64 hex characters, returned once>"
}
  • Store the secret. action_signing_secret comes back once, in the answer to the fire (a replay with the same Idempotency-Key returns it again), and cannot be fetched later. Key it by notification_id. It is absent when no button is a webhook button.
  • Each button takes id (optional, [a-z0-9_-]{1,24}, unique on the Ping), label (1 to 26 characters), type, url (at most 2048 characters), style (default, primary or danger) and, on a webhook button only, body (an object of at most 10 keys and 1024 bytes). No other key is allowed.
  • URLs are https:// on a public ASCII hostname (punycode for an internationalized domain), with no user name or password, no IP address and no internal name. A webhook URL takes no port. Labels may not contain line breaks or invisible characters, a web address, domain name or IP address, or copy one of PingRoom’s own buttons.
  • Where. Private standard rooms only (422 ping_buttons_unsupported_room in a public or personal room), and not with a confirmation request (422 ping_buttons_with_ack). A webhook button needs the room owner on Pro (403 ping_buttons_require_pro); an open_url button is free but also needs the links capability. PingRoom can switch buttons off, and the fire is then 403 feature_disabled.
  • Frozen. A Ping with buttons cannot be replaced, and a fire that carries buttons never replaces an earlier Ping. It can still be taken back, which disables its buttons.
  • The webhook’s call log keeps no button body and no webhook button URL.

The full rules, limits and the security model are in the Buttons on a Ping reference.

Idempotency & cooldown

  • Idempotency. Pass an Idempotency-Key header and a retried delivery replays the original response instead of firing a second Ping. Receipts are stored durably for at least 1 hour. Reusing a key with a different body returns 409 idempotency_conflict.
  • Cooldown. Each webhook has a per-webhook cooldown (default 5s, configurable up to 60s). Firing inside the window returns 429 cooldown_active with a retry_after in seconds. A completed same-key replay is returned before this check because it creates no new Ping or cooldown slot; a new key remains subject to the cooldown. A fire that replaces an earlier Ping through replace_key is still subject to the cooldown.
  • Rate limit. Each room+secret is capped at 60 calls per minute on top of the cooldown. A public room takes 1 Ping per minute across its owner, admins and webhooks, so a fire inside that minute is refused and not sent.

Incoming errors

Failures carry a stable error field, except the route rate limit, which carries code. Branch on the HTTP status and that field, not the human message.

HTTPerrorMeaning
404room_not_foundNo active room matches the invite code in the URL.
403invalid_secretThe secret in the URL does not match any webhook on the room.
403webhook_disabledThe webhook exists but is currently switched off.
403owner_not_proThe room owner's plan does not cover this webhook: a free owner already has another incoming webhook active (Free keeps one active across the rooms it owns), or Pro lapsed. The webhook is paused, not deleted; it resumes once it holds the free slot again or the owner is on Pro.
410room_abandonedThe room owner's account no longer exists. The webhook was permanently disabled; stop retrying (later calls return 403 webhook_disabled).
409idempotency_conflictThe Idempotency-Key was already used with a different request body. Use a new key for a new Ping.
429cooldown_activeFired again inside the cooldown window. Honor retry_after (seconds) or the Retry-After header.
429public_rate_limitedA public room takes 1 Ping per minute, whatever its webhook's own cooldown. This Ping was not sent. Honor retry_after (seconds) or the Retry-After header.
429(rate limit)More than 60 calls/min for this room+secret. Answers code: rate_limited with a retry_after and a Retry-After header. Every 429 here carries a code, a retry_after and a Retry-After header.
409idempotency_in_progressA request with this Idempotency-Key is still being processed, and its outcome isn't known yet. Retry with the same key.
403feature_disabledPingRoom has switched this capability off, including buttons (sending.ping_buttons) and, for an open_url button, links (sending.links). Don't retry.
422ping_buttons_unsupported_roomdata.actions in a public room or a personal room. Buttons are for private standard rooms only.
422ping_buttons_with_ackdata.actions on a Ping that asks for a confirmation (requires_ack, or a Quick Ping that requires one).
403ping_buttons_require_proA webhook button while the room owner is not on PingRoom Pro. open_url buttons are free.
422metrics_limit_reachedA metric body for a new key when the room already holds 8 metrics. Updating an existing key is never refused for it.
422invalid_dataThe data payload must be a JSON object, not a list.
422payload_too_largeThe data payload is over 8KB.
422 or 503feature_temporarily_unavailableThis webhook asks for a confirmation, and those are temporarily unavailable. Retry later.
422(validation)A field failed validation, e.g. title over 40 chars, message over the room limit, or action outside 1 to 16, more than 10 tags, or a tag that breaks the tag rule. For a metric body, the errors name metric.key, metric.label, metric.format, metric.unit or metric.value; a body with both metric and live_status names metric. For buttons, the errors name the field, such as data.actions.0.label or data.actions.1.url; data.actions inside a live_status body is refused too.

Managing incoming webhooks

Owner-only, authenticated with the account JWT (Authorization: Bearer …). The fire endpoint above needs no auth; these management endpoints do. Disabling or deleting an existing credential is always available, on any plan.

MethodPathDoes
GET/api/rooms/{inviteCode}/webhooksList a room's webhooks (each with its full webhook_url).
POST/api/rooms/{inviteCode}/webhooksCreate a webhook. action_number is optional: omit it (or send null) for an independent webhook with no Quick Ping preset.
GET/api/rooms/{inviteCode}/webhooks/{id}Read one webhook.
PUT/api/rooms/{inviteCode}/webhooks/{id}Update label, title, message, emoji, sound, cooldown, enabled.
DELETE/api/rooms/{inviteCode}/webhooks/{id}Delete a webhook.
POST/api/rooms/{inviteCode}/webhooks/{id}/testSend a test fire to verify wiring.

Output · Free and Pro

Outgoing webhooks

Point a room at a URL and PingRoom calls it every time the room Pings. The receiver must accept PingRoom's signed JSON schema; use an adapter or automation step before destinations such as Slack incoming webhooks. One outgoing webhook per room. It fires independently of push recipients, so it still delivers even when no one is around to be Pinged. A free account keeps one outgoing webhook active across all the rooms it owns; Pro lets every room you own run its own. Setting the destination, picking events, testing, rotating, and switching off are free. Switching on a second one on a free account returns 402 with reason: free_trigger_limit_reached and kind: outgoing_webhook, and testing a second one is refused the same way.

Delivery runs through a Cloudflare Worker that runs at the edge. Each handoff gets up to 3 target attempts, with a 10s timeout per attempt and short 300ms / 600ms waits before retries. A handoff that still fails stays retryable in the notification engine and can ultimately enter its dead-letter queue. After 15 counted delivery failures the webhook auto-disables so a dead endpoint stops burning invocations.

The event you receive

The JSON body contains the fields below. Message text, custom data, room identifiers, and Question response details are forwarded as supplied, so treat this as data leaving PingRoom and send it only to an endpoint you trust.

FieldTypeMeaning
eventstringUsually "ping". A resolved Question instead sends "question.answered", "question.expired", or "question.cancelled" (see below).
notification_iduuidStable id of the Ping; matches what the agent endpoints return.
roomobject{ name, code }: the room the Ping fired in.
titlestringThe Ping title (custom title if one was set, else the room name).
bodystringSender name + message, e.g. "Mia: Dinner's ready".
senderstringDisplay name of whoever (or whatever) fired the Ping.
action_numberint | nullWhich quick action fired, if any.
trigger_sourcestringHow the Ping was raised: "manual", "webhook", "location", "time", "telegram", "agent", "agent_question", "agent_approval", "system", "contact_share", "contact_request", "user_live", or "agent_live". A test delivery sends "test".
dataobject | nullThe structured-Ping payload, forwarded verbatim from the originating Ping.
correlation_idstring | nullEchoed from the originating Ping.
reply_tostring | nullId of the Ping the originating Ping answered.
tagsstring[]The originating Ping's labels, sorted alphabetically; [] when it has none.
is_urgentbooleanWhether this Ping was delivered time-sensitive. Independent of requires_ack.
requires_ackbooleanWhether recipients must acknowledge this Ping.
ack_expires_atISO-8601 | nullThe acknowledgement deadline, when one exists.
action_stateobjectCurrent acknowledgement/lifecycle state at the moment this event was emitted.
timestampISO-8601When the Ping fired.

What lands at your URL:

POST <your URL>
X-PingRoom-Signature: 3a7f… (legacy v1 HMAC-SHA256)
X-PingRoom-Signature-V2: 91c2… (delivery-bound v2 HMAC-SHA256)
X-PingRoom-Timestamp: 1780000000
X-PingRoom-Delivery: 019e79be-523d-7e34-a667-1d71a8be0ed1
Content-Type: application/json

{
  "event": "ping",
  "notification_id": "019e79be-3acd-73b6-b440-8ab0a7bffed8",
  "room": { "name": "Build Alerts", "code": "ABC123" },
  "title": "Deploy finished",
  "body": "CI: Production is live ✅",
  "sender": "CI",
  "action_number": 1,
  "trigger_source": "webhook",
  "data": { "commit": "a1b2c3d", "env": "prod" },
  "correlation_id": "deploy-4821",
  "reply_to": null,
  "tags": ["deploy", "prod"],
  "timestamp": "2026-06-02T18:24:05+00:00"
}

A non-empty management events filter accepts exactly these values. null or [] forwards all:

[
  "manual",
  "webhook",
  "time",
  "location",
  "telegram",
  "agent",
  "agent_question",
  "agent_approval",
  "system",
  "contact_share",
  "contact_request",
  "user_live",
  "agent_live",
  "notification.acked",
  "notification.expired",
  "question.answered",
  "question.expired",
  "question.cancelled"
]

Question events

When a Question your agent asks is created, its initial Ping uses the selectable agent_question source. When it resolves, the room’s outgoing webhook also fires a lifecycle event: question.answered, question.expired, or question.cancelled. These are matched by event name against the same events filter, so while null/[] forwards all, a non-empty filter must list the question.* names explicitly to keep them (atrigger_source-only filter like ["agent"] will drop them). The body carries the chosen answer (value and label for a tapped option, or text for a typed reply, plus the human who answered and when), so an event-driven consumer can act without long-polling. answer is null for expired (no answer) and cancelled (withdrawn), keeping the three outcomes distinct. Every event also carries resolution_policy: first when the first valid answer wins, or all for a poll, where everyone asked votes once. A poll’s answer is the leading option with responder: null, since the room chose it, and it is null on a tie even when state is answered. Its results carries the tallies (people asked, votes cast, a count per option, and the votes, each naming its voter by id and display_name); results is null on a first-answer Question. Same HMAC signing as every other delivery.

{
  "event": "question.answered",
  "question_id": "019e7a02-1c4d-7e10-9b21-2f3a4b5c6d7e",
  "room": { "name": "Build Alerts", "code": "ABC123" },
  "state": "answered",
  "resolution_policy": "first",
  "answer": {
    "value": "approve",
    "label": "Approve",
    "text": null,
    "responder": { "id": "…", "display_name": "Federica" },
    "answered_at": "2026-06-02T18:25:10+00:00"
  },
  "results": null,
  "correlation_id": "deploy-4821",
  "reply_to": null,
  "data": { "commit": "a1b2c3d" },
  "timestamp": "2026-06-02T18:25:10+00:00"
}

Verifying the signature

Every delivery is signed with the room’s signing_secret (read it from the config endpoint; rotate it with regenerate_secret). Every new delivery carries both signatures. Existing v1 receivers keep working unchanged, while new receivers can authenticate the delivery ID with v2.

  • V2 signed string is v2\n{timestamp}\n{deliveryId}\n{rawBody}. Use the exact X-PingRoom-Timestamp, X-PingRoom-Delivery, and raw request body bytes. Its lower-case hex HMAC is in X-PingRoom-Signature-V2.
  • The backward-compatible v1 signed string remains {timestamp}.{rawBody}. Its lower-case hex HMAC remains in X-PingRoom-Signature; the delivery ID is intentionally not part of v1.
  • Both use HMAC-SHA256(signing_secret, signedString). If a v2 header is present, require v2 to pass instead of falling back to a valid v1 header.
  • Reject any request whose X-PingRoom-Timestamp is more than 300 seconds in the past or future. This limits the replay window; it does not eliminate replay inside that window.
  • Compute the HMAC over the captured raw body bytes, never parsed or re-serialized JSON, and compare in constant time.
  • After successful v2 verification, process a repeated X-PingRoom-Delivery idempotently. V2 authenticates this ID; v1 does not, so v1-only receivers need application-level idempotency.
import crypto from "node:crypto";

// Express-style receiver. You MUST read the raw body bytes and verify the exact
// bytes that were signed, before any JSON re-serialization.
function verify(req, signingSecret) {
  const sigV1 = req.header("X-PingRoom-Signature");
  const sigV2 = req.header("X-PingRoom-Signature-V2");
  const ts = req.header("X-PingRoom-Timestamp");
  const deliveryId = req.header("X-PingRoom-Delivery");
  const hasV2 = sigV2 != null; // If v2 is present, never downgrade to v1.
  const suppliedHex = hasV2 ? sigV2 : sigV1;
  if (!suppliedHex || !ts) return false;

  // Freshness bound: reject malformed timestamps or anything outside ±300s.
  if (!/^[0-9]{1,12}$/.test(ts)) return false;
  const timestamp = Number(ts);
  if (Math.abs(Date.now() / 1000 - timestamp) > 300) return false;
  if (!/^[0-9a-f]{64}$/i.test(suppliedHex)) return false;
  if (hasV2 && (!deliveryId || !/^[!-~]{1,255}$/.test(deliveryId))) {
    return false;
  }

  const prefix = hasV2
    ? `v2\n${ts}\n${deliveryId}\n`
    : `${ts}.`;
  const signed = Buffer.concat([
    Buffer.from(prefix, "utf8"),
    req.rawBody, // the exact Buffer read from the request
  ]);
  const expected = crypto
    .createHmac("sha256", signingSecret)
    .update(signed)
    .digest();
  const supplied = Buffer.from(suppliedHex, "hex");

  return supplied.length === expected.length
    && crypto.timingSafeEqual(supplied, expected);
}

Receiving button deliveries

This is a webhook your server receives, not a room event. When a recipient taps a webhook button, PingRoom’s servers (never the phone) POST a notification.action event to the button’s URL. It is not in the event vocabulary, a room’s outgoing webhook never receives it, and it is not affected by the room’s events filter.

POST /cleanup HTTP/1.1
Host: ops.example.com
Content-Type: application/json
User-Agent: PingRoom-Webhook/1.0
X-PingRoom-Event: notification.action
X-PingRoom-Timestamp: 1762855261
X-PingRoom-Delivery: 5b1d…-…
X-PingRoom-Signature: <hex HMAC-SHA256(secret, "{timestamp}.{raw body}")>
X-PingRoom-Signature-V2: <hex HMAC-SHA256(secret, "v2\n{timestamp}\n{delivery id}\n{raw body}")>

{"event":"notification.action","notification_id":"019e79be-…","action_id":"clean",
 "room":{"code":"ABC123","name":"Ops"},
 "actor":{"id":"3f2a…(32 hex)","display_name":"Sam"},
 "correlation_id":"disk-db-2","body":{"host":"db-2"},
 "timestamp":"2026-11-11T10:01:00+00:00"}

The headers and the signing scheme are the ones in Verifying the signature: the same V2 and V1 signed strings, the same 300 seconds window, the same dedupe on X-PingRoom-Delivery. Only the secret differs:

  • The delivery is signed with the Ping’s own action_signing_secret, the one returned once in the answer to the send, not with the room’s outgoing-webhook signing_secret. Each Ping has its own, so a receiver that learns one learns nothing about another Ping.
  • Look the secret up by notification_id in the raw body. It is only a lookup key: trust nothing in the body until the signature verifies.
  • The tap is at-least-once. A 429, a 5xx or no answer is retried a few times; another 4xx is final, and a redirect is not followed. Answer 2xx once you have the event.
FieldTypeMeaning
eventstringAlways notification.action. Also in the X-PingRoom-Event header.
notification_idstringThe Ping's id. Use it only to look up the secret you stored when you sent the Ping; it is not trusted until the signature verifies.
action_idstringThe button's id.
room{ code, name }The room the Ping was sent to.
actor{ id, display_name }Who tapped. id is a 32-hex pseudonym, stable for that person in that room and different in every other room, and not their PingRoom id. display_name is the name the room already shows for them. Nothing else about the person is sent: never their PingRoom id, email, handle, phone or device.
correlation_idstring | nullThe Ping's correlation_id.
bodyobject | nullThe button's body, or null when it had none.
timestampISO 8601When the tap was recorded.

Verification with the SDK’s helper:

import {
  verifyWebhookSignature,
  WEBHOOK_SIGNATURE_HEADER,
  WEBHOOK_SIGNATURE_V2_HEADER,
  WEBHOOK_TIMESTAMP_HEADER,
  WEBHOOK_DELIVERY_HEADER,
} from "@pingroom/sdk";

// `secrets` holds each Ping's action_signing_secret, stored when you sent it.
app.post("/cleanup", express.raw({ type: "application/json" }), async (req, res) => {
  let id;
  try {
    id = JSON.parse(req.body.toString("utf8")).notification_id;
  } catch {
    return res.status(400).end();
  }
  const secret = typeof id === "string" ? await secrets.get(id) : undefined;
  if (!secret) return res.status(401).end();

  const ok = await verifyWebhookSignature({
    payload: req.body, // the RAW bytes
    signature: req.get(WEBHOOK_SIGNATURE_HEADER),
    signatureV2: req.get(WEBHOOK_SIGNATURE_V2_HEADER),
    timestamp: req.get(WEBHOOK_TIMESTAMP_HEADER),
    deliveryId: req.get(WEBHOOK_DELIVERY_HEADER),
    secret,
    requireV2: true,
  });
  if (!ok) return res.status(401).end();
  // Run each X-PingRoom-Delivery once, then act on the verified event.
  res.status(204).end();
});

One run per person per button, and a button expires 24 hours after the Ping. Limits, refusals and the security model are in the Buttons on a Ping reference.

Target URL rules (SSRF safety)

  • HTTPS only, port 443 only, max 2048 chars. No embedded credentials (https://user:pass@host).
  • The host must resolve to a public IP. Private, loopback, link-local, and reserved ranges are rejected, including obfuscated literals (decimal, octal, hex, IPv4-mapped IPv6).
  • PingRoom re-resolves and reapplies the public-address rules immediately before the Go or synchronous Laravel handoff. Unsafe saved targets are stopped. The Worker also rejects obvious private literals/internal names and refuses redirects. This narrows DNS-rebinding exposure, but the Worker fetch cannot be cryptographically pinned to the earlier DNS answer; use a dedicated receiver hostname.

Managing the outgoing webhook

Owner-only, authenticated with the account JWT. Every owner receives the signing secret, so a receiver can be set up before the webhook is switched on. Every config response is marked no-store and carries covered_by_plan. Switching the webhook off and clearing its destination stay available on any plan.

MethodPathDoes
GET/api/rooms/{inviteCode}/outgoing-webhookRead the room's outgoing webhook config, including signing_secret and covered_by_plan (whether the owner's plan lets it deliver).
PUT/api/rooms/{inviteCode}/outgoing-webhookSet url / enabled / events (null or [] forwards all), or rotate the secret. On a free account, switching on a second outgoing webhook across your rooms returns 402 (reason free_trigger_limit_reached).
POST/api/rooms/{inviteCode}/outgoing-webhook/testSend a synchronous test delivery to the configured URL.

See also

For the bigger picture of how rooms wire to the outside world, see Connections. To let an AI agent fire rooms on your behalf, see Agent Access.