Add SSH key to instance
Instances
Add SSH key to instance
Append an SSH public key to an existing instance’s authorized_keys.
Behavior:
- If
public_keyis provided, that raw key material is appended toauthorized_keys. If the same public key is already attached, the request is a no-op (no error). - If
public_keyis omitted, Thunder generates a new key pair, appends the public half toauthorized_keys, and returns the private key in the response. The private key is only returned once — store it immediately.
Note: SSH keys saved in your account (Authentication section of the console) are a separate store and are NOT automatically attached to instances. To use one of those keys, copy its public key material into the public_key field on this request.
POST
Add SSH key to instance
Documentation Index
Fetch the complete documentation index at: https://www.thundercompute.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer token authentication. Provide your API token prefixed with "Bearer ", e.g. "Bearer your-api-token".
Path Parameters
Instance ID
Body
application/json
Optional: provide an existing public key to add
- Option 1
- Option 2
The body is of type object.