Skip to content

List all personal access tokens for a group

GET
/api/v4/groups/{id}/manage/personal_access_tokens

Lists all personal access tokens associated with enterprise users in a top-level group. This feature was introduced in GitLab 17.8.

id
required
string

ID or URL-encoded path of the group

revoked
boolean
nullable

Filter tokens where revoked state matches parameter

Example
false
state
string
nullable
Allowed values: active inactive

Filter tokens which are either active or not

Example
active
created_before
string format: date-time
nullable

Filter tokens which were created before given datetime

Example
2022-01-01T00:00:00Z
created_after
string format: date-time
nullable

Filter tokens which were created after given datetime

Example
2021-01-01T00:00:00Z
last_used_before
string format: date-time
nullable

Filter tokens which were used before given datetime

Example
2021-01-01T00:00:00Z
last_used_after
string format: date-time
nullable

Filter tokens which were used after given datetime

Example
2022-01-01T00:00:00Z
expires_before
string format: date
nullable

Filter tokens which expire before given datetime

Example
2022-01-01
expires_after
string format: date
nullable

Filter tokens which expire after given datetime

Example
2021-01-01
search
string
nullable

Filters tokens by name

Example
token
sort
string
nullable

Sort tokens

Example
created_at_desc
page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Bad Request

Not Found