Create an SSH key

POST

Create a new SSH key for the authenticated user.

A unique name must be provided for the SSH key, along with a public key. The public key you provide is stored on your FluidStack account for use in SSH authentication.

Supported public key formats: ssh-rsa, ssh-dss (DSA), ssh-ed25519, and ecdsa keys with NIST curves.

Headers

api-keystringOptional

Request

This endpoint expects an object.
namestringRequired

The name of the SSH key.

public_keystringRequired

The public key of the SSH key.

Response

This endpoint returns an object.
namestring

The name of the SSH key.

public_keystringOptional

The public key.