Docs

Events

Every fact QRChannels records can be pushed to your systems as a signed CloudEvents 1.0 envelope. Subscriptions live under Settings → Events & webhooks; the same events can be polled from GET /api/public/v1/events.

Envelope

Deliveries are posted with content-type: application/cloudevents+json. The envelope is fixed; the data object follows the per-type schema below.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "specversion": {
      "type": "string",
      "enum": [
        "1.0"
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Event id; use it to deduplicate"
    },
    "source": {
      "type": "string",
      "description": "https://qrchannels.io/o/<organization slug>"
    },
    "type": {
      "type": "string",
      "description": "io.qrchannels.<event>.v<version>, e.g. io.qrchannels.scan.allowed.v1"
    },
    "subject": {
      "type": "string",
      "description": "<subject type>/<subject id>, e.g. scan/<scan id>"
    },
    "time": {
      "type": "string",
      "format": "date-time"
    },
    "datacontenttype": {
      "type": "string",
      "enum": [
        "application/json"
      ]
    },
    "data": {
      "type": "object",
      "description": "See the per-type schema below"
    }
  },
  "required": [
    "specversion",
    "id",
    "source",
    "type",
    "subject",
    "time",
    "datacontenttype",
    "data"
  ],
  "additionalProperties": false
}

Verifying a delivery

Each request carries three headers: X-QRC-Event-Id, X-QRC-Timestamp (unix seconds) and X-QRC-Signature — hex HMAC-SHA256 of timestamp + "." + rawBody using the subscription secret.

// Node.js
import crypto from "node:crypto";
function verify(req, rawBody, secret) {
  const ts = req.headers["x-qrc-timestamp"];
  const sig = req.headers["x-qrc-signature"];
  if (!ts || !sig) return false;
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(String(sig)));
}

Reject anything older than 5 minutes, and deduplicate by event id: a delivery can be attempted more than once.

Ordering and retries

Per subscription, events are delivered in the order they happened. A failed delivery is retried with growing delays (30 s, 1 m, 2 m, … up to 2 h) for 24 hours or 12 attempts, then moved to the dead-letter queue where you can re-queue it in bulk.

Subscriptions can be filtered by event type (wildcards like scan.*) and by channel.

Event types

scan.allowed

Scan accepted — A scan finished and was accepted.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scan_id": {
      "type": "string",
      "format": "uuid",
      "description": "Scan event id"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": "string",
      "format": "uuid",
      "description": "Display the code was shown on, null for printed codes"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Person who scanned, null when the channel asks for no identity"
    },
    "result": {
      "type": "string",
      "enum": [
        "allowed",
        "allowed_flagged",
        "denied"
      ],
      "description": "Final decision (action denials included)"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Rejection reason when the scan was not accepted"
    },
    "pal_result": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pass",
        "flag",
        "step_up",
        "fail",
        null
      ],
      "description": "Presence assurance outcome"
    },
    "hash": {
      "type": "string",
      "description": "Hash-chain value of this scan record"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "scan_id",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "result",
    "reason",
    "pal_result",
    "hash",
    "created_at"
  ],
  "additionalProperties": false
}
Example data
{
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "result": "allowed",
  "reason": null,
  "pal_result": "pass",
  "hash": "a3f1c9e0b7d24f618c05e9d3a7f2b4c6d8e0f1a3b5c7d9e1f3a5b7c9d1e3f5a7",
  "created_at": "2026-11-26T09:12:44.120Z"
}

scan.flagged

Scan accepted with a flag — Accepted, but one check was borderline (for example the location was close to the edge of the venue).

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scan_id": {
      "type": "string",
      "format": "uuid",
      "description": "Scan event id"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": "string",
      "format": "uuid",
      "description": "Display the code was shown on, null for printed codes"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Person who scanned, null when the channel asks for no identity"
    },
    "result": {
      "type": "string",
      "enum": [
        "allowed",
        "allowed_flagged",
        "denied"
      ],
      "description": "Final decision (action denials included)"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Rejection reason when the scan was not accepted"
    },
    "pal_result": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pass",
        "flag",
        "step_up",
        "fail",
        null
      ],
      "description": "Presence assurance outcome"
    },
    "hash": {
      "type": "string",
      "description": "Hash-chain value of this scan record"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "scan_id",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "result",
    "reason",
    "pal_result",
    "hash",
    "created_at"
  ],
  "additionalProperties": false
}
Example data
{
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "result": "allowed_flagged",
  "reason": null,
  "pal_result": "pass",
  "hash": "a3f1c9e0b7d24f618c05e9d3a7f2b4c6d8e0f1a3b5c7d9e1f3a5b7c9d1e3f5a7",
  "created_at": "2026-11-26T09:12:44.120Z"
}

