curl --request POST \
--url https://api.gputrader.io/v1/users/ssh-key \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"publicKey": "<string>"
}'
{
"name": "<string>",
"publicKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
Generate a new SSH key for the authenticated user
curl --request POST \
--url https://api.gputrader.io/v1/users/ssh-key \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"publicKey": "<string>"
}'
{
"name": "<string>",
"publicKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
ssh key successfully created
The response is of type object
.