Create SSH key

Creates a new SSH key for the authenticated user.

POST
https://identity.krystal.io/api/v1/ssh_keys

If successful, this endpoint will return a 200 OK status.

Scopes

One of the following scopes are required to use this endpoint.

Arguments

The following arguments are supported for this endpoint.

Name Type Default Value

properties Required

SSHKeyCreateProperties None

Potential Errors

The following errors may occur during this request.

Details HTTP status

validation_error

An error ocurred with the input provided

422 Unprocessable Entity

Returned Object

When the request is successful, you can expect an object matching the specification below to be returned.

{
    ssh_key: SSHKey {
        name: String
        sha1_fingerprint: String
        sha256_fingerprint: String
        key: String
        created_at: Unix Timestamp
        networks: [ String ]
    }
}