scan.denied

Scan denied — The scan reached the server but the presence check did not pass.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scan_id": {
      "type": "string",
      "format": "uuid",
      "description": "Scan event id"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": "string",
      "format": "uuid",
      "description": "Display the code was shown on, null for printed codes"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Person who scanned, null when the channel asks for no identity"
    },
    "result": {
      "type": "string",
      "enum": [
        "allowed",
        "allowed_flagged",
        "denied"
      ],
      "description": "Final decision (action denials included)"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it was denied"
    },
    "pal_result": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pass",
        "flag",
        "step_up",
        "fail",
        null
      ],
      "description": "Presence assurance outcome"
    },
    "hash": {
      "type": "string",
      "description": "Hash-chain value of this scan record"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "scan_id",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "result",
    "reason",
    "pal_result",
    "hash",
    "created_at"
  ],
  "additionalProperties": false
}
Example data
{
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "result": "denied",
  "reason": null,
  "pal_result": "pass",
  "hash": "a3f1c9e0b7d24f618c05e9d3a7f2b4c6d8e0f1a3b5c7d9e1f3a5b7c9d1e3f5a7",
  "created_at": "2026-11-26T09:12:44.120Z"
}

scan.rejected

Scan rejected before evaluation — The code was wrong, expired, already used or the session timed out.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scan_id": {
      "type": "string",
      "format": "uuid",
      "description": "Scan event id"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": "string",
      "format": "uuid",
      "description": "Display the code was shown on, null for printed codes"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Person who scanned, null when the channel asks for no identity"
    },
    "result": {
      "type": "string",
      "enum": [
        "allowed",
        "allowed_flagged",
        "denied"
      ],
      "description": "Final decision (action denials included)"
    },
    "reason": {
      "type": "string",
      "description": "Rejection reason code"
    },
    "pal_result": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pass",
        "flag",
        "step_up",
        "fail",
        null
      ],
      "description": "Presence assurance outcome"
    },
    "hash": {
      "type": "string",
      "description": "Hash-chain value of this scan record"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "scan_id",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "result",
    "reason",
    "pal_result",
    "hash",
    "created_at"
  ],
  "additionalProperties": false
}
Example data
{
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "result": "denied",
  "reason": null,
  "pal_result": "pass",
  "hash": "a3f1c9e0b7d24f618c05e9d3a7f2b4c6d8e0f1a3b5c7d9e1f3a5b7c9d1e3f5a7",
  "created_at": "2026-11-26T09:12:44.120Z"
}

scan.rejected_burst

Rejected scan burst — More than ten rejections on one display inside the same minute, sent as a single event so a SIEM sees the spike instead of the noise.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "beacon_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid",
      "description": "Channel of the display, null when it could not be resolved"
    },
    "bucket": {
      "type": "string",
      "format": "date-time"
    },
    "count": {
      "type": "integer"
    }
  },
  "required": [
    "beacon_id",
    "channel_id",
    "bucket",
    "count"
  ],
  "additionalProperties": false
}
Example data
{
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "bucket": "2026-11-26T09:12:00.000Z",
  "count": 27
}

presence.recorded

Presence recorded — A person was recorded as present at a channel.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "presence_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": "string",
      "format": "uuid",
      "description": "Display, null for printed codes"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "pal_level": {
      "type": "integer"
    },
    "pal_result": {
      "type": [
        "string",
        "null"
      ]
    },
    "flagged": {
      "type": "boolean"
    },
    "scan_id": {
      "type": "string",
      "format": "uuid"
    },
    "recorded_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "presence_id",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "pal_level",
    "pal_result",
    "flagged",
    "scan_id",
    "recorded_at"
  ],
  "additionalProperties": false
}
Example data
{
  "presence_id": "5e4d3c2b-1a0f-4e9d-8c7b-6a5f4e3d2c1b",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "pal_level": 2,
  "pal_result": "pass",
  "flagged": false,
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "recorded_at": "2026-11-26T09:12:45.004Z"
}

