Musters
Roll calls at a site, as in an evacuation (#75). Creating one starts it: the people inside the site then, by their last passage through an access point in the 24 hours before, are expected. They are counted off as they tap at a muster point (a reader at the assembly point, granted or not), go out of the site through a reader, or are marked safe by a warden (:account). missing is who is left. A site has one muster going at a time; :end stops counting and keeps the roll as it stood.
The muster model
A roll call at a site, as in an evacuation.
Properties
- Name
id- Type
- string
- Description
Muster ID.
- Name
etag- Type
- string
- Description
Current version.
- Name
site_id- Type
- string
- Description
The site being evacuated. Cannot change.
- Name
name- Type
- string
- Description
Display name.
- Name
description- Type
- string
- Description
Free text.
- Name
muster_point_ids- Type
- array of strings
- Description
Access points at the assembly points: a tap there, granted or not, counts the person off.
- Name
status- Type
- string
- Description
Whether it is still counting. One of
active,ended.
- Name
ended_at- Type
- timestamp
- Description
When it ended (
POST /v1/musters/{muster_id}:end). It started when it was created. Can benull.
- Name
expected_count- Type
- integer
- Description
How many people were inside the site when it was created, by their last passage in the 24 hours before.
- Name
accounted- Type
- array of objects
- Description
The people counted off, in order.
- Name
accounted[].person_id- Type
- string
- Description
The person.
- Name
accounted[].at- Type
- timestamp
- Description
When.
- Name
accounted[].by- Type
- string
- Description
How. One of
muster_point,left_site,warden.
- Name
accounted[].access_point_id- Type
- string
- Description
Where, for a muster point or a way out. Can be
null.
- Name
missing- Type
- array of strings
- Description
The people expected and not yet counted off.
- 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 muster was created: when it started.
- Name
updated_at- Type
- timestamp
- Description
When the muster last changed.
List musters
Needs the musters: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 musters at this site.
- Name
status- Type
- string
- Description
Only musters in this state. One of
active,ended.
Request
curl https://acme.ext.passway.com/v1/musters \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "mus_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"description": "…",
"muster_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"status": "active",
"ended_at": "2026-11-30T14:02:11Z",
"expected_count": 0,
"accounted": [
{}
],
"missing": [
"per_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"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 muster
A site with a muster going returns 409.
Needs the musters: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
site_id- Type
- string
- Description
The site being evacuated. One muster at a time per site.
- Name
name- Type
- string
- Description
Display name.
Optional attributes
- Name
description- Type
- string
- Description
Free text.
- Name
muster_point_ids- Type
- array of strings
- Description
Access points at the assembly points, at the same site.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages this resource.
Request
curl -X POST https://acme.ext.passway.com/v1/musters \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform"
}'
Response
{
"id": "mus_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"description": "…",
"muster_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"status": "active",
"ended_at": "2026-11-30T14:02:11Z",
"expected_count": 0,
"accounted": [
{
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"at": "2026-11-30T14:02:11Z",
"by": "muster_point",
"access_point_id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
}
],
"missing": [
"per_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"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 muster
Needs the musters:read scope.
Path parameters
- Name
muster_id- Type
- string
- Description
Muster ID:
mus_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/musters/mus_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "mus_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"description": "…",
"muster_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"status": "active",
"ended_at": "2026-11-30T14:02:11Z",
"expected_count": 0,
"accounted": [
{
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"at": "2026-11-30T14:02:11Z",
"by": "muster_point",
"access_point_id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
}
],
"missing": [
"per_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"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 muster
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 musters:write scope.
Path parameters
- Name
muster_id- Type
- string
- Description
Muster ID:
mus_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
muster_point_ids- Type
- array of strings
- Description
The muster points, 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/musters/mus_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": "mus_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"description": "…",
"muster_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"status": "active",
"ended_at": "2026-11-30T14:02:11Z",
"expected_count": 0,
"accounted": [
{
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"at": "2026-11-30T14:02:11Z",
"by": "muster_point",
"access_point_id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
}
],
"missing": [
"per_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"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 muster
Its events stay in the log.
Needs the musters:write scope.
Path parameters
- Name
muster_id- Type
- string
- Description
Muster ID:
mus_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/musters/mus_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"'
Response
204 Deleted
Mark someone safe
A warden counts someone off by hand, such as a person seen at the assembly point without their phone. Raises com.passway.muster.accounted. An ended muster returns 409.
Needs the musters:write scope.
Path parameters
- Name
muster_id- Type
- string
- Description
Muster ID:
mus_followed by 1 to 64 lowercase letters and digits.
Required attributes
- Name
person_id- Type
- string
- Description
The person.
Request
curl -X POST https://acme.ext.passway.com/v1/musters/mus_01jd8k3m2v9x4q7r5t6w8y0z1a:account \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a"
}'
Response
{
"id": "mus_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"description": "…",
"muster_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"status": "active",
"ended_at": "2026-11-30T14:02:11Z",
"expected_count": 0,
"accounted": [
{
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"at": "2026-11-30T14:02:11Z",
"by": "muster_point",
"access_point_id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
}
],
"missing": [
"per_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"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"
}
End a muster
Stops counting and keeps the roll as it stands. Raises com.passway.muster.ended with the counts. An ended muster returns 409.
Needs the musters:write scope.
Path parameters
- Name
muster_id- Type
- string
- Description
Muster ID:
mus_followed by 1 to 64 lowercase letters and digits.
Request
curl -X POST https://acme.ext.passway.com/v1/musters/mus_01jd8k3m2v9x4q7r5t6w8y0z1a:end \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "mus_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Fire alarm, east stair",
"description": "…",
"muster_point_ids": [
"ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"status": "active",
"ended_at": "2026-11-30T14:02:11Z",
"expected_count": 0,
"accounted": [
{
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"at": "2026-11-30T14:02:11Z",
"by": "muster_point",
"access_point_id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a"
}
],
"missing": [
"per_01jd8k3m2v9x4q7r5t6w8y0z1a"
],
"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"
}