People

People who can hold credentials, with SCIM core field names. Most arrive from the identity provider over SCIM or from a connector, and only that source can change them.

The person model

Someone who can hold credentials: an employee, contractor, resident or visitor. Passway keeps only what access decisions need. Field names follow the SCIM core User schema (RFC 7643): display_name, emails as one email, external_id, user_type and active.

Properties

  • Name
    id
    Type
    string
    Description

    Person ID.

  • Name
    etag
    Type
    string
    Description

    Current version.

  • Name
    display_name
    Type
    string
    Description

    Name to show in the console, audit log and wallet pass.

  • Name
    email
    Type
    string
    Description

    Work email, used to send enrolment links. Can be null.

  • Name
    external_id
    Type
    string
    Description

    The person's ID in the source system, such as an Okta user ID. Can be null.

  • Name
    user_type
    Type
    string
    Description

    How the person relates to the organization, as the source sends it, such as Employee, Contractor or Resident (SCIM userType). Can be null.

  • Name
    active
    Type
    boolean
    Description

    Inactive people have every credential revoked and get no new ones (SCIM active).

  • Name
    source
    Type
    object
    Description

    Where the person comes from.

  • Name
    source.type
    Type
    string
    Description

    The writing system. One of manual, scim, connector.

  • Name
    source.connector_id
    Type
    string
    Description

    The connector, when type is connector. Can be null.

  • Name
    valid_from
    Type
    timestamp
    Description

    No access before this time, such as a start date or lease start. Can be null.

  • Name
    valid_to
    Type
    timestamp
    Description

    No access from this time, such as an end date or move-out. Can be null.

  • Name
    attributes
    Type
    object
    Description

    Department, title, location and the like, for groups' membership rules.

  • Name
    attributes.department
    Type
    string
    Description

    Department, such as Engineering. Can be null.

  • Name
    attributes.division
    Type
    string
    Description

    Division. Can be null.

  • Name
    attributes.organization
    Type
    string
    Description

    Organization, such as a subsidiary. Can be null.

  • Name
    attributes.cost_center
    Type
    string
    Description

    Cost center. Can be null.

  • Name
    attributes.employee_number
    Type
    string
    Description

    Employee number. Can be null.

  • Name
    attributes.title
    Type
    string
    Description

    Job title. Can be null.

  • Name
    attributes.location
    Type
    string
    Description

    Office or building, such as New York. Can be null.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    created_at
    Type
    timestamp
    Description

    When the person was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    When the person last changed.


GET/v1/people

List people

Needs the people: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
    active
    Type
    boolean
    Description

    Only active, or only inactive, people.

  • Name
    user_type
    Type
    string
    Description

    Only people with this user type.

  • Name
    email
    Type
    string
    Description

    Only the person with this email (exact match, case-insensitive).

  • Name
    external_id
    Type
    string
    Description

    Only the person with this external ID.

  • Name
    group_id
    Type
    string
    Description

    Only members of this group.

Request

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

Response

{
  "data": [
    {
      "id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "display_name": "Ada Lovelace",
      "email": "ada@example.com",
      "external_id": "00u1abcd2EFGHIJKLM3n4",
      "user_type": "Employee",
      "active": true,
      "source": {
        "type": "manual",
        "connector_id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a"
      },
      "valid_from": "2026-11-30T14:02:11Z",
      "valid_to": "2026-11-30T14:02:11Z",
      "attributes": {
        "department": "Engineering",
        "division": null,
        "organization": null,
        "cost_center": null,
        "employee_number": null,
        "title": "Site reliability engineer",
        "location": "New York"
      },
      "labels": {
        "passway.example/cost-center": "4410",
        "team": "facilities"
      },
      "created_at": "2026-11-30T14:02:11Z",
      "updated_at": "2026-11-30T14:02:11Z"
    }
  ],
  "next_page_token": null
}

POST/v1/people

Create a person

For people no other system knows about, such as visitors. The person's source is manual.

Needs the people: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
    display_name
    Type
    string
    Description

    Name to show in the console, audit log and wallet pass.

Optional attributes

  • Name
    email
    Type
    string
    Description

    Email, used to send enrolment links.

  • Name
    external_id
    Type
    string
    Description

    Your own ID for this person.

  • Name
    user_type
    Type
    string
    Description

    How the person relates to the organization, such as Visitor.

  • Name
    active
    Type
    boolean
    Description

    Whether the person can hold credentials.

  • Name
    valid_from
    Type
    timestamp
    Description

    No access before this time.

  • Name
    valid_to
    Type
    timestamp
    Description

    No access from this time.

  • Name
    attributes
    Type
    object
    Description

    Department, title, location and the like, for groups' membership rules.

  • Name
    attributes.department
    Type
    string
    Description

    Department, such as Engineering. Can be null.

  • Name
    attributes.division
    Type
    string
    Description

    Division. Can be null.

  • Name
    attributes.organization
    Type
    string
    Description

    Organization, such as a subsidiary. Can be null.

  • Name
    attributes.cost_center
    Type
    string
    Description

    Cost center. Can be null.

  • Name
    attributes.employee_number
    Type
    string
    Description

    Employee number. Can be null.

  • Name
    attributes.title
    Type
    string
    Description

    Job title. Can be null.

  • Name
    attributes.location
    Type
    string
    Description

    Office or building, such as New York. Can be null.

  • Name
    labels
    Type
    object
    Description

    Labels.

