GET
/v2/patsList personal access tokens
Lists the personal access tokens (PATs) associated with the authenticated user. Use page and size to paginate the results and sort to control their order. The response includes pagination metadata alongside the token records.
pageintegeroptional
Zero-based page index. Defaults to 0 when omitted.
sizeintegeroptional
Number of tokens per page; must be at least 1. Defaults to 20 when omitted.
sortarray<string>optional
Sorting criteria in `property,(asc|desc)` format; you can provide multiple criteria. Sort order defaults to ascending.
200Returns a page of personal access token records in `_embedded.pats` with pagination metadata including the page number, page size, total elements, and total pages.
_embeddedobjectoptional
pageobjectoptional
400Returned when a query parameter is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is not authenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to list personal access tokens.
codestringrequired
paramsarray<object>optional
404Returned when the requested resource cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when a query parameter is invalid, such as a negative page or a size below 1. A 401 is returned when the request is not authenticated, and a 403 when the authenticated user cannot list personal access tokens. A 404 is returned when the requested resource cannot be found.