v1

latestSwagger 2.02026-08-04232286653.5 KB
SSH Keys

Register a new SSH public key to the logged in user.

A successful response from this resource wil contain the created SSH key details.

post/users/ssh-keys

Request body

namestring required
public_keystring required

Example request

{
  "name": "John Doe",
  "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICpuH/fqCFLbAConChyVH6rZzSaxlnHSwQk6qvtPsf5E"
}

Response

Example response

{
  "ssh_key": {
    "created_at": "2022-01-24T20:13:35.328Z",
    "fingerprints": {
      "md5": "bf:60:fa:cc:9f:42:1f:5e:23:9e:ed:d2:69:d8:76:93",
      "sha256": "tARFxQkVHeqm6TzqpI897QsHVdgZlxgL2/YhVltmEUk"
    },
    "id": "0b880f48-6a97-408f-8351-3cc30871e010",
    "name": "public key 1",
    "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICpuH/fqCFLbAConChyVH6rZzSaxlnHSwQk6qvtPsf5E"
  }
}