Doors
Physical openings and their lock timings (ONVIF door): doors, turnstiles, barriers and mantraps.
The door model
A physical opening and its lock timings. The timings follow ONVIF
Timings; the extended times apply to access granted with the
extended_momentary_unsecure capability, for people who need longer.
Properties
- Name
id- Type
- string
- Description
Door ID.
- Name
etag- Type
- string
- Description
Current version.
- Name
site_id- Type
- string
- Description
The site the door is at. Cannot change.
- Name
name- Type
- string
- Description
Display name, unique within the site.
- Name
description- Type
- string
- Description
Free text.
- Name
kind- Type
- string
- Description
What kind of opening this is. One of
door,mantrap,turnstile,revolving_door,barrier,other.
- Name
release_seconds- Type
- integer
- Description
How long the lock stays released after access is granted, unless the door is opened (ONVIF
ReleaseTime).
- Name
open_seconds- Type
- integer
- Description
How long the door may stay open before
door.open_too_longis raised; 0 turns the alarm off (ONVIFOpenTime).
- Name
extended_release_seconds- Type
- integer
- Description
Time added to
release_secondsfor extended access (ONVIFExtendedReleaseTime).
- Name
extended_open_seconds- Type
- integer
- Description
Time added to
open_secondsfor extended access (ONVIFExtendedOpenTime).
- 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 door was created.
- Name
updated_at- Type
- timestamp
- Description
When the door last changed.
List doors
Needs the doors: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 doors at this site.
Request
curl https://acme.ext.passway.com/v1/doors \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Lab 3",
"description": "…",
"kind": "door",
"release_seconds": 1,
"open_seconds": 0,
"extended_release_seconds": 0,
"extended_open_seconds": 0,
"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 door
Needs the doors: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 the door is at.
- Name
name- Type
- string
- Description
Display name, unique within the site.
Optional attributes
- Name
description- Type
- string
- Description
Free text.
- Name
kind- Type
- string
- Description
What kind of opening this is. One of
door,mantrap,turnstile,revolving_door,barrier,other.
- Name
release_seconds- Type
- integer
- Description
How long the lock stays released after access is granted.
- Name
open_seconds- Type
- integer
- Description
How long the door may stay open before
door.open_too_long; 0 turns the alarm off.
- Name
extended_release_seconds- Type
- integer
- Description
Time added to
release_secondsfor extended access.
- Name
extended_open_seconds- Type
- integer
- Description
Time added to
open_secondsfor extended access.
- 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/doors \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Lab 3",
"kind": "door",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform"
}'
Response
{
"id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Lab 3",
"description": "…",
"kind": "door",
"release_seconds": 1,
"open_seconds": 0,
"extended_release_seconds": 0,
"extended_open_seconds": 0,
"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 door
Needs the doors:read scope.
Path parameters
- Name
door_id- Type
- string
- Description
Door ID:
door_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/doors/door_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Lab 3",
"description": "…",
"kind": "door",
"release_seconds": 1,
"open_seconds": 0,
"extended_release_seconds": 0,
"extended_open_seconds": 0,
"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 door
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 doors:write scope.
Path parameters
- Name
door_id- Type
- string
- Description
Door ID:
door_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
kind- Type
- string
- Description
New kind. One of
door,mantrap,turnstile,revolving_door,barrier,other.
- Name
release_seconds- Type
- integer
- Description
New release time.
- Name
open_seconds- Type
- integer
- Description
New open time; 0 turns the alarm off.
- Name
extended_release_seconds- Type
- integer
- Description
New extended release time.
- Name
extended_open_seconds- Type
- integer
- Description
New extended open time.
- 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/doors/door_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"' \
-H "Content-Type: application/merge-patch+json" \
-d '{
"kind": "door",
"labels": {
"old-label": null,
"team": "security"
}
}'
Response
{
"id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
"name": "Lab 3",
"description": "…",
"kind": "door",
"release_seconds": 1,
"open_seconds": 0,
"extended_release_seconds": 0,
"extended_open_seconds": 0,
"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 door
A door that access points control returns 409 with /problems/has-dependents.
Needs the doors:write scope.
Path parameters
- Name
door_id- Type
- string
- Description
Door ID:
door_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/doors/door_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"'
Response
204 Deleted