Skip to main content
POST
Create server SSH key

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

server:create-keys

Allow members to add SSH keys to servers

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

Body

application/json
name
string
required

The name of the SSH key.

Example:

"oliver-macbook"

key
string
required

The public SSH key.

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5A... user@example.com"

user
string | null
default:forge

The user associated with the SSH key.

Example:

"username"

Response

Adding SSH key to server accepted