Docs

API reference

Read your organization's data and follow its events from your own systems.

Authentication

Owners and admins create keys under Settings → API keys. A key looks like qrc_live_…, is shown once and can be revoked at any time. Send it as a bearer token:

curl https://qrchannels.io/api/public/v1/channels \
  -H "Authorization: Bearer qrc_live_..."

Limit: 600 requests per minute per key (HTTP 429 above). Lists are newest first; pass next_cursor back as ?cursor=. POST requests accept an Idempotency-Key header. Errors look like {"error":{"code","message"}}.

Machine-readable description: openapi.json (OpenAPI 3.1).

Scopes

A write scope includes reading the same resource.

channels:readchannels:writebeacons:readscans:readpresence:readchains:readlinks:createscanners:readscanners:writeaccess_lists:writeevents:readtriggers:writehooks:writeattest:writeattest:read

Endpoints

GET /channels

List channels · scope channels:read

Query: limit, cursor

curl https://qrchannels.io/api/public/v1/channels -H "Authorization: Bearer $QRC_KEY"
GET /channels/{id}

Get a channel · scope channels:read

curl https://qrchannels.io/api/public/v1/channels/<id> -H "Authorization: Bearer $QRC_KEY"
PATCH /channels/{id}

Turn a channel on or off · scope channels:write

curl -X PATCH https://qrchannels.io/api/public/v1/channels/<id> \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
GET /beacons

List displays · scope beacons:read

Query: limit, cursor

curl https://qrchannels.io/api/public/v1/beacons -H "Authorization: Bearer $QRC_KEY"
GET /scans

List scans (newest first) · scope scans:read

Query: from, to, channel_id, result, limit, cursor

curl https://qrchannels.io/api/public/v1/scans -H "Authorization: Bearer $QRC_KEY"
GET /scans/{id}

Get a scan with signals and action trace · scope scans:read

curl https://qrchannels.io/api/public/v1/scans/<id> -H "Authorization: Bearer $QRC_KEY"
GET /presence

List presence records · scope presence:read

Query: from, to, channel_id, scanner_id, limit, cursor

curl https://qrchannels.io/api/public/v1/presence -H "Authorization: Bearer $QRC_KEY"
GET /chains/runs

List guard-tour runs with steps · scope chains:read

Query: from, to, limit, cursor

curl https://qrchannels.io/api/public/v1/chains/runs -H "Authorization: Bearer $QRC_KEY"
GET /scanners

List scanners (email hashed when PII redaction is on) · scope scanners:read

Query: limit, cursor

curl https://qrchannels.io/api/public/v1/scanners -H "Authorization: Bearer $QRC_KEY"
POST /scanners

Create or update a scanner by email ({display_name, email}) · scope scanners:write

curl -X POST https://qrchannels.io/api/public/v1/scanners \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
POST /links

Create a one-time verified link on a STATIC channel (channel_id, expires_in seconds, max_scans, metadata) · scope links:create

curl -X POST https://qrchannels.io/api/public/v1/links \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
POST /scanners/import

Create or update up to 1000 scanners by email ({scanners: [{display_name, email}]}) · scope scanners:write

curl -X POST https://qrchannels.io/api/public/v1/scanners/import \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
PATCH /scanners/{id}

Rename a scanner ({display_name}) · scope scanners:write

curl -X PATCH https://qrchannels.io/api/public/v1/scanners/<id> \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
PUT /access-lists/{id}/entries

Replace all entries of an access list ({entries: [{email, valid_from, valid_to, weekdays 1-7, time_from HH:MM, time_to}]}) · scope access_lists:write

curl -X PUT https://qrchannels.io/api/public/v1/access-lists/<id>/entries \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
POST /triggers/{id}/fire

Fire a webhook trigger. Authenticate with an API key, or sign with the trigger secret: X-QRC-Timestamp + X-QRC-Signature = hex HMAC-SHA256(secret, timestamp + '.' + body) · scope triggers:write

curl -X POST https://qrchannels.io/api/public/v1/triggers/<id>/fire \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
GET /events

Event feed in order (polling alternative to webhooks) · scope events:read

Query: after, limit

curl https://qrchannels.io/api/public/v1/events -H "Authorization: Bearer $QRC_KEY"
GET /events/sample

Up to 3 recent real events of one type (or a documented example) for field mapping in automation editors · scope events:read

Query: type

curl https://qrchannels.io/api/public/v1/events/sample -H "Authorization: Bearer $QRC_KEY"
POST /hooks

Subscribe a REST hook (Zapier, Make, n8n): {target_url, event_types, filter?} · scope hooks:write

curl -X POST https://qrchannels.io/api/public/v1/hooks \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
GET /hooks

List REST hooks created with API keys · scope hooks:write

curl https://qrchannels.io/api/public/v1/hooks -H "Authorization: Bearer $QRC_KEY"
POST /authorizations/dual

Create a two-person authorization at one or more displays · scope attest:write

curl -X POST https://qrchannels.io/api/public/v1/authorizations/dual \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
POST /authorizations/approve

Ask one named person to approve an operation in person · scope attest:write

curl -X POST https://qrchannels.io/api/public/v1/authorizations/approve \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
GET /authorizations/{id}

Get an authorization with participations and, once approved, the attestation JWS · scope attest:read

curl https://qrchannels.io/api/public/v1/authorizations/<id> -H "Authorization: Bearer $QRC_KEY"
POST /authorizations/{id}/cancel

Cancel a pending authorization · scope attest:write

curl -X POST https://qrchannels.io/api/public/v1/authorizations/<id>/cancel \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'
DELETE /hooks/{id}

Unsubscribe a REST hook · scope hooks:write

curl -X DELETE https://qrchannels.io/api/public/v1/hooks/<id> \
  -H "Authorization: Bearer $QRC_KEY" -H "content-type: application/json" \
  -d '{...}'

Event feed

GET /events?after=<event id> returns CloudEvents 1.0 envelopes in the order they happened. Store next_after and pass it on the next call. Prefer webhooks (Settings → Events & webhooks) when your system can receive them.