Skip to main content
POST
/
v1
/
ssh-keys
Create an SSH key
curl --request POST \
  --url https://rest.compute.cudo.org/v1/ssh-keys \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "publicKey": "<string>"
}'
{
  "comment": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "fingerprint": "<string>",
  "id": "<string>",
  "publicKey": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Body

application/json

Create SSH key params

publicKey
string
required

Response

A successful response.

publicKey
string
required
comment
string
createTime
string<date-time>
fingerprint
string
id
string
type
string