Skip to main content
POST
/
instances
/
{id}
/
add_key
Add SSH key to instance
curl --request POST \
  --url https://api.thundercompute.com:8443/v1/instances/{id}/add_key \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": true,
  "uuid": "<string>",
  "key": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Provide your API token prefixed with "Bearer ", e.g. "Bearer your-api-token".

Path Parameters

id
string
required

Instance ID

Body

application/json

Optional: provide an existing public key to add

The body is of type object.

Response

OK

success
boolean
required

Whether the key was successfully added

uuid
string
required
key
string

Private key (only when generated)

message
string

Status message