Organization

The organization itself: where its data lives, its issuer, and its event log's retention and legal hold.

The organization model

The organization.

Properties

  • Name
    id
    Type
    string
    Description

    Organization ID.

  • Name
    display_name
    Type
    string
    Description

    Its name, as people see it in the console and in the passkey chooser; null until set. Can be null.

  • Name
    issuer
    Type
    string
    Description

    Its OAuth and OpenID Connect issuer: its own host.

  • Name
    data_location
    Type
    string
    Description

    Where its data is stored and processed: the location of its cell. Set when the organization is created.

  • Name
    kind
    Type
    string
    Description

    What kind of place it runs. One of workplace, residential.

  • Name
    event_retention_days
    Type
    integer
    Description

    How many days the event log keeps events. Older events are purged hourly, except during a legal hold. Signed checkpoints and purge records are kept.

  • Name
    legal_hold
    Type
    boolean
    Description

    While true, nothing is purged.

  • Name
    require_device_keys
    Type
    boolean
    Description

    Whether every reader and phone must prove its device keys (#248) on every device call, so a device token alone is refused, and devices must register keys when they enroll. Devices enrolled before device keys register them at their next start; check that they have before turning this on.

  • Name
    issuer_rotation_days
    Type
    integer
    Description

    How often, in days, the issuer keys rotate on their own (#349); 0 for only when an administrator asks. Every 3 days by default, as long as an Access Document lasts. A rotation has no downtime, and readers keep trusting the old keys for as long as a document signed with them can last (3 days and an hour). So a key stolen without anyone noticing stops opening doors at most this many days plus 3 later: about 6 days by default.

  • Name
    face_recognition
    Type
    boolean
    Description

    Whether cameras may report face recognition (#382). Off by default. Face geometry is biometric information under laws such as Illinois's BIPA, which needs a public policy and each person's written consent first: turn this on only once counsel has signed off. Passway keeps no face data, only which person a camera matched and how sure it was.

  • Name
    manual_group_members
    Type
    string
    Description

    Whether people may be added to groups by hand: allowed (the default), approval (by a request someone else approves) or never. No group can loosen it; the break-glass group is exempt. One of allowed, approval, never.

  • Name
    max_manual_member_days
    Type
    integer
    Description

    The longest any addition to a group by hand may last, in days; null for no limit beyond each group's own. The break-glass group is exempt. Can be null.

  • Name
    created_at
    Type
    timestamp
    Description

    When it was created.


GET/v1/organization

Get the organization

Where its data lives, its issuer, and how long its event log keeps events.

Needs the organization:read scope.

Request

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

Response

{
  "id": "org_acme",
  "display_name": "Acme",
  "issuer": "https://acme.ext.passway.com",
  "data_location": "us",
  "kind": "workplace",
  "event_retention_days": 365,
  "legal_hold": true,
  "require_device_keys": true,
  "issuer_rotation_days": 3,
  "face_recognition": true,
  "manual_group_members": "allowed",
  "max_manual_member_days": null,
  "created_at": "2026-11-30T14:02:11Z"
}

PATCH/v1/organization

Update the organization

A JSON merge patch (RFC 7396) of the name, the kind, the event retention, the legal hold, whether devices must prove their device keys (require_device_keys) and how often the issuer keys rotate on their own (issuer_rotation_days). Requires If-Match with the current etag. The data location and issuer are set when the organization is created and cannot be changed here. Each change is a com.passway.organization.updated event, so the start and end of a legal hold are in the log.

Needs the organization:write scope.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Optional attributes

  • Name
    display_name
    Type
    string
    Description

    A new name, or null to clear it. Can be null.

  • Name
    kind
    Type
    string
    Description

    New kind. One of workplace, residential.

  • Name
    event_retention_days
    Type
    integer
    Description

    New retention, or null for the kind's default. Can be null.

  • Name
    legal_hold
    Type
    boolean
    Description

    Start or end a legal hold.

  • Name
    require_device_keys
    Type
    boolean
    Description

    Require device keys, or stop requiring them.

  • Name
    issuer_rotation_days
    Type
    integer
    Description

    A new interval for the issuer keys to rotate on their own, in days; 0 for only when asked.

  • Name
    face_recognition
    Type
    boolean
    Description

    Accept face recognition from cameras, or stop accepting it. Turning it off leaves cameras' face_recognition set, but refuses their face results.

  • Name
    manual_group_members
    Type
    string
    Description

    Whether people may be added to groups by hand, for every group. Changing it leaves those already added in. One of allowed, approval, never.

  • Name
    max_manual_member_days
    Type
    integer
    Description

    A new longest addition by hand, in days, or null for none. It applies to additions from now on. Can be null.

Request

PATCH
/v1/organization
curl -X PATCH https://acme.ext.passway.com/v1/organization \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"' \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "display_name": "Acme",
    "kind": "workplace",
    "manual_group_members": "allowed"
  }'

Response

{
  "id": "org_acme",
  "display_name": "Acme",
  "issuer": "https://acme.ext.passway.com",
  "data_location": "us",
  "kind": "workplace",
  "event_retention_days": 365,
  "legal_hold": true,
  "require_device_keys": true,
  "issuer_rotation_days": 3,
  "face_recognition": true,
  "manual_group_members": "allowed",
  "max_manual_member_days": null,
  "created_at": "2026-11-30T14:02:11Z"
}

GET/v1/organization/issuer-keys

The issuer keys

The keys that sign the organization's Access Documents: ECDSA P-256, which every Aliro reader checks, and ML-DSA-87, which post-quantum reader groups check as well (#349). During a rotation, the next keys and how many enrolled readers trust them; after one, the previous keys and until when readers keep trusting them.

Needs the organization:read scope.

Request

GET
/v1/organization/issuer-keys
curl https://acme.ext.passway.com/v1/organization/issuer-keys \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "current": {
    "es256": "…",
    "ml_dsa_87": "…"
  },
  "next": null,
  "previous": [
    {
      "es256": "…",
      "ml_dsa_87": "…",
      "trusted_until": "2026-11-30T14:02:11Z"
    }
  ],
  "rotations": 0
}

