Hosting: Git

Get Git SSH public key

Returns the public SSH key of the hosting account. Deploy website Git repository uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. public_key is null when the account has no key yet.

get/api/hosting/v1/accounts/{username}/git/ssh-key

Path parameters

usernamestring required
Example:u123456789

Response

Success response

public_keystring nullable required

Public key to add as a deploy key on the Git host. Null when the account has no key yet.

Example response

{
  "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7 u123456789@example-server"
}

Changes

Changed in 1 of the 117 revisions of this API.1