POST
/
api
/
v1
/
users
/
me
/
ssh_keys
Add an SSH key
curl --request POST \
  --url https://app.miget.com/api/v1/users/me/ssh_keys \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "public_key": "<string>"
}
'
{
  "id": 123,
  "public_key": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Body

application/json

Add an SSH key

public_key
string
required

SSH public key in OpenSSH format (e.g., 'ssh-ed25519 AAAA... user@host')

Response

Add an SSH key

Api_V1_Entities_SshKey model

id
integer<int32>
required

SSH key ID

public_key
string
required

SSH public key content

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp