latestSwagger 2.02026-08-1095121164.0 KB

94758829689e

users

Add SSH Public Key

Adds an SSH public key to the authenticated user's account. The key can be used for Git operations and SFTP access.

post/v0/users/{user_id}/keys

Path parameters

user_idstring required

User ID

Request body

keystring required

SSH public key content

Example request

{
  "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC... user@example.com"
}

Response

idstring required

SSH key ID

Example response

{
  "id": "c7f1788ebc84f3d366a748e2d2aa5a1a"
}