List access tokens for a project

GET /v4/projects/{id}/access_tokens

Lists access tokens for a project

Path parameters

  • id integer | string Required

    The ID or URL-encoded path of the project

Responses

GET /v4/projects/{id}/access_tokens
curl \
 -X GET https://gitlab.com/api/v4/projects/{id}/access_tokens
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"
}