review.confirmed

Review confirmed — A reviewer confirmed a scan that had been flagged.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "review_id": {
      "type": "string",
      "format": "uuid"
    },
    "scan_id": {
      "type": "string",
      "format": "uuid"
    },
    "decision": {
      "type": "string",
      "enum": [
        "confirm",
        "confirmed"
      ]
    },
    "reviewed_by": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "review_id",
    "scan_id",
    "decision",
    "reviewed_by",
    "created_at"
  ],
  "additionalProperties": false
}
Example data
{
  "review_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "decision": "confirm",
  "reviewed_by": "7f6e5d4c-3b2a-4190-8765-4321fedcba09",
  "created_at": "2026-11-26T10:02:11.500Z"
}

review.rejected

Review rejected — A reviewer rejected a scan; the record itself is never edited, a compensating event is written.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "review_id": {
      "type": "string",
      "format": "uuid"
    },
    "scan_id": {
      "type": "string",
      "format": "uuid"
    },
    "decision": {
      "type": "string",
      "enum": [
        "reject",
        "rejected"
      ]
    },
    "reviewed_by": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "review_id",
    "scan_id",
    "decision",
    "reviewed_by",
    "created_at"
  ],
  "additionalProperties": false
}
Example data
{
  "review_id": "2b3c4d5e-6f70-4b8c-9d0e-1f2a3b4c5d6e",
  "scan_id": "0b7f1f0a-2f3e-4f9a-9a11-3f0f0a9d1c22",
  "decision": "reject",
  "reviewed_by": "7f6e5d4c-3b2a-4190-8765-4321fedcba09",
  "created_at": "2026-11-26T10:04:02.110Z"
}

chain.started

Guard tour started — A person began a CHAINED channel: the first checkpoint was scanned.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "current_step": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "completed",
        "broken",
        "abandoned"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "run_id",
    "channel_id",
    "scanner_id",
    "current_step",
    "status",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false
}
Example data
{
  "run_id": "3c4d5e6f-7081-4c9d-ae1f-2b3c4d5e6f70",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "current_step": 1,
  "status": "running",
  "started_at": "2026-11-26T21:00:03.000Z",
  "completed_at": null
}

chain.advanced

Guard tour step done — One checkpoint of a guard tour was reached in order.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "current_step": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "completed",
        "broken",
        "abandoned"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "run_id",
    "channel_id",
    "scanner_id",
    "current_step",
    "status",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false
}
Example data
{
  "run_id": "3c4d5e6f-7081-4c9d-ae1f-2b3c4d5e6f70",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "current_step": 2,
  "status": "running",
  "started_at": "2026-11-26T21:00:03.000Z",
  "completed_at": null
}

chain.completed

Guard tour completed — Every checkpoint of a tour was reached in order and in time.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "current_step": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "completed",
        "broken",
        "abandoned"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "run_id",
    "channel_id",
    "scanner_id",
    "current_step",
    "status",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false
}
Example data
{
  "run_id": "3c4d5e6f-7081-4c9d-ae1f-2b3c4d5e6f70",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "current_step": 6,
  "status": "completed",
  "started_at": "2026-11-26T21:00:03.000Z",
  "completed_at": "2026-11-26T21:34:52.000Z"
}

chain.broken

Guard tour broken — A tour went out of order or past its gap, so the run is no longer valid.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "current_step": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "completed",
        "broken",
        "abandoned"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "run_id",
    "channel_id",
    "scanner_id",
    "current_step",
    "status",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false
}
Example data
{
  "run_id": "4d5e6f70-8192-4dae-bf20-3c4d5e6f7081",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "current_step": 3,
  "status": "broken",
  "started_at": "2026-11-26T21:00:03.000Z",
  "completed_at": "2026-11-26T21:22:10.000Z"
}

chain.abandoned

