Docs
Automation platforms
Authentication
Create a key under Settings → API keys with the scopes the app needs (hooks:write and events:read for triggers, plus the action scopes below). Send it on every request:
Authorization: Bearer qrc_live_…An OAuth 2.0 sign-in for third-party apps is planned; API keys are the supported method today.
Triggers (REST hooks)
When a user turns a Zap or scenario on, the app subscribes; when they turn it off, it unsubscribes.
POST https://qrchannels.io/api/public/v1/hooks
{ "target_url": "https://hooks.zapier.com/hooks/catch/…",
"event_types": ["scan.allowed"],
"filter": { "channel_ids": ["6a2f4a82-…"] } }
→ 201 { "id": "…", "signing_secret": "…", "event_types": ["scan.allowed"], … }
DELETE https://qrchannels.io/api/public/v1/hooks/{id} → 204Each delivery is a CloudEvents 1.0 JSON body, signed like every webhook (X-QRC-Signature, see Events). Failed deliveries are retried for 24 hours, in order. target_url must be public HTTPS.
Sample data for field mapping
GET https://qrchannels.io/api/public/v1/events/sample?type=scan.allowed
→ { "source": "recent" | "example", "data": [ …up to 3 CloudEvents… ] }Returns the three newest real events of that type, or the documented example when there are none yet.
Polling fallback
GET https://qrchannels.io/api/public/v1/events?after={last_event_id}&limit=100Events come in a stable order (by sequence). Use the event id as the dedupe key and pass the last one back as after.
Actions
| Action | Endpoint | Scope |
|---|---|---|
| Create one-time link | POST /links | links:create |
| Set channel status | PATCH /channels/{id} | channels:write |
| Fire trigger | POST /triggers/{id}/fire | triggers:write |
| Upsert scanner | POST /scanners | scanners:write |
| Replace access list entries | PUT /access-lists/{id}/entries | access_lists:write |
Bodies and responses are in the API reference. POST requests accept an Idempotency-Key header so a retried step never acts twice.