Credentials

Credentials in phone and watch wallets. Enrolment creates them; the API can suspend, resume and revoke them.

The credential model

An Aliro credential in a person's wallet. Credentials come from enrolment, never from POST; the API can only suspend, resume and revoke them.

Properties

  • Name
    id
    Type
    string
    Description

    Credential ID.

  • Name
    etag
    Type
    string
    Description

    Current version.

  • Name
    person_id
    Type
    string
    Description

    The person holding it.

  • Name
    status
    Type
    string
    Description

    Where it is in its life. One of pending, active, suspended, revoked, expired.

  • Name
    wallet
    Type
    string
    Description

    The wallet holding it. One of apple, google, samsung, passway.

  • Name
    issuer_id
    Type
    string
    Description

    The issuer that signed it, once issued. Can be null.

  • Name
    issued_at
    Type
    timestamp
    Description

    When it reached the wallet. Can be null.

  • Name
    expires_at
    Type
    timestamp
    Description

    When readers stop accepting it. Can be null.

  • Name
    revoked_at
    Type
    timestamp
    Description

    When it was revoked. Can be null.

  • Name
    revocation
    Type
    object
    Description

    For revoked credentials, how many readers have confirmed. Can be null.

  • Name
    revocation.readers_confirmed
    Type
    integer
    Description

    Readers that have confirmed the new revocation list.

  • Name
    revocation.readers_total
    Type
    integer
    Description

    Readers that need to confirm it.

  • Name
    signed_in_at
    Type
    timestamp
    Description

    For a phone enrolled by signing in to the Passway app (#336): when the person last signed in on it. null for one enrolled from a link. Can be null.

  • Name
    identity_provider_id
    Type
    string
    Description

    The identity provider that sign-in went through; null for a passkey or a link. Can be null.

  • Name
    suspended_by
    Type
    string
    Description

    For a suspended credential, who suspended it; otherwise null. One of administrator, identity_provider. Can be null.

  • Name
    provider_checked_at
    Type
    timestamp
    Description

    When the identity provider last confirmed that the person is still there, by refreshing the token it issued when they signed in on this phone (phone_check_minutes). null if it has never been asked: a phone enrolled from a link or with a passkey, or a provider that gave no refresh token. Can be null.

  • Name
    created_at
    Type
    timestamp
    Description

    When enrolment created it.

  • Name
    updated_at
    Type
    timestamp
    Description

    When it last changed.


GET/v1/credentials

List credentials

Needs the credentials: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
    person_id
    Type
    string
    Description

    Only this person's credentials.

  • Name
    status
    Type
    string
    Description

    Only credentials with this status. One of pending, active, suspended, revoked, expired.

Request

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

Response

{
  "data": [
    {
      "id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "status": "pending",
      "wallet": "apple",
      "issuer_id": "iss_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "issued_at": "2026-11-30T14:02:11Z",
      "expires_at": "2026-11-30T14:02:11Z",
      "revoked_at": "2026-11-30T14:02:11Z",
      "revocation": null,
      "signed_in_at": "2026-11-30T14:02:11Z",
      "identity_provider_id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "suspended_by": "administrator",
      "provider_checked_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/credentials/{credential_id}

Get a credential

Needs the credentials:read scope.

Path parameters

  • Name
    credential_id
    Type
    string
    Description

    Credential ID: cred_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/credentials/{credential_id}
curl https://acme.ext.passway.com/v1/credentials/cred_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "status": "pending",
  "wallet": "apple",
  "issuer_id": "iss_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "issued_at": "2026-11-30T14:02:11Z",
  "expires_at": "2026-11-30T14:02:11Z",
  "revoked_at": "2026-11-30T14:02:11Z",
  "revocation": null,
  "signed_in_at": "2026-11-30T14:02:11Z",
  "identity_provider_id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "suspended_by": "administrator",
  "provider_checked_at": "2026-11-30T14:02:11Z",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

GET/v1/credentials/statistics

Get credentials statistics

Exact counts of wallet credentials by status.

Needs the credentials:read scope.

Request

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

Response

{
  "pending": 1,
  "active": 1,
  "suspended": 1,
  "revoked": 1,
  "expired": 1
}

POST/v1/credentials/{credential_id}:suspend

Suspend a credential

Readers refuse the credential once they receive the next revocation list. :resume undoes it.

Needs the credentials:write scope.

Path parameters

  • Name
    credential_id
    Type
    string
    Description

    Credential ID: cred_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    If set, the action only runs if the resource's etag still matches.

Optional attributes

  • Name
    reason
    Type
    string
    Description

    Why, for the audit log.

Request

POST
/v1/credentials/{credential_id}:suspend
curl -X POST https://acme.ext.passway.com/v1/credentials/cred_01jd8k3m2v9x4q7r5t6w8y0z1a:suspend \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Lost phone"
  }'

Response

{
  "id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "status": "pending",
  "wallet": "apple",
  "issuer_id": "iss_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "issued_at": "2026-11-30T14:02:11Z",
  "expires_at": "2026-11-30T14:02:11Z",
  "revoked_at": "2026-11-30T14:02:11Z",
  "revocation": null,
  "signed_in_at": "2026-11-30T14:02:11Z",
  "identity_provider_id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "suspended_by": "administrator",
  "provider_checked_at": "2026-11-30T14:02:11Z",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

POST/v1/credentials/{credential_id}:resume

Resume a suspended credential

Needs the credentials:write scope.

Path parameters

  • Name
    credential_id
    Type
    string
    Description

    Credential ID: cred_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    If set, the action only runs if the resource's etag still matches.

Optional attributes

  • Name
    reason
    Type
    string
    Description

    Why, for the audit log.

Request

POST
/v1/credentials/{credential_id}:resume
curl -X POST https://acme.ext.passway.com/v1/credentials/cred_01jd8k3m2v9x4q7r5t6w8y0z1a:resume \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Lost phone"
  }'

Response

{
  "id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "status": "pending",
  "wallet": "apple",
  "issuer_id": "iss_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "issued_at": "2026-11-30T14:02:11Z",
  "expires_at": "2026-11-30T14:02:11Z",
  "revoked_at": "2026-11-30T14:02:11Z",
  "revocation": null,
  "signed_in_at": "2026-11-30T14:02:11Z",
  "identity_provider_id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "suspended_by": "administrator",
  "provider_checked_at": "2026-11-30T14:02:11Z",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

POST/v1/credentials/{credential_id}:revoke

Revoke a credential

Removes the pass from the wallet and adds the credential to every relevant reader's revocation list. revocation on the credential shows how many readers have confirmed. Cannot be undone.

Needs the credentials:revoke scope.

Path parameters

  • Name
    credential_id
    Type
    string
    Description

    Credential ID: cred_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    If set, the action only runs if the resource's etag still matches.

Optional attributes

  • Name
    reason
    Type
    string
    Description

    Why, for the audit log.

Request

POST
/v1/credentials/{credential_id}:revoke
curl -X POST https://acme.ext.passway.com/v1/credentials/cred_01jd8k3m2v9x4q7r5t6w8y0z1a:revoke \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Lost phone"
  }'

Response

{
  "id": "cred_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "status": "pending",
  "wallet": "apple",
  "issuer_id": "iss_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "issued_at": "2026-11-30T14:02:11Z",
  "expires_at": "2026-11-30T14:02:11Z",
  "revoked_at": "2026-11-30T14:02:11Z",
  "revocation": null,
  "signed_in_at": "2026-11-30T14:02:11Z",
  "identity_provider_id": "idp_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "suspended_by": "administrator",
  "provider_checked_at": "2026-11-30T14:02:11Z",
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}