Skip to content

List all deploy tokens

GET
/api/v4/deploy_tokens

Lists all deploy tokens for the instance.

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20
active
boolean
nullable

Limit by active status

OK

Media type application/json
object
id
integer format: int64
name
string
username
string
expires_at
string format: date-time
scopes
array
revoked
boolean
expired
boolean
Example
{
"id": 1,
"name": "MyToken",
"username": "gitlab+deploy-token-1",
"expires_at": "2020-02-14T00:00:00.000Z",
"scopes": [
"read_repository"
]
}

Bad Request

Unauthorized

Forbidden