Guard tour abandoned — A tour was left unfinished for too long and was closed automatically.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "current_step": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "completed",
        "broken",
        "abandoned"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "run_id",
    "channel_id",
    "scanner_id",
    "current_step",
    "status",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false
}
Example data
{
  "run_id": "5e6f7081-92a3-4ebf-c031-4d5e6f708192",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "current_step": 2,
  "status": "abandoned",
  "started_at": "2026-11-26T08:00:03.000Z",
  "completed_at": "2026-11-26T20:00:00.000Z"
}

beacon.key_rotated

Display key rotated — A display's signing key changed; the old one stays valid for 60 seconds.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "beacon_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "key_version": {
      "type": "integer"
    }
  },
  "required": [
    "beacon_id",
    "name",
    "key_version"
  ],
  "additionalProperties": false
}
Example data
{
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "name": "Main entrance",
  "key_version": 4
}

beacon.ip_changed

Display address changed — A display started reporting from a different network address.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "beacon_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "beacon_id",
    "name"
  ],
  "additionalProperties": false
}
Example data
{
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "name": "Main entrance"
}

channel.status_changed

Channel status changed — A channel was turned on, off or locked.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "from": {
      "type": "string",
      "enum": [
        "draft",
        "on",
        "off",
        "locked",
        "archived"
      ]
    },
    "to": {
      "type": "string",
      "enum": [
        "draft",
        "on",
        "off",
        "locked",
        "archived"
      ]
    }
  },
  "required": [
    "channel_id",
    "name",
    "from",
    "to"
  ],
  "additionalProperties": false
}
Example data
{
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "name": "Night shift",
  "from": "off",
  "to": "on"
}

member.changed

Member changed — Someone was added to, changed or removed from the organization.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "op": {
      "type": "string",
      "enum": [
        "insert",
        "update",
        "delete"
      ]
    },
    "role": {
      "type": [
        "string",
        "null"
      ]
    },
    "previous_role": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "user_id",
    "op",
    "role",
    "previous_role"
  ],
  "additionalProperties": false
}
Example data
{
  "user_id": "7f6e5d4c-3b2a-4190-8765-4321fedcba09",
  "op": "insert",
  "role": "auditor",
  "previous_role": null
}

checkpoint.missed

Checkpoint missed — A guard tour checkpoint or a scheduled check was not scanned in time. Sent once per step and run, or once per schedule window.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "checkpoint_missed",
        "lone_worker_overdue"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "high"
      ]
    },
    "title": {
      "type": "string"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scanner_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Guard tour run, for missed tour checkpoints"
    },
    "step_index": {
      "type": [
        "integer",
        "null"
      ]
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Checkpoint schedule, for missed scheduled checks"
    },
    "lone_session_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "acknowledged",
        "resolved"
      ]
    },
    "opened_at": {
      "type": "string",
      "format": "date-time"
    },
    "acknowledged_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object",
      "description": "Context such as the checkpoint label, gap or schedule window"
    }
  },
  "required": [
    "alert_id",
    "kind",
    "severity",
    "title",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "run_id",
    "step_index",
    "schedule_id",
    "lone_session_id",
    "status",
    "opened_at",
    "acknowledged_by",
    "resolved_reason",
    "details"
  ],
  "additionalProperties": false
}
Example data
{
  "alert_id": "6f708192-a3b4-4c5d-8e6f-708192a3b4c5",
  "kind": "checkpoint_missed",
  "severity": "high",
  "title": "Checkpoint missed: Loading dock",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "run_id": "3c4d5e6f-7081-4c9d-ae1f-2b3c4d5e6f70",
  "step_index": 3,
  "schedule_id": null,
  "lone_session_id": null,
  "status": "open",
  "opened_at": "2026-11-26T22:15:00.000Z",
  "acknowledged_by": null,
  "resolved_reason": null,
  "details": {
    "label": "Loading dock",
    "max_gap_minutes": 15,
    "source": "guard_tour"
  }
}

lone_worker.overdue

