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.
Request
- Base URLhttps://gitlab.com
- Authnone declared
Query parameters
Filter PATs by User ID
Filter tokens where revoked state matches parameter
Filter tokens which are either active or not
Filter tokens which were created before given datetime
Filter tokens which were created after given datetime
Filter tokens which were used before given datetime
Filter tokens which were used after given datetime
Filter tokens which expire before given datetime
Filter tokens which expire after given datetime
Filters tokens by name
Sort tokens
Current page number
Number of items per page
Response
List all personal access tokens
Example response
[
{
"id": 2,
"name": "John Doe",
"description": "Token to manage api",
"scopes": [
"api"
],
"user_id": 3,
"last_used_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
}
],
"expires_at": "2020-08-31T15:53:00.073Z"
}
]Changes
No recorded changes to this operation across all 5 revisions of this API.