Skip to content

List SSH keys

GET/v1/ssh-keys

Returns the SSH keys you can use in this workspace, newest first: every key you added (in any workspace) plus every key other members added to this workspace. Deleted keys are not listed.

Any workspace role can call this.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The SSH keys usable in this workspace.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the key. Use it in ssh_key_uids when creating a VM.

namestringRequired

Label given to the key.

fingerprintstringRequired

SHA-256 fingerprint of the public key, in the same format as ssh-keygen -l.

created_atstring (date-time)Required

When the key was added.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.