ZITADEL Docs
APIsCore ResourcesV1Organization Objects

GetPersonalAccessTokenByIDs

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
/users/{user_id}/pats/{token_id}

Path Parameters

user_id*string
token_id*string

Response Body

application/json

application/json

curl -X GET "https://loading/users/string/pats/string"
{
  "token": {
    "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?