Lone worker overdue — A lone worker did not check in within their interval.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "checkpoint_missed",
        "lone_worker_overdue"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "high"
      ]
    },
    "title": {
      "type": "string"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scanner_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Guard tour run, for missed tour checkpoints"
    },
    "step_index": {
      "type": [
        "integer",
        "null"
      ]
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Checkpoint schedule, for missed scheduled checks"
    },
    "lone_session_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "acknowledged",
        "resolved"
      ]
    },
    "opened_at": {
      "type": "string",
      "format": "date-time"
    },
    "acknowledged_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object",
      "description": "Context such as the checkpoint label, gap or schedule window"
    }
  },
  "required": [
    "alert_id",
    "kind",
    "severity",
    "title",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "run_id",
    "step_index",
    "schedule_id",
    "lone_session_id",
    "status",
    "opened_at",
    "acknowledged_by",
    "resolved_reason",
    "details"
  ],
  "additionalProperties": false
}
Example data
{
  "alert_id": "6f708192-a3b4-4c5d-8e6f-708192a3b4c5",
  "kind": "lone_worker_overdue",
  "severity": "high",
  "title": "Lone worker overdue: Anna Keller",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": null,
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "run_id": null,
  "step_index": null,
  "schedule_id": null,
  "lone_session_id": "8a9b0c1d-2e3f-4a5b-8c6d-7e8f9a0b1c2d",
  "status": "open",
  "opened_at": "2026-11-26T22:15:00.000Z",
  "acknowledged_by": null,
  "resolved_reason": null,
  "details": {
    "check_interval_minutes": 30,
    "last_check_at": "2026-11-26T21:40:00.000Z"
  }
}

lone_worker.escalated

Lone worker escalated — A lone worker is still overdue after the escalation time.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "checkpoint_missed",
        "lone_worker_overdue"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "high"
      ]
    },
    "title": {
      "type": "string"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scanner_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Guard tour run, for missed tour checkpoints"
    },
    "step_index": {
      "type": [
        "integer",
        "null"
      ]
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Checkpoint schedule, for missed scheduled checks"
    },
    "lone_session_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "acknowledged",
        "resolved"
      ]
    },
    "opened_at": {
      "type": "string",
      "format": "date-time"
    },
    "acknowledged_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object",
      "description": "Context such as the checkpoint label, gap or schedule window"
    }
  },
  "required": [
    "alert_id",
    "kind",
    "severity",
    "title",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "run_id",
    "step_index",
    "schedule_id",
    "lone_session_id",
    "status",
    "opened_at",
    "acknowledged_by",
    "resolved_reason",
    "details"
  ],
  "additionalProperties": false
}
Example data
{
  "alert_id": "6f708192-a3b4-4c5d-8e6f-708192a3b4c5",
  "kind": "lone_worker_overdue",
  "severity": "high",
  "title": "Lone worker overdue: Anna Keller",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": null,
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "run_id": null,
  "step_index": null,
  "schedule_id": null,
  "lone_session_id": "8a9b0c1d-2e3f-4a5b-8c6d-7e8f9a0b1c2d",
  "status": "open",
  "opened_at": "2026-11-26T22:15:00.000Z",
  "acknowledged_by": null,
  "resolved_reason": null,
  "details": {
    "check_interval_minutes": 30,
    "last_check_at": "2026-11-26T21:40:00.000Z"
  }
}

alert.acknowledged

Alert acknowledged — Someone took ownership of an alert (from the app or the link in the notification).

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "checkpoint_missed",
        "lone_worker_overdue"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "high"
      ]
    },
    "title": {
      "type": "string"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scanner_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Guard tour run, for missed tour checkpoints"
    },
    "step_index": {
      "type": [
        "integer",
        "null"
      ]
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Checkpoint schedule, for missed scheduled checks"
    },
    "lone_session_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "acknowledged",
        "resolved"
      ]
    },
    "opened_at": {
      "type": "string",
      "format": "date-time"
    },
    "acknowledged_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object",
      "description": "Context such as the checkpoint label, gap or schedule window"
    }
  },
  "required": [
    "alert_id",
    "kind",
    "severity",
    "title",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "run_id",
    "step_index",
    "schedule_id",
    "lone_session_id",
    "status",
    "opened_at",
    "acknowledged_by",
    "resolved_reason",
    "details"
  ],
  "additionalProperties": false
}
Example data
{
  "alert_id": "6f708192-a3b4-4c5d-8e6f-708192a3b4c5",
  "kind": "checkpoint_missed",
  "severity": "high",
  "title": "Checkpoint missed: Loading dock",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "run_id": "3c4d5e6f-7081-4c9d-ae1f-2b3c4d5e6f70",
  "step_index": 3,
  "schedule_id": null,
  "lone_session_id": null,
  "status": "acknowledged",
  "opened_at": "2026-11-26T22:15:00.000Z",
  "acknowledged_by": "Maria (night desk)",
  "resolved_reason": null,
  "details": {
    "label": "Loading dock",
    "max_gap_minutes": 15,
    "source": "guard_tour"
  }
}

