Skip to content

Retrieve a group deploy token

GET
/api/v4/groups/{id}/deploy_tokens/{token_id}

Get a single group’s deploy token by ID. This feature was introduced in GitLab 14.9.

id
required
One of:
integer

The ID or URL-encoded path of the group owned by the authenticated user

token_id
required
integer

The ID of the deploy token

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

Not found