Reader groups
Readers that trust the same issuer keys and share one revocation list.
The reader group model
Readers that trust the same issuer keys and share one revocation list. Most organizations need one group per site; separate groups keep a test lab or a tenant's floor on its own trust list.
Properties
- Name
id- Type
- string
- Description
Reader group ID.
- Name
etag- Type
- string
- Description
Current version.
- Name
name- Type
- string
- Description
Display name, unique within the organization.
- Name
description- Type
- string
- Description
Free text.
- Name
site_id- Type
- string
- Description
The site this group serves, if it is tied to one. Cannot change. Can be
null.
- Name
reader_count- Type
- integer
- Description
How many readers are in the group, retired readers excluded.
- Name
require_post_quantum- Type
- boolean
- Description
Post-quantum required (#349): the group's readers accept an Access Document only with an ML-DSA-87 issuer signature beside the ECDSA one, and Passway adds it to every credential's documents. Readers need
aliro-readerdwithpq_issuer_keys. Documents grow by about 4.7 KB, which slows NFC taps: measure before turning it on for busy doors.
- 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 group was created.
- Name
updated_at- Type
- timestamp
- Description
When the group last changed.
List reader groups
Needs the reader-groups: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
site_id- Type
- string
- Description
Only groups tied to this site.
Request
curl https://acme.ext.passway.com/v1/reader-groups \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "HQ readers",
"description": "…",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"reader_count": 0,
"require_post_quantum": true,
"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 group
Needs the reader-groups: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
name- Type
- string
- Description
Display name, unique within the organization.
Optional attributes
- Name
description- Type
- string
- Description
Free text.
- Name
site_id- Type
- string
- Description
The site this group serves.
- Name
require_post_quantum- Type
- boolean
- Description
Post-quantum required (#349). Off by default.
- 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/reader-groups \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "HQ readers",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform"
}'
Response
{
"id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "HQ readers",
"description": "…",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"reader_count": 0,
"require_post_quantum": true,
"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"
}
Get a reader group
Needs the reader-groups:read scope.
Path parameters
- Name
reader_group_id- Type
- string
- Description
Reader group ID:
rgrp_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/reader-groups/rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "HQ readers",
"description": "…",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"reader_count": 0,
"require_post_quantum": true,
"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 group
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 reader-groups:write scope.
Path parameters
- Name
reader_group_id- Type
- string
- Description
Reader group ID:
rgrp_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
description- Type
- string
- Description
New description.
- Name
require_post_quantum- Type
- boolean
- Description
Turn post-quantum required on or off (#349).
- 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/reader-groups/rgrp_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": "rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "HQ readers",
"description": "…",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"reader_count": 0,
"require_post_quantum": true,
"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 group
A group that still has readers returns 409 with /problems/has-dependents.
Needs the reader-groups:write scope.
Path parameters
- Name
reader_group_id- Type
- string
- Description
Reader group ID:
rgrp_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/reader-groups/rgrp_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"'
Response
204 Deleted