Get personal access token
Retrieves a specific Personal Access Token (PAT) belonging to the authenticated user.
- HTTP request
- GET /auth/pats/{tokenId}
- Authorization requirements
-
Header Type Required Description Authorizationstring Yes Bearer token used to authenticate the request. See Authentication flows for instructions on generating this token. - Request body
-
Parameter Type Required Description tokenIdstring Yes Minimum length: 1. {curl --request GET \ --url https://api.digitalassets.ibm.com/auth/pats/{tokenId} \ --header 'Authorization: Bearer <token>' - Response
- 200: Success
Returns detailed information about the specified Personal Access Token.
Example response:
{ "dateCreated": "<string>", "credId": "<string>", "isActive": true, "kind": "Pat", "linkedUserId": "<string>", "linkedAppId": "<string>", "name": "<string>", "orgId": "<string>", "permissionAssignments": [ { "permissionName": "<string>", "permissionId": "<string>", "assignmentId": "<string>", "operations": [ "<string>" ] } ], "publicKey": "<string>", "tokenId": "<string>", "accessToken": "<string>" }