Request

POST
/v1/people
curl -X POST https://acme.ext.passway.com/v1/people \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "Ada Lovelace",
    "email": "ada@example.com",
    "user_type": "Visitor",
    "valid_from": "2026-11-30T14:02:11Z",
    "valid_to": "2026-11-30T14:02:11Z",
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    }
  }'

Response

{
  "id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "display_name": "Ada Lovelace",
  "email": "ada@example.com",
  "external_id": "00u1abcd2EFGHIJKLM3n4",
  "user_type": "Employee",
  "active": true,
  "source": {
    "type": "manual",
    "connector_id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a"
  },
  "valid_from": "2026-11-30T14:02:11Z",
  "valid_to": "2026-11-30T14:02:11Z",
  "attributes": {
    "department": "Engineering",
    "division": null,
    "organization": null,
    "cost_center": null,
    "employee_number": null,
    "title": "Site reliability engineer",
    "location": "New York"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

GET/v1/people/{person_id}

Get a person

Needs the people:read scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/people/{person_id}
curl https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "display_name": "Ada Lovelace",
  "email": "ada@example.com",
  "external_id": "00u1abcd2EFGHIJKLM3n4",
  "user_type": "Employee",
  "active": true,
  "source": {
    "type": "manual",
    "connector_id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a"
  },
  "valid_from": "2026-11-30T14:02:11Z",
  "valid_to": "2026-11-30T14:02:11Z",
  "attributes": {
    "department": "Engineering",
    "division": null,
    "organization": null,
    "cost_center": null,
    "employee_number": null,
    "title": "Site reliability engineer",
    "location": "New York"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

PATCH/v1/people/{person_id}

Update a person

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

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ 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
    display_name
    Type
    string
    Description

    New display name.

  • Name
    email
    Type
    string
    Description

    New email, or null to remove it. Can be null.

  • Name
    external_id
    Type
    string
    Description

    New external ID, or null to remove it. Can be null.

  • Name
    user_type
    Type
    string
    Description

    New user type, or null to remove it. Can be null.

  • Name
    active
    Type
    boolean
    Description

    false revokes every credential the person holds.

  • Name
    valid_from
    Type
    timestamp
    Description

    New start, or null to remove it. Can be null.

  • Name
    valid_to
    Type
    timestamp
    Description

    New end, or null to remove it. Can be null.

  • Name
    attributes
    Type
    object
    Description

    Attributes to set or remove, or null to remove them all. Can be null.

  • Name
    attributes.department
    Type
    string
    Description

    New department, or null to remove it. Can be null.

  • Name
    attributes.division
    Type
    string
    Description

    New division, or null to remove it. Can be null.

  • Name
    attributes.organization
    Type
    string
    Description

    New organization, or null to remove it. Can be null.

  • Name
    attributes.cost_center
    Type
    string
    Description

    New cost center, or null to remove it. Can be null.

  • Name
    attributes.employee_number
    Type
    string
    Description

    New employee number, or null to remove it. Can be null.

  • Name
    attributes.title
    Type
    string
    Description

    New title, or null to remove it. Can be null.

  • Name
    attributes.location
    Type
    string
    Description

    New location, or null to remove it. Can be null.

  • Name
    labels
    Type
    object
    Description

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

Request

PATCH
/v1/people/{person_id}
curl -X PATCH https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"' \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "valid_from": "2026-11-30T14:02:11Z",
    "valid_to": "2026-11-30T14:02:11Z",
    "labels": {
      "old-label": null,
      "team": "security"
    }
  }'

Response

{
  "id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "display_name": "Ada Lovelace",
  "email": "ada@example.com",
  "external_id": "00u1abcd2EFGHIJKLM3n4",
  "user_type": "Employee",
  "active": true,
  "source": {
    "type": "manual",
    "connector_id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a"
  },
  "valid_from": "2026-11-30T14:02:11Z",
  "valid_to": "2026-11-30T14:02:11Z",
  "attributes": {
    "department": "Engineering",
    "division": null,
    "organization": null,
    "cost_center": null,
    "employee_number": null,
    "title": "Site reliability engineer",
    "location": "New York"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

DELETE/v1/people/{person_id}

Delete a person

Revokes every credential the person holds. People from SCIM or a connector return 409 with /problems/wrong-writer; remove them at the source.

Needs the people:write scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ 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/people/{person_id}
curl -X DELETE https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"'

Response

204 Deleted

GET/v1/people/statistics

Get people statistics

Exact counts of all people and enabled people.

Needs the people:read scope.

Request

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

Response

{
  "total": 1,
  "active": 1
}

POST/v1/people/{person_id}:relink

Confirm a person whose Passway ID was recovered

Passway ID stamps an ID's last recovery on its ID tokens (passway_recovered_at), and a sign-in through an identity provider whose ID was recovered since the person last proved themselves here is refused (com.passway.session.refused, reason passway_id_recovered): whoever recovered it proved an email address, not that they are the person. Phones issued through the provider are suspended at their next check. Call this once you have confirmed the person another way, such as in person or on a call: their next sign-in goes through. Signing in with one of the organization's passkeys does the same. GET /v1/attention lists the people waiting (recovered_ids). Raises com.passway.person.relinked. An inactive person is refused (409).

Needs the people:write scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

Request

POST
/v1/people/{person_id}:relink
curl -X POST https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a:relink \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "display_name": "Ada Lovelace",
  "email": "ada@example.com",
  "external_id": "00u1abcd2EFGHIJKLM3n4",
  "user_type": "Employee",
  "active": true,
  "source": {
    "type": "manual",
    "connector_id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a"
  },
  "valid_from": "2026-11-30T14:02:11Z",
  "valid_to": "2026-11-30T14:02:11Z",
  "attributes": {
    "department": "Engineering",
    "division": null,
    "organization": null,
    "cost_center": null,
    "employee_number": null,
    "title": "Site reliability engineer",
    "location": "New York"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

POST/v1/people/{person_id}/enrollments

Start an enrolment

Returns a link the person opens on their phone to add a credential to their wallet. The phone generates the key. Device management tools call this to deliver the link with the managed app.

Needs the people:write scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

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.

Optional attributes

  • Name
    notify
    Type
    string
    Description

    How to deliver the link. One of none, email.

  • Name
    ttl_seconds
    Type
    integer
    Description

    How long the link works, in seconds.

Request

POST
/v1/people/{person_id}/enrollments
curl -X POST https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a/enrollments \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "notify": "none"
  }'

Response

{
  "id": "enr_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "url": "https://enroll.passway.example/e/enr_4kq1",
  "status": "pending",
  "credential_id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "expires_at": "2026-11-30T14:02:11Z",
  "created_at": "2026-11-30T14:02:11Z",
  "emailed_to": null
}

POST/v1/people/{person_id}/passkey-invitations

Invite a person to make a passkey

Returns a link to give the person. It works once, on the organization's own host: the passkey it makes uses it up. People sign in to Passway with passkeys; there are no passwords and no recovery by email, so someone who loses theirs gets a new invitation.

Needs the people:write scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

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.

Optional attributes

  • Name
    ttl_seconds
    Type
    integer
    Description

    How long the link works, in seconds.

Request

POST
/v1/people/{person_id}/passkey-invitations
curl -X POST https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a/passkey-invitations \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "url": "https://acme.ext.passway.example/passkeys/new#pwpi_4kq1",
  "expires_at": "2026-11-30T14:02:11Z"
}

GET/v1/people/{person_id}/passkeys

List a person's passkeys

Only what identifies each passkey and when it was used; the public keys stay sealed.

Needs the people:read scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

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.

Request

GET
/v1/people/{person_id}/passkeys
curl https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a/passkeys \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "data": [
    {
      "id": "pky_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "name": "Work laptop",
      "backed_up": true,
      "algorithm": "ML-DSA-87",
      "last_used_at": "2026-11-30T14:02:11Z",
      "created_at": "2026-11-30T14:02:11Z",
      "updated_at": "2026-11-30T14:02:11Z"
    }
  ],
  "next_page_token": null
}

GET/v1/people/{person_id}/passkeys/{passkey_id}

Get a passkey

Needs the people:read scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

  • Name
    passkey_id
    Type
    string
    Description

    Passkey ID: pky_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/people/{person_id}/passkeys/{passkey_id}
curl https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a/passkeys/pky_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "pky_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "name": "Work laptop",
  "backed_up": true,
  "algorithm": "ML-DSA-87",
  "last_used_at": "2026-11-30T14:02:11Z",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

DELETE/v1/people/{person_id}/passkeys/{passkey_id}

Remove a passkey

Sessions started with it end at once, and it signs in no more.

Needs the people:write scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

  • Name
    passkey_id
    Type
    string
    Description

    Passkey ID: pky_ 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/people/{person_id}/passkeys/{passkey_id}
curl -X DELETE https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a/passkeys/pky_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"'

Response

204 Success

GET/v1/people/{person_id}/permissions

What someone may do on /v1, and why

Each scope the person holds now, with every role and group it comes from. Empty for someone inactive or in no group with a role.

Needs the people:read scope.

Path parameters

  • Name
    person_id
    Type
    string
    Description

    Person ID: per_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/people/{person_id}/permissions
curl https://acme.ext.passway.com/v1/people/per_01jd8k3m2v9x4q7r5t6w8y0z1a/permissions \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "scopes": [
    {
      "scope": "people:read",
      "from": [
        {}
      ]
    }
  ]
}