List all personal access tokens for a group service account
GET
/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens
Lists all personal access tokens for a specified group service account
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”revoked
boolean
Filter tokens where revoked state matches parameter
Example
falsestate
string
Filter tokens which are either active or not
Example
activecreated_before
string format: date-time
Filter tokens which were created before given datetime
Example
2022-01-01T00:00:00Zcreated_after
string format: date-time
Filter tokens which were created after given datetime
Example
2021-01-01T00:00:00Zlast_used_before
string format: date-time
Filter tokens which were used before given datetime
Example
2021-01-01T00:00:00Zlast_used_after
string format: date-time
Filter tokens which were used after given datetime
Example
2022-01-01T00:00:00Zexpires_before
string format: date
Filter tokens which expire before given datetime
Example
2022-01-01expires_after
string format: date
Filter tokens which expire after given datetime
Example
2021-01-01search
string
Filters tokens by name
Example
tokensort
string
Sort tokens
Example
created_at_descpage
integer
Current page number
Example
1per_page
integer
Number of items per page
Example
20Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
integer format: int64
name
string
revoked
boolean
created_at
string format: date-time
description
string
scopes
array
user_id
integer format: int64
last_used_at
string format: date-time
active
boolean
granular
boolean
expires_at
string format: date-time
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"}Bad Request
401 Unauthorized
Forbidden
404 Group Not Found