Skip to main content
POST
Register an SSH key

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Body

application/json
name
string
required
Maximum string length: 100
Example:

"work laptop"

publicKey
string
required
Maximum string length: 1024
Example:

"ssh-ed25519 AAAAC3… user@host"

Response

Registered

sshKey
object