outbound webhooks
The Outbound Webhooks integration POSTs signed JSON events to any HTTPS endpoint you control as things happen in PosKit. It sits in the Automation & Webhooks group of the integrations catalogue, carrying the Outbound Events capability badge, and works with anything that can receive an HTTP POST — Zapier, Make, n8n, or your own services.
Unlike the per-rule webhook alert action, this is an organization-level integration: it fires on the events you subscribe to across the whole estate, deliveries are queued with automatic retries, and every attempt is recorded in the integration's activity log.
setup fields
| Field | Notes |
|---|---|
| Endpoint URL | Required — a public HTTPS endpoint that returns a 2xx for POSTs. Private and internal addresses are rejected |
| Subscribed Events | Required — pick at least one event type |
| Signing Secret | Required — generated for you in the form; copy it to your receiver before saving. Stored encrypted and not shown again |
You can run several webhook integrations side by side — one endpoint per integration, each with its own event subscriptions and secret.
event types
| Event | Fires when |
|---|---|
alert.triggered | An alert rule fires |
alert.acknowledged | Someone acknowledges an alert |
alert.resolved | An alert resolves, manually or automatically |
alert.escalated | An alert escalates |
device.online | A device comes back from offline |
device.offline | A device stops reporting and is marked offline |
integration.sync_failed | A data sync on another integration fails |
ping | Always sent by Test connection, regardless of subscriptions |
payload
Every delivery is a JSON envelope:
{
"id": "5f0f8c3e-…",
"event": "alert.triggered",
"occurredAt": "2026-09-14T12:00:00.000Z",
"organizationId": "org_…",
"data": {
"alert": { "id": "…", "title": "…", "level": "CRITICAL" },
"device": { "id": "…", "name": "POS-01" },
"location": { "id": "…", "name": "Soho" }
}
}
The data shape depends on the event type; the envelope fields are always present. id is the delivery id, also sent as the X-PosKit-Delivery header.
verifying signatures
Each request carries:
| Header | Contents |
|---|---|
X-PosKit-Event | The event type |
X-PosKit-Delivery | The delivery id (use it to deduplicate) |
X-PosKit-Signature | t=<unix seconds>,v1=<hex hmac> |
To verify, compute HMAC-SHA256(secret, "<t>.<raw request body>") and compare it (constant-time) against v1:
const crypto = require("node:crypto");
function verify(secret, signatureHeader, rawBody) {
// {64} pins the length, so timingSafeEqual can't throw on a malformed header
const [, t, v1] = signatureHeader.match(/^t=(\d+),v1=([0-9a-f]{64})$/) ?? [];
if (!t) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(`${t}.${rawBody}`)
.digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}
Reject stale timestamps (e.g. older than 5 minutes) if replay protection matters to you.
delivery, retries, and failure
- Deliveries are queued — a slow endpoint never slows down alerting.
- A delivery counts as successful only on a 2xx response within 10 seconds. Redirects are treated as failures and never followed.
- Failed deliveries are retried automatically a few times before being parked on a dead-letter queue.
- Deliveries are at-least-once: a retried delivery can arrive twice, so deduplicate on
X-PosKit-Deliveryif your handler is not idempotent. - Every attempt lands in the integration's activity log as
DELIVER_EVENT. A failed delivery flips the integration toERRORwith the failure as the last error (hover the status in the list); the next successful delivery flips it back toACTIVE.
row actions
| Action | What it does |
|---|---|
| Test connection | Sends a signed ping event and expects a 2xx |
| Sync data | Summarises the last 7 days of deliveries (delivered vs failed attempts) |
permissions
Standard integration permissions apply — see integrations: integration:create to add, integration:edit to edit or test, integration:delete to remove.