Skip to main content
POST
/
v1
/
ssh_keys
Create Ssh Key
curl --request POST \
  --url https://api.example.com/v1/ssh_keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "key": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "key": "<string>",
  "created_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

xi-api-key
string | null

Body

application/json
name
string
required

SSH Key name

Required string length: 1 - 64
key
string
required

SSH Key content

Required string length: 1 - 32000

Response

Successful Response

id
string
required

SSH Key ID

name
string
required

SSH Key name

Minimum string length: 1
key
string
required

SSH Key content

Minimum string length: 1
created_at
integer