deploy_resources

Retrieve a group deploy token

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

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

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idinteger required

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

token_idinteger required

The ID of the deploy token

Response

Retrieve a group deploy token

idinteger required
namestring required
usernamestring required
expires_atstring date-time required
revokedboolean required
expiredboolean required

Example response

{
  "id": 1,
  "name": "MyToken",
  "username": "gitlab+deploy-token-1",
  "expires_at": "2020-02-14T00:00:00.000Z",
  "scopes": [
    "read_repository"
  ]
}

Changes

No recorded changes to this operation across all 5 revisions of this API.