Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

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
/management/v1/users/{user_id}/pats/_search

Path Parameters

user_id*user_id

Request Body

application/json
  1. body
query?

list limitations and ordering

Response Body

Success

application/json
  1. response
details?
result?array<>
Example Request
curl -X POST 'https://example.com/management/v1/users/string/pats/_search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "totalResult": 0,    "processedSequence": 0,    "viewTimestamp": "2023-01-15T01:30:15.01Z"  },  "result": [    {      "id": "string",      "details": {        "sequence": 0,        "creationDate": "2023-01-15T01:30:15.01Z",        "changeDate": "2023-01-15T01:30:15.01Z",        "resourceOwner": "string"      },      "expirationDate": "2023-01-15T01:30:15.01Z",      "scopes": [        "string"      ]    }  ]}

Was this page helpful?