Access points

One controlled way from one area into another (ONVIF access point). Readers serve access points, and access profiles grant access to them. A door with a reader on each side has two; an elevator has one per floor. An access point with timekeeping is a time clock: its grants are punches (GET /v1/time-punches). An access point's policy_mode follows Kubernetes Pod Security admission: enforce (the default) keeps out whoever the access policies don't allow; audit lets in anyone with a working credential of the organization, and com.passway.access.granted says whether the policies allowed them (permitted); warn does the same and raises com.passway.access.policy_warning.

The access point model

One controlled way from one area into another. Access profiles grant access to access points, and readers serve them.

Properties

  • Name
    id
    Type
    string
    Description

    Access point ID.

  • Name
    etag
    Type
    string
    Description

    Current version.

  • Name
    site_id
    Type
    string
    Description

    The site the access point is at. Cannot change.

  • Name
    name
    Type
    string
    Description

    Display name, unique within the site.

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    door_id
    Type
    string
    Description

    The door this access point controls, at the same site; null for one without a door, such as an elevator floor. Can be null.

  • Name
    area_from_id
    Type
    string
    Description

    The area people leave through this access point, at the same site (ONVIF AreaFrom). Can be null.

  • Name
    area_to_id
    Type
    string
    Description

    The area people enter through this access point, at the same site (ONVIF AreaTo). Can be null.

  • Name
    enabled
    Type
    boolean
    Description

    A disabled access point refuses every credential.

  • Name
    policy_mode
    Type
    string
    Description

    enforce keeps out whoever the access policies don't allow; audit lets in anyone with a working credential of the organization and records whether the policies allowed them; warn does the same and raises com.passway.access.policy_warning too (as Kubernetes Pod Security admission's modes). A reader serving several access points lets people in only when none of them is in enforce. One of enforce, audit, warn.

  • Name
    timekeeping
    Type
    boolean
    Description

    Whether passages here are time clock punches (#324): each grant here also raises com.passway.time.punch, in when it leads into the site from outside and out when it leads out. Off by default.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource, such as terraform. Can be null.

  • Name
    created_at
    Type
    timestamp
    Description

    When the access point was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    When the access point last changed.


GET/v1/access-points

List access points

Needs the access-points:read scope.

Query parameters

  • Name
    page_size
    Type
    integer
    Description

    Results per page, 1 to 200. 0 or absent means 50; more than 200 means 200 (AIP-158).

  • Name
    page_token
    Type
    string
    Description

    next_page_token from the previous page.

  • Name
    updated_since
    Type
    timestamp
    Description

    Only resources changed at or after this time.

  • Name
    site_id
    Type
    string
    Description

    Only access points at this site.

  • Name
    door_id
    Type
    string
    Description

    Only access points that control this door.

  • Name
    area_id
    Type
    string
    Description

    Only access points into or out of this area.

Request

GET
/v1/access-points
curl https://acme.ext.passway.com/v1/access-points \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "data": [
    {
      "id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "name": "Lab 3 entry",
      "description": "…",
      "door_id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "area_from_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "area_to_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "enabled": true,
      "policy_mode": "enforce",
      "timekeeping": 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
}

POST/v1/access-points

Create an access point

Needs the access-points: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 returns 409 with Retry-After.

Required attributes

  • Name
    site_id
    Type
    string
    Description

    The site the access point is at.

  • Name
    name
    Type
    string
    Description

    Display name, unique within the site.

Optional attributes

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    door_id
    Type
    string
    Description

    The door this access point controls, at the same site.

  • Name
    area_from_id
    Type
    string
    Description

    The area people leave through this access point, at the same site.

  • Name
    area_to_id
    Type
    string
    Description

    The area people enter through this access point, at the same site.

  • Name
    enabled
    Type
    boolean
    Description

    Whether the access point accepts credentials.

  • Name
    policy_mode
    Type
    string
    Description

    enforce (the default), audit (let in anyone with a working credential of the organization, and record whether the access policies allowed them) or warn (audit, and raise com.passway.access.policy_warning). One of enforce, audit, warn.

  • Name
    timekeeping
    Type
    boolean
    Description

    Whether passages here are time clock punches (com.passway.time.punch). 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

POST
/v1/access-points
curl -X POST https://acme.ext.passway.com/v1/access-points \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "name": "Lab 3 entry",
    "door_id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "area_from_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "area_to_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "policy_mode": "enforce",
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    },
    "managed_by": "terraform"
  }'

Response

{
  "id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "name": "Lab 3 entry",
  "description": "…",
  "door_id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "area_from_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "area_to_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "enabled": true,
  "policy_mode": "enforce",
  "timekeeping": 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/v1/access-points/{access_point_id}

Get an access point

Needs the access-points:read scope.

Path parameters

  • Name
    access_point_id
    Type
    string
    Description

    Access point ID: ap_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/access-points/{access_point_id}
curl https://acme.ext.passway.com/v1/access-points/ap_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "name": "Lab 3 entry",
  "description": "…",
  "door_id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "area_from_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "area_to_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "enabled": true,
  "policy_mode": "enforce",
  "timekeeping": 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"
}

PATCH/v1/access-points/{access_point_id}

Update an access point

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 access-points:write scope.

Path parameters

  • Name
    access_point_id
    Type
    string
    Description

    Access point ID: ap_ 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
    door_id
    Type
    string
    Description

    New door, or null for none. Can be null.

  • Name
    area_from_id
    Type
    string
    Description

    New area people leave, or null for none. Can be null.

  • Name
    area_to_id
    Type
    string
    Description

    New area people enter, or null for none. Can be null.

  • Name
    enabled
    Type
    boolean
    Description

    Enable or disable the access point.

  • Name
    policy_mode
    Type
    string
    Description

    enforce, audit or warn. One of enforce, audit, warn.

  • Name
    timekeeping
    Type
    boolean
    Description

    Make passages here time clock punches, or stop.

  • Name
    labels
    Type
    object
    Description

    Labels to set or remove, or null to remove every label. Can be null.

  • Name
    managed_by
    Type
    string
    Description

    New managing tool, or null to clear it. Can be null.

Request

PATCH
/v1/access-points/{access_point_id}
curl -X PATCH https://acme.ext.passway.com/v1/access-points/ap_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"' \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "door_id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "area_from_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "area_to_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
    "policy_mode": "enforce",
    "labels": {
      "old-label": null,
      "team": "security"
    }
  }'

Response

{
  "id": "ap_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "site_id": "site_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "name": "Lab 3 entry",
  "description": "…",
  "door_id": "door_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "area_from_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "area_to_id": "area_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "enabled": true,
  "policy_mode": "enforce",
  "timekeeping": 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/v1/access-points/{access_point_id}

Delete an access point

Readers that serve the access point stop serving it. Access profiles that name it stop covering it.

Needs the access-points:write scope.

Path parameters

  • Name
    access_point_id
    Type
    string
    Description

    Access point ID: ap_ 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

DELETE
/v1/access-points/{access_point_id}
curl -X DELETE https://acme.ext.passway.com/v1/access-points/ap_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"'

Response

204 Deleted