Skip to main content
POST
/
v1
/
ssh-keys
Add an SSH key
curl --request POST \
  --url https://api.chicklet.io/v1/ssh-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "public_key": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "public_key": "<string>",
  "user_id": 123,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (e.g. "Bearer your-api-key")

Body

application/json
name
string
required

A label for this SSH key

public_key
string
required

The SSH public key content

Response

Created

id
integer
name
string
public_key
string
user_id
integer
created_at
string<date-time>