Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Get Personal-Access-Token (PAT) by ID

Deprecated: use user service v2 ListPersonalAccessTokens instead.

Returns the PAT 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.

GET
/management/v1/users/{user_id}/pats/{token_id}

Path Parameters

user_id*user_id
token_id*token_id

Response Body

Success

application/json
  1. response
token?
Example Request
curl -X GET 'https://example.com/management/v1/users/string/pats/string'
Example Response200
{  "token": {    "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?