List access tokens for a project
Lists access tokens for a project
Path parameters
-
id
integer | string Required The ID or URL-encoded path of the project
GET
/v4/projects/{id}/access_tokens
curl \
--request GET https://gitlab.com/api/v4/projects/{id}/access_tokens \
--header "Private-Token: $API_KEY"
Response examples (200)
{
"id": 42,
"name": "token",
"active": true,
"scopes": [
"api"
],
"revoked": false,
"user_id": 141,
"created_at": "2021-01-20T14:13:35Z",
"expires_at": "2022-01-31"
}