This first documented release covers the Version 1 API. Issue digital worker IDs as Apple Wallet files, Google Wallet save URLs or a single shareable wallet page. The service accepts worker information from Salesforce or another backend and places it on a branded card with a QR code.
.pkpass generation and Google Wallet save URLs.Base URL: https://<identity-service-host>.
| Method and route | Authentication | Success response |
|---|---|---|
POST /api/v1/passes/apple |
x-api-key |
200, binary .pkpass |
POST /api/v1/passes/google |
x-api-key |
200, JSON saveUrl |
POST /api/v1/passes/generate |
x-api-key |
200, selected apple and/or google JSON outputs |
POST /api/v1/passes/link |
x-api-key |
201, JSON url and expiresAt |
GET /w/:token |
Link token | 200, wallet selection HTML |
GET /w/:token/apple |
Link token | 200, binary .pkpass |
GET /w/:token/google |
Link token | 302, redirect to Google Wallet |
GET /assets/logo.png |
Public | 200, default logo PNG |
GET /assets/logo/:token.png |
Logo token | 200, custom logo PNG |
GET /health |
Public | 200, configuration status JSON, including degraded status |
All four POST endpoints require firstName, lastName, company, dob and employeeId. Name, company and employee ID fields accept up to 100 characters; dob uses YYYY-MM-DD and must be a valid past date.
| Optional field | Supported options |
|---|---|
middleName |
Up to 100 characters |
qrData |
Up to 500 characters; defaults to employeeId |
photoUrl |
HTTPS URL, up to 2,048 characters |
targetWallet |
apple, google or both (default); selects outputs on /generate and /link |
branding |
primaryColor, secondaryColor, tertiaryColor, title and logoSvg |
additionalDetails |
front (up to 3 rows), back (up to 10 rows), notice (up to 500 characters) |
Colours use six-digit hex values. Secondary and tertiary colours affect Apple only. The title accepts 30 characters, SVG accepts 20,000 characters, and each detail row has a label of up to 30 characters and a value of up to 100 characters. The request body limit is 100 KB.
For all defaults, validation rules, error codes and curl examples for each route, use the API reference.
Download worker.json into your working directory, then run:
curl --fail-with-body --silent --show-error \
'https://<identity-service-host>/api/v1/passes/link' \
-H 'Content-Type: application/json' \
-H 'x-api-key: <your-api-key>' \
--data-binary @worker.json
Open the returned url on the worker's phone. A successful response creates a link; it does not confirm wallet installation.
WorkerIdWalletLink.cls, its test class, both metadata files and the Salesforce DX project configuration. Extract before deployment.WorkerIdWalletLink.cls for a Salesforce project.Follow Apex and Flow setup to configure the WorkerIdWallet Named Credential and deploy the sample.
Wallet links expire after 30 days; saved cards do not expire with the link. There is no Version 1 endpoint for validating scans, recording attendance, updating installed cards or revoking individual passes. Changed Google card data creates a new object ID; repeated Apple generation creates a new serial number. Scan-time authorisation belongs to the receiving application.
The health endpoint reports wallet configuration; it does not confirm device installation or client clock compatibility.
https://<identity-service-host>/health