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.
nullfor one enrolled from a link. Can benull.
- Name
identity_provider_id- Type
- string
- Description
The identity provider that sign-in went through;
nullfor a passkey or a link. Can benull.
- Name
suspended_by- Type
- string
- Description
For a suspended credential, who suspended it; otherwise
null. One ofadministrator,identity_provider. Can benull.
- 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).nullif it has never been asked: a phone enrolled from a link or with a passkey, or a provider that gave no refresh token. Can benull.
- Name
created_at- Type
- timestamp
- Description
When enrolment created it.
- Name
updated_at- Type
- timestamp
- Description
When it last changed.
List credentials
Needs the credentials: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
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
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 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
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 credentials statistics
Exact counts of wallet credentials by status.
Needs the credentials:read scope.
Request
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
}
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
etagstill matches.
Optional attributes
- Name
reason- Type
- string
- Description
Why, for the audit log.
Request
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"
}
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
etagstill matches.
Optional attributes
- Name
reason- Type
- string
- Description
Why, for the audit log.
Request
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"
}
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
etagstill matches.
Optional attributes
- Name
reason- Type
- string
- Description
Why, for the audit log.
Request
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"
}