Skip to main content
POST
Register an SSH key
Registers a public key with your account. Use it to set up a new machine for SSH access to your agents. Related guide: Quickstart. ed25519 only. The fingerprint is computed server-side; the same key cannot be registered twice. At most 25 keys per account.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

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