Readers
Aliro and retrofit readers. The API creates a reader and returns a one-time enrolment token; the device completes enrolment on the device API with mutual TLS.
The reader model
One Aliro or retrofit reader.
Properties
- Name
id- Type
- string
- Description
Reader ID.
- Name
etag- Type
- string
- Description
Current version.
- Name
reader_group_id- Type
- string
- Description
The reader group whose trust list this reader uses. Cannot change.
- Name
access_point_ids- Type
- array of strings
- Description
The access points this reader serves: usually one, or one per floor for an elevator reader. At the group's site, if the group is tied to one.
- Name
workload_audiences- Type
- array of strings
- Description
The audiences this may ask for workload tokens for: short-lived JWTs that other platforms trust, such as
sts.amazonaws.com. Exact strings; empty means none.
- Name
name- Type
- string
- Description
Display name.
- Name
status- Type
- string
- Description
Where the reader is in its life. One of
pending_enrollment,online,offline,retired.
- Name
device- Type
- object
- Description
What the device reported;
nulluntil it enrols. Can benull.
- Name
device.model- Type
- string
- Description
Hardware model.
- Name
device.firmware_version- Type
- string
- Description
Firmware version.
- Name
device.serial_number- Type
- string
- Description
Hardware serial number.
- Name
device.transports- Type
- array of strings
- Description
Radios the reader supports. One of
nfc,ble,uwb.
- Name
device.retrofit- Type
- boolean
- Description
True for a retrofit reader, which passes an existing reader's badges through to the panel alongside Aliro taps.
- Name
device.kiosk- Type
- boolean
- Description
True for a kiosk (#364): a phone or tablet running the Passway app as a scanner. People present over Passway's post-quantum exchange, usually over
ble. A kiosk can't drive a door strike: it records check-ins, or stands beside a door as its post-quantum second factor. Its reader group should require post-quantum.
- Name
last_seen_at- Type
- timestamp
- Description
When the reader last checked in. Can be
null.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages this resource, such as
terraform. Can benull.
- Name
created_at- Type
- timestamp
- Description
When the reader was created.
- Name
updated_at- Type
- timestamp
- Description
When the reader last changed.
List readers
Needs the readers:read scope.
Query parameters
- Name
page_size- Type
- integer
- Description
Results per page, 1 to 200.
0or absent means 50; more than 200 means 200 (AIP-158).
- Name
page_token- Type
- string
- Description
next_page_tokenfrom the previous page.
- Name
updated_since- Type
- timestamp
- Description
Only resources changed at or after this time.
- Name
reader_group_id- Type
- string
- Description
Only readers in this group.
- Name
access_point_id- Type
- string
- Description
Only readers that serve this access point.
- Name
status- Type
- string
- Description
Only readers with this status. One of
pending_enrollment,online,offline,retired.
Request
curl https://acme.ext.passway.com/v1/readers \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "rdr_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"reader_group_id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"access_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"workload_audiences": [
"…"
],
"name": "Lab 3 entry",
"status": "pending_enrollment",
"device": null,
"last_seen_at": "2026-11-30T14:02:11Z",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
],
"next_page_token": null
}
Create a reader
The response holds a one-time enrollment_token for the installer or provisioning script. It is not shown again.
Needs the readers:write scope.
Headers
- Name
Idempotency-Key- Type
- string
- Description
A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns
422; repeating it while the first is still running returns409withRetry-After.
Required attributes
- Name
reader_group_id- Type
- string
- Description
The reader group whose trust list this reader uses.
- Name
name- Type
- string
- Description
Display name.
Optional attributes
- Name
access_point_ids- Type
- array of strings
- Description
The access points this reader serves; at the group's site, if the group is tied to one.
- Name
workload_audiences- Type
- array of strings
- Description
The audiences this may ask for workload tokens for (see
POST /oauth/tokenwithaudience): at most 10 exact strings.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages this resource. Terraform sets
terraform.
Request
curl -X POST https://acme.ext.passway.com/v1/readers \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reader_group_id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Lab 3 entry",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform"
}'
Response
{
"reader": {
"id": "rdr_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"reader_group_id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"access_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"workload_audiences": [
"…"
],
"name": "Lab 3 entry",
"status": "pending_enrollment",
"device": null,
"last_seen_at": "2026-11-30T14:02:11Z",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
},
"enrollment_token": "rdr-enroll-7Hq2kX9vN4mP8sL3",
"enrollment_token_expires_at": "2026-11-30T14:02:11Z"
}
Get a reader
Needs the readers:read scope.
Path parameters
- Name
reader_id- Type
- string
- Description
Reader ID:
rdr_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/readers/rdr_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "rdr_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"reader_group_id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"access_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"workload_audiences": [
"…"
],
"name": "Lab 3 entry",
"status": "pending_enrollment",
"device": null,
"last_seen_at": "2026-11-30T14:02:11Z",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Update a reader
A JSON merge patch (RFC 7396): fields in the body replace the current ones, null removes a field where the schema allows null, and objects such as labels are merged. Requires If-Match with the current etag.
Needs the readers:write scope.
Path parameters
- Name
reader_id- Type
- string
- Description
Reader ID:
rdr_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
The resource's current
etag, in double quotes. Required.
Optional attributes
- Name
name- Type
- string
- Description
New name.
- Name
access_point_ids- Type
- array of strings
- Description
New access points, replacing the current ones.
- Name
workload_audiences- Type
- array of strings
- Description
New workload audiences, replacing the current ones.
- Name
labels- Type
- object
- Description
Labels to set or remove, or
nullto remove every label. Can benull.
- Name
managed_by- Type
- string
- Description
New managing tool, or
nullto clear it. Can benull.
Request
curl -X PATCH https://acme.ext.passway.com/v1/readers/rdr_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"' \
-H "Content-Type: application/merge-patch+json" \
-d '{
"labels": {
"old-label": null,
"team": "security"
}
}'
Response
{
"id": "rdr_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"reader_group_id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"access_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"workload_audiences": [
"…"
],
"name": "Lab 3 entry",
"status": "pending_enrollment",
"device": null,
"last_seen_at": "2026-11-30T14:02:11Z",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Delete a reader
Only readers in pending_enrollment or retired can be deleted; retire an enrolled reader first.
Needs the readers:write scope.
Path parameters
- Name
reader_id- Type
- string
- Description
Reader ID:
rdr_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
The resource's current
etag, in double quotes. Required.
Request
curl -X DELETE https://acme.ext.passway.com/v1/readers/rdr_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"'
Response
204 Deleted
Retire a reader
Revokes the reader's certificate so it can no longer check in or receive trust lists. The reader keeps its history. Retiring cannot be undone.
Needs the readers:write scope.
Path parameters
- Name
reader_id- Type
- string
- Description
Reader ID:
rdr_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
If set, the action only runs if the resource's
etagstill matches.
Request
curl -X POST https://acme.ext.passway.com/v1/readers/rdr_01jd8k3m2v9x4q7r5t6w8y0z1a:retire \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "rdr_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"reader_group_id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"access_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"workload_audiences": [
"…"
],
"name": "Lab 3 entry",
"status": "pending_enrollment",
"device": null,
"last_seen_at": "2026-11-30T14:02:11Z",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}