Add a new SSH key to your account. This is useful for providing secure access to your servers or other services that require SSH authentication. The API returns an ID that may be needed for subsequent operations.
Accept Example Content-Type Example name string required public_key string required success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string https://cloud.hostup.se/api/ssh-keys curl -X POST "https://cloud.hostup.se/api/ssh-keys" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"public_key": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"ssh_key": {
"success": true,
"ssh_key": {
"id": 0,
"client_id": "string",
"name": "string",
"key": "string",
"fingerprint": "string"
},
"call": "string",
"server_time": 0,
"info": [
"string"
]
}
}
} {
"name": "string",
"public_key": "string"
}