List all personal access tokens
Lists all personal access tokens accessible by the authenticated user. For administrators, returns all personal access tokens in the instance. For non-administrators, returns all of their personal access tokens.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Filter PATs by User ID
Example
2Filter tokens where revoked state matches parameter
Example
falseFilter tokens which are either active or not
Example
activeFilter tokens which were created before given datetime
Example
2022-01-01T00:00:00ZFilter tokens which were created after given datetime
Example
2021-01-01T00:00:00ZFilter tokens which were used before given datetime
Example
2021-01-01T00:00:00ZFilter tokens which were used after given datetime
Example
2022-01-01T00:00:00ZFilter tokens which expire before given datetime
Example
2022-01-01Filter tokens which expire after given datetime
Example
2021-01-01Filters tokens by name
Example
tokenSort tokens
Example
created_at_descCurrent page number
Example
1Number of items per page
Example
20Responses
Section titled “ Responses ”OK
object
The five most recent unique IP addresses that have authenticated with this token. When the limit is reached, the oldest IP address is removed. The list updates once per minute per token.
object
Example
{ "id": 2, "name": "John Doe", "description": "Token to manage api", "scopes": [ "api" ], "user_id": 3, "last_used_at": "2020-08-31T15:53:00.073Z", "expires_at": "2020-08-31T15:53:00.073Z", "last_used_ips": [ "127.0.0.1", "127.0.0.2", "127.0.0.3" ], "granular_scopes": [ { "access": "personal_projects", "permissions": [ "read_job" ], "project_id": 3, "group_id": 5 } ]}Bad Request
Unauthorized