Deployments

Get a repository deploy key

Returns the deploy key belonging to a specific key.

get/repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: repository, repository:admin
    • or HTTP basic
    • or API key in header Authorization

Response

Deploy key matching the key ID

typestring required
keystring

The deploy key value.

commentstring

The comment parsed from the deploy key (if present)

labelstring

The user-defined label for the deploy key

added_onstring date-time
last_usedstring date-time

Changes

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