/v1/ssh-keysReturns 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-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The SSH keys usable in this workspace.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the key. Use it in ssh_key_uids when creating a VM.
namestringRequiredLabel given to the key.
fingerprintstringRequiredSHA-256 fingerprint of the public key, in the same format as ssh-keygen -l.
created_atstring (date-time)RequiredWhen the key was added.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.