v1

latestOpenAPI 3.0.12026-07-227292131.4 KB
me

Create an SSH key

Create an SSH public key for the current authenticated user.

post/me/ssh-keys

Request body

sshKeystring required

The full SSH public key supported by OpenSSH (e.g., ssh-rsa, ssh-ed25519, ecdsa-sha2-nistp256).

namestring required

Human-readable name for the SSH key.

Example request

{
  "sshKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn... user@host",
  "name": "My SSH key"
}

Response

Successfully created an SSH key.

idstring uuid

The unique identifier (UUID) of the newly created SSH key.

Example response

{
  "id": "550e8400-e29b-41d4-a716-446655440000"
}