POST/v1/organization/issuer-keys:rotate

Rotate the issuer keys

Starts rotating the ECDSA and ML-DSA-87 issuer keys together, with no downtime. Readers trust the next keys at once, beside the current ones. Documents are signed with them once every enrolled reader has applied a configuration that trusts them (at once with no readers), and phones fetch new documents. The old keys stay trusted for as long as a document signed with them can last, 3 days and an hour. 409 while a rotation is under way. Keys also rotate on their own every issuer_rotation_days (on the organization; every 3 days by default). com.passway.issuer.rotation_started and com.passway.issuer.rotated events record it.

With emergency, for keys that may have been stolen: new keys sign documents at once, and readers stop trusting every earlier key, whatever rotation was under way. Phones fetch new documents when the app next opens; until then, those doors refuse them.

Needs the organization:write scope.

Optional attributes

  • Name
    emergency
    Type
    boolean
    Description

    For keys that may have been stolen: rotate now, and stop trusting every earlier key at once instead of keeping them while documents signed with them last. Phones fetch new documents when the app next opens; until then, and at readers that haven't loaded the change, their doors refuse them.

  • Name
    reason
    Type
    string
    Description

    Why, for the audit log.

Request

POST
/v1/organization/issuer-keys:rotate
curl -X POST https://acme.ext.passway.com/v1/organization/issuer-keys:rotate \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Suspected leak of a database backup"
  }'

Response

{
  "current": {
    "es256": "…",
    "ml_dsa_87": "…"
  },
  "next": null,
  "previous": [
    {
      "es256": "…",
      "ml_dsa_87": "…",
      "trusted_until": "2026-11-30T14:02:11Z"
    }
  ],
  "rotations": 0
}