alert.resolved

Alert resolved — The tour advanced, the check arrived late, the worker checked in or the session ended.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "checkpoint_missed",
        "lone_worker_overdue"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "high"
      ]
    },
    "title": {
      "type": "string"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scanner_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Guard tour run, for missed tour checkpoints"
    },
    "step_index": {
      "type": [
        "integer",
        "null"
      ]
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Checkpoint schedule, for missed scheduled checks"
    },
    "lone_session_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "acknowledged",
        "resolved"
      ]
    },
    "opened_at": {
      "type": "string",
      "format": "date-time"
    },
    "acknowledged_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object",
      "description": "Context such as the checkpoint label, gap or schedule window"
    }
  },
  "required": [
    "alert_id",
    "kind",
    "severity",
    "title",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "run_id",
    "step_index",
    "schedule_id",
    "lone_session_id",
    "status",
    "opened_at",
    "acknowledged_by",
    "resolved_reason",
    "details"
  ],
  "additionalProperties": false
}
Example data
{
  "alert_id": "6f708192-a3b4-4c5d-8e6f-708192a3b4c5",
  "kind": "checkpoint_missed",
  "severity": "high",
  "title": "Checkpoint missed: Loading dock",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "3c1d9f0e-7b6a-4d5c-9e2b-1a0f9c8b7d6e",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "run_id": "3c4d5e6f-7081-4c9d-ae1f-2b3c4d5e6f70",
  "step_index": 3,
  "schedule_id": null,
  "lone_session_id": null,
  "status": "resolved",
  "opened_at": "2026-11-26T22:15:00.000Z",
  "acknowledged_by": null,
  "resolved_reason": "run advanced",
  "details": {
    "label": "Loading dock",
    "max_gap_minutes": 15,
    "source": "guard_tour"
  }
}

lone_worker.ended

Lone worker session ended — A lone worker ended their session, or an admin ended it.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "format": "uuid"
    },
    "scanner_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "ended_by": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "session_id",
    "scanner_id",
    "channel_id",
    "ended_by"
  ],
  "additionalProperties": false
}
Example data
{
  "session_id": "8a9b0c1d-2e3f-4a5b-8c6d-7e8f9a0b1c2d",
  "scanner_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "ended_by": "worker"
}

muster.started

Muster started — An evacuation roll call started and its expected list was frozen.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "muster_id": {
      "type": "string",
      "format": "uuid"
    },
    "site_label": {
      "type": "string"
    },
    "started_by": {
      "type": "string"
    },
    "expected": {
      "type": "integer"
    },
    "safe": {
      "type": "integer"
    }
  },
  "required": [
    "muster_id",
    "site_label",
    "started_by",
    "expected",
    "safe"
  ],
  "additionalProperties": false
}
Example data
{
  "muster_id": "0f3a70b1-83a2-4b77-a48c-bf7c1cb93c01",
  "site_label": "Zurich office",
  "started_by": "owner@example.com",
  "expected": 42,
  "safe": 0
}

muster.ended

Muster ended — An evacuation roll call ended; the counts are final.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "muster_id": {
      "type": "string",
      "format": "uuid"
    },
    "site_label": {
      "type": "string"
    },
    "ended_by": {
      "type": "string"
    },
    "expected": {
      "type": "integer"
    },
    "safe": {
      "type": "integer"
    }
  },
  "required": [
    "muster_id",
    "site_label",
    "ended_by",
    "expected",
    "safe"
  ],
  "additionalProperties": false
}
Example data
{
  "muster_id": "0f3a70b1-83a2-4b77-a48c-bf7c1cb93c01",
  "site_label": "Zurich office",
  "ended_by": "officer@example.com",
  "expected": 42,
  "safe": 39
}

physical.failed

