curl --location --request POST 'https://gitlab.com/api/v4/projects//access_tokens?name=string&scopes=api \&expires_at ='
{
"user_id": 166,
"scopes": [
"api",
"read_repository"
],
"name": "test",
"expires_at": "2022-01-31",
"id": 58,
"active": true,
"created_at": "2021-01-20T14:13:35Z",
"revoked": false,
"token": "D4y...Wzr"
}
api
, read_api
, read_registry
, write_registry
, read_repository
, or write_repository
.