Open Site Pass
An open QR code standard for signing in to work sites. Any app can show a pass, and any kiosk can read one.
Version 1, November 2026. Free to use under CC BY 4.0.
Contractors sign in at a different site every week, and each one asks for the same details: name, company, mobile, vehicle, Site Safe card. Open Site Pass lets them carry those details in an app and hand them over by showing a QR code. Any app can show a pass, and any sign-in kiosk can read one, whoever made them.
Before writing this we looked for an existing standard. Visitor sign-in products that use QR passes each have their own format that only works inside that product. The general identity standards (W3C Verifiable Credentials, OpenID for Verifiable Presentations, ISO 18013-5 mobile driving licences) need a wallet app and a multi-step exchange, which is more than a tablet at a site gate needs. So this is a small format: a short link in the QR code, and plain JSON behind it that any language can read.
1. What's in the QR code
The QR code holds only a short HTTPS link on the issuer's own domain, no longer than 48 characters, such as https://timeclock.kiwi/sp/Ab3dE5gH7jK9mN. Make the random part of the link at least 12 characters.
Keep the QR code as small as you can. Small codes are coarse, and coarse codes are what tablet cameras read reliably off a phone screen. Everything else comes from your server, so a pass can carry as much as it needs without the code getting any bigger.
2. The pass
A kiosk fetches the link with Accept: application/json, and the issuer's server returns the pass as JSON. Send it with Cache-Control: no-store and Access-Control-Allow-Origin: *, so kiosks that run in a browser can fetch it too. A link that has expired, or never existed, returns 404.
{
"version": 1,
"holderId": "b7f3c2e1a94d0c55e1f3b2a8",
"firstName": "Sam",
"lastName": "Taylor",
"company": "Harbour Electrical Ltd",
"phone": "+64215550142",
"vehicleRegistration": "QKT482",
"documents": [
{ "type": "site-safe-passport", "number": "SS-482913", "expiresOn": "2027-03-31" }
]
} | version | Always 1 for this version. |
|---|---|
| holderId | The same for one person with one issuer, and different with every other issuer. Lets a site recognise a returning visitor. It must not be an employee number, email or anything else that identifies them elsewhere. |
| firstName, lastName | Their name. |
| company | Who they work for, if they chose to share it. |
| phone | Mobile number, ideally in international form. |
| Email address. | |
| vehicleRegistration | Number plate of the vehicle they came in. |
| documents | Cards and certificates: each has type (from the list below), and optionally number, issuer and expiresOn (YYYY-MM-DD). |
Required: version, holderId, firstName. Everything else is optional and chosen by the holder each time.
The issuer is whoever serves the link. HTTPS proves the pass came from them, so a pass isn't signed and has no issuer field.
Document types
site-safe-passport | Site Safe passport |
|---|---|
public-liability-insurance | Public liability insurance |
electrical-registration | Electrical registration |
plumbing-gasfitting-registration | Plumbing, gasfitting or drainlaying registration |
forklift-licence | Forklift licence (F endorsement) |
first-aid-certificate | First aid certificate |
working-at-heights | Working at heights |
confined-spaces | Confined spaces |
construction-induction-card | Construction induction card (White Card) |
cscs-card | CSCS card |
To propose another type, get in touch below. Kiosks keep documents with types they don't know, but don't match them to anything.
3. Rules for kiosks
- Only accept QR codes that hold an HTTPS link of up to 48 characters.
- Fetch the link straight away, only from a public address, and don't follow redirects. Treat the link's domain as the issuer.
- Show the details and the issuer's domain, and let the visitor confirm before anything is saved.
- Treat document details as what the holder entered, not as checked. If your site needs it checked, have a person look at the real card.
- You may only accept passes from issuers you trust, or accept any HTTPS issuer and show "Verified by <domain>".
- Never ask the holder's app for more than the pass carries. The holder chooses what to share.
4. Rules for apps
- Show a new link at least every minute while the pass is on screen, and stop each link working a minute or two later, so a photo of the QR code is soon useless.
- Let the holder choose which optional details go in, every time or as a saved choice they can change.
- Never put in anything the holder didn't choose, including their employer, location or internal ids.
5. Checking a pass in JavaScript
This is all a kiosk needs:
async function readPass(qrText) {
// The QR code holds only a short HTTPS link
const link = new URL(qrText);
if (link.protocol !== 'https:' || qrText.length > 48) throw new Error('Not a site pass');
// The issuer's server returns the pass. HTTPS proves who sent it, so there's nothing to check
const res = await fetch(link, { headers: { accept: 'application/json' }, redirect: 'error' });
if (res.status === 404) throw new Error('Expired, ask them to open their pass again');
const pass = await res.json();
if (pass.version !== 1 || !pass.holderId || !pass.firstName) throw new Error('Not a site pass');
return { issuer: link.hostname, ...pass };
} Using it with Timeclock.Kiwi
Anyone signed in to the Timeclock.Kiwi app can show a pass from My Site Pass, and every Timeclock.Kiwi site sign-in kiosk reads them, including passes from other apps that follow this format.