Skip to content

Retrieve a project deploy token

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

Retrieves a project deploy token.

id
required
One of:
string

The ID or URL-encoded path of the project 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