ListPersonalAccessTokens
Search Personal Access Tokens
List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination.
Required permission:
- user.read
Request Body
application/json
pagination?
List limitations and ordering.
sortingColumn?string
The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.
Value in
"PERSONAL_ACCESS_TOKEN_FIELD_NAME_UNSPECIFIED" | "PERSONAL_ACCESS_TOKEN_FIELD_NAME_CREATED_DATE" | "PERSONAL_ACCESS_TOKEN_FIELD_NAME_ID" | "PERSONAL_ACCESS_TOKEN_FIELD_NAME_USER_ID" | "PERSONAL_ACCESS_TOKEN_FIELD_NAME_ORGANIZATION_ID" | "PERSONAL_ACCESS_TOKEN_FIELD_NAME_EXPIRATION_DATE"filters?
Define the criteria to query for.
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/v2/users/pats/search" \ -H "Content-Type: application/json" \ -d '{}'{
"pagination": {
"totalResult": 0,
"appliedLimit": 0
},
"result": [
{
"creationDate": "1s",
"changeDate": "1s",
"id": "string",
"userId": "string",
"organizationId": "string",
"expirationDate": "1s"
}
]
}{
"code": "not_found",
"message": "string",
"detail": {
"type": "string",
"value": "string",
"debug": {}
}
}Was this page helpful?