AY Developer docs
ApiIdentity

Token Status List of Agent Passports

IETF Token Status List (draft-ietf-oauth-status-list) for Agent Passport credentials: 2 bits per index, registered values `0` VALID, `1` INVALID (revoked), `2` SUSPENDED. The index is the `status.status_list.idx` claim of the passport. Served bare (no envelope) as `application/statuslist+json`, `Cache-Control: public, max-age=300`, `ETag`.

GET
/identity/status-list

IETF Token Status List (draft-ietf-oauth-status-list) for Agent Passport credentials: 2 bits per index, registered values 0 VALID, 1 INVALID (revoked), 2 SUSPENDED. The index is the status.status_list.idx claim of the passport. Served bare (no envelope) as application/statuslist+json, Cache-Control: public, max-age=300, ETag.

Response Body

Status list

application/statuslist+json
  1. response
status_list*string

Compressed (DEFLATE, zlib), base64url-encoded bit array (IETF Token Status List §4.1), 2 bits per index packed least-significant-bit first. Values: 0 VALID, 1 INVALID, 2 SUSPENDED.

bits*2
Value in2
total*integer

Number of indexes in the list.

Example Request
curl -X GET 'https://api.aytwin.ai/api/v1/identity/status-list'
Example Response
{  "status_list": "string",  "bits": 2,  "total": 0}