Events and log streams

Every tap at a door, every sign-in and every change is an event. Read them from the feed, or have Passway deliver them to your own systems as they're sealed. Either way you get the same CloudEvents, chained and signed so that a copy can be checked without Passway.

Events

Each event is a CloudEvent 1.0, with Passway's own actortype, actorid and actorvia extensions saying who caused it and through what.

An event

{
  "specversion": "1.0",
  "id": "evt_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "source": "/orgs/org_acme",
  "type": "com.passway.access.denied",
  "subject": "ap_lab3in",
  "time": "2026-12-06T14:02:11Z",
  "datacontenttype": "application/json",
  "actortype": "person",
  "actorid": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "actorvia": "reader",
  "data": {
    "credential_id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "reason": "outside_schedule"
  },
  "chainseq": 48211,
  "chainhash": "9b1f3c…"
}
  • type always starts com.passway.. New types appear over time, so ignore the ones you don't know.
  • subject is the ID of the resource the event is about. Its prefix says what it is.
  • Delivery is at least once, and in order for each subject. Deduplicate on source and id.

Reading the feed

GET /v1/events needs events:read. Filter by type, subject, time (from and before) or category:

CategoryCovers
accessTaps at doors, granted and denied; doors held or forced open; readers going offline; musters and time clock punches.
directoryPeople, groups and connectors changing.
credentialsWallet passes, enrolments and passkeys.
sign_inSign-ins to the dashboard and to apps.
configurationSites, doors, readers, roles and other settings changing, and any type no other category covers.
systemPassway's own housekeeping, such as log checkpoints and key rotation.

To follow the feed, keep the ID of the last event you processed and pass it as after. Event IDs sort by time, so this picks up exactly where you left off:

cURL

curl -G https://acme.ext.passway.com/v1/events \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -d category=access,credentials \
  -d after=evt_01jd8k3m2v9x4q7r5t6w8y0z1a

Log streams

A log stream delivers the event log to storage you control, in the organization's own region, as each part of it is sealed:

  • An HTTPS endpoint, such as a SIEM. Passway posts batches of CloudEvents as application/cloudevents-batch+json. A 2xx means delivered.
  • A bucket in Amazon S3, Google Cloud Storage or Azure Blob Storage. Each batch is one object of gzipped JSON Lines, named PREFIX/YYYY/MM/DD/FIRST-LAST.jsonl.gz from the UTC date of its first event and the chainseq of its first and last events, so names sort in chain order.

Delivery is at least once and in chain order. Failures are retried with backoff of up to five minutes. A stream's status says how it's doing, and com.passway.log_stream.behind and com.passway.log_stream.recovered events say when that changes.

Checking a copy

Events are hash-chained for each organization. A few seconds after it happens, each event is sealed with a chainseq, its place in the chain, and a chainhash: the SHA-256 of the previous event's chainhash followed by this event. Every minute, the head of the chain is signed with the organization's key and recorded as a com.passway.log.checkpoint event.

So a copy of the log kept anywhere can be checked on its own: follow the hashes from one checkpoint to the next, and check each checkpoint's signature against the keys at /.well-known/jwks.json. A missing, altered or reordered event breaks the chain.

Retention

Events older than the organization's retention are purged every hour, except while a legal hold is on. Both are settings of the organization, and changing either is itself an event.