ZITADEL Docs
APIsCore ResourcesV1Organization Objects

ListPersonalAccessTokens

List Personal-Access-Tokens (PATs)

Deprecated: use user service v2 ListPersonalAccessTokens instead.

Returns a list of PATs for a user, currently only available for machine users/service accounts. PATs are ready-to-use tokens and can be sent directly in the authentication header.

POST
/users/{user_id}/pats/_search

Path Parameters

user_id*string

Request Body

application/json

query?

list limitations and ordering

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/users/string/pats/_search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "totalResult": 0,
    "processedSequence": 0,
    "viewTimestamp": "1s"
  },
  "result": [
    {
      "id": "string",
      "details": {
        "sequence": 0,
        "creationDate": "1s",
        "changeDate": "1s",
        "resourceOwner": "string"
      },
      "expirationDate": "1s",
      "scopes": [
        "string"
      ]
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?