Admiral
User

List personal access tokens

GET
/v1/user/tokens

Scope: token:read

Authorization

bearerAuth
AuthorizationBearer <token>

Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer admp_...

In: header

Query Parameters

filter?filter

Filter expression to narrow results. Uses the Admiral filter DSL (see the API documentation for the full operator and predicate reference).

Filterable fields:

  • name: filter by key name.
  • status: filter by key status (ACTIVE, REVOKED).

Example: field['status'] = 'ACTIVE'

Lengthlength <= 1024
page_size?page_size

Maximum number of keys to return per page. Defaults to 50 when omitted or 0; must not exceed 100.

Formatint32
Range0 <= value <= 100
page_token?page_token

Opaque pagination token from a previous response.

Response Body

application/json

curl -X GET "https://example.com/v1/user/tokens"
{  "api_keys": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",      "name": "string",      "key_prefix": "string",      "scopes": [        "string"      ],      "status": "API_KEY_STATUS_UNSPECIFIED",      "binding_type": "BINDING_TYPE_UNSPECIFIED",      "binding_id": "string",      "expires_at": "2023-01-15T01:30:15.01Z",      "last_used_at": "2023-01-15T01:30:15.01Z",      "revoked_at": "2023-01-15T01:30:15.01Z",      "created_by": {        "id": "string",        "display_name": "string",        "email": "string"      },      "created_at": "2023-01-15T01:30:15.01Z"    }  ],  "next_page_token": "string"}