Physical action failed — A relay, lock or other physical output failed or timed out. It is never retried automatically.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "physical_action_failed"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "high"
      ]
    },
    "title": {
      "type": "string"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scanner_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "step_index": {
      "type": [
        "integer",
        "null"
      ]
    },
    "schedule_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "lone_session_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "open"
      ]
    },
    "opened_at": {
      "type": "string",
      "format": "date-time"
    },
    "acknowledged_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolved_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object"
    }
  },
  "required": [
    "alert_id",
    "kind",
    "severity",
    "title",
    "channel_id",
    "beacon_id",
    "scanner_id",
    "run_id",
    "step_index",
    "schedule_id",
    "lone_session_id",
    "status",
    "opened_at",
    "acknowledged_by",
    "resolved_reason",
    "details"
  ],
  "additionalProperties": false
}
Example data
{
  "alert_id": "6f708192-a3b4-4c5d-8e6f-708192a3b4c5",
  "kind": "physical_action_failed",
  "severity": "high",
  "title": "Physical action failed: Main door",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": null,
  "scanner_id": null,
  "run_id": null,
  "step_index": null,
  "schedule_id": null,
  "lone_session_id": null,
  "status": "open",
  "opened_at": "2026-11-27T08:00:00.000Z",
  "acknowledged_by": null,
  "resolved_reason": null,
  "details": {
    "device_name": "Main door",
    "error": "HTTP 503"
  }
}

presence.no_show

Attendee did not show up — A person on a calendar event's attendee list never appeared at the channel during the event window.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "event_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel_name": {
      "type": "string"
    },
    "event_title": {
      "type": "string"
    },
    "event_start": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "email",
    "event_id",
    "channel_id",
    "channel_name",
    "event_title",
    "event_start"
  ],
  "additionalProperties": false
}
Example data
{
  "email": "bob@acme.com",
  "event_id": "7c6b5a49-3827-4f6e-8d1c-0b9a8f7e6d5c",
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "channel_name": "Night shift",
  "event_title": "Night tour #qrc",
  "event_start": "2026-11-27T20:00:00.000Z"
}

anomaly.detected

Anomaly detected — A suspicious pattern was found (shared phone, impossible travel, end-of-shift burst, latency near the limit, refusal streak). It never denies a scan — a person reviews it.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "anomaly_id": {
      "type": "string",
      "format": "uuid"
    },
    "rule": {
      "type": "string",
      "enum": [
        "shared_device",
        "impossible_travel",
        "burst_end_of_shift",
        "latency_drift",
        "rejected_streak"
      ]
    },
    "subject_type": {
      "type": "string",
      "enum": [
        "scanner",
        "device",
        "beacon",
        "channel"
      ]
    },
    "subject_id": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "beacon_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    }
  },
  "required": [
    "anomaly_id",
    "rule",
    "subject_type",
    "subject_id",
    "score",
    "channel_id",
    "beacon_id"
  ],
  "additionalProperties": false
}
Example data
{
  "anomaly_id": "0d1e2f30-4152-4637-8899-aabbccddeeff",
  "rule": "impossible_travel",
  "subject_type": "scanner",
  "subject_id": "3c2b1a09-8f7e-4d6c-b5a4-938271605f4e",
  "score": 0.42,
  "channel_id": "6a2f4a82-6a3a-4d2c-8f57-2a7f3c9d0a11",
  "beacon_id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
}

authorization.requested

Authorization requested — A two-person or in-person approval request was created.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "kind": {
      "type": "string",
      "enum": [
        "dual",
        "approve"
      ]
    },
    "purpose": {
      "type": "string"
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "op_digest": {
      "type": [
        "string",
        "null"
      ]
    },
    "beacon_ids": {
      "type": "array"
    },
    "min_pal": {
      "type": "integer"
    },
    "required_participants": {
      "type": "integer"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_via": {
      "type": "string",
      "enum": [
        "api",
        "console"
      ]
    },
    "metadata": {
      "type": "object",
      "description": "Caller metadata, echoed back"
    }
  },
  "required": [
    "id",
    "kind",
    "purpose",
    "summary",
    "op_digest",
    "beacon_ids",
    "min_pal",
    "required_participants",
    "expires_at",
    "created_via",
    "metadata"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "metadata": {
    "ticket": "CHG-1042"
  },
  "kind": "dual",
  "purpose": "Open server room",
  "summary": null,
  "op_digest": null,
  "beacon_ids": [
    "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
  ],
  "min_pal": 2,
  "required_participants": 2,
  "expires_at": "2026-11-27T08:10:00.000Z",
  "created_via": "api"
}

authorization.participated

Authorization participation — Someone approved or rejected at the display.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "decision": {
      "type": "string",
      "enum": [
        "approve",
        "reject"
      ]
    },
    "pal_result": {
      "type": "string"
    },
    "beacon_id": {
      "type": "string",
      "format": "uuid"
    },
    "metadata": {
      "type": "object",
      "description": "Caller metadata, echoed back"
    }
  },
  "required": [
    "id",
    "decision",
    "pal_result",
    "beacon_id",
    "metadata"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "metadata": {
    "ticket": "CHG-1042"
  },
  "decision": "approve",
  "pal_result": "pass",
  "beacon_id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
}

authorization.approved

Authorization approved — All required people approved in person; carries the signed attestation.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "kind": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "jws": {
      "type": "string",
      "description": "Compact JWS, verify with the org JWKS"
    },
    "metadata": {
      "type": "object",
      "description": "Caller metadata, echoed back"
    }
  },
  "required": [
    "id",
    "kind",
    "purpose",
    "jws",
    "metadata"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "metadata": {
    "ticket": "CHG-1042"
  },
  "kind": "dual",
  "purpose": "Open server room",
  "jws": "eyJhbGciOiJFZERTQSJ9.e30.sig"
}

authorization.denied

Authorization denied — The request was denied.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "kind": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "decided_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "description": "Caller metadata, echoed back"
    }
  },
  "required": [
    "id",
    "kind",
    "purpose",
    "reason",
    "decided_at",
    "metadata"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "metadata": {
    "ticket": "CHG-1042"
  },
  "kind": "dual",
  "purpose": "Open server room",
  "reason": "rejected",
  "decided_at": "2026-11-27T08:05:00.000Z"
}

authorization.expired

Authorization expired — The request was expired.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "kind": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "decided_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "description": "Caller metadata, echoed back"
    }
  },
  "required": [
    "id",
    "kind",
    "purpose",
    "reason",
    "decided_at",
    "metadata"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "metadata": {
    "ticket": "CHG-1042"
  },
  "kind": "dual",
  "purpose": "Open server room",
  "reason": "expired",
  "decided_at": "2026-11-27T08:05:00.000Z"
}

authorization.canceled

Authorization canceled — The request was canceled.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "kind": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "decided_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "description": "Caller metadata, echoed back"
    }
  },
  "required": [
    "id",
    "kind",
    "purpose",
    "reason",
    "decided_at",
    "metadata"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "metadata": {
    "ticket": "CHG-1042"
  },
  "kind": "dual",
  "purpose": "Open server room",
  "reason": "canceled",
  "decided_at": "2026-11-27T08:05:00.000Z"
}

authorization.revoked

Authorization revoked — A review rejected a participation; the attestation is now on the revocation list.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Authorization request id"
    },
    "attestation_id": {
      "type": "string",
      "format": "uuid"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "attestation_id",
    "reason"
  ],
  "additionalProperties": false
}
Example data
{
  "id": "5f0c2a1e-7b3d-4c8e-9a6f-1d2e3f4a5b6c",
  "attestation_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "reason": "review_rejected"
}

test.ping

Test event — Sent by the "Send test event" button in Settings → Events & webhooks.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    },
    "sent_by": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "message",
    "sent_by"
  ],
  "additionalProperties": false
}
Example data
{
  "message": "Test event from QRChannels",
  "sent_by": "7f6e5d4c-3b2a-4190-8765-4321fedcba09"
}

Reserved for later

These types are already in the catalogue so you can build against them, but nothing emits them yet: beacon.onlinebeacon.offlinequota.warningquota.reachedscanner.erased.

Channel actions

A channel can also send its own scans to one subscription on the spot (Channel → Actions → Webhook). That is the same transport, the same signature and the same delivery log — use it when you want one endpoint per channel instead of a filtered feed.

See also the API reference and the MCP server.