---
title: "List workspace SSH keys"
method: GET
path: "/api/v1/workspaces/{workspace_slug}/ssh-keys"
tags: ["SSH Keys"]
---

# List workspace SSH keys

`GET /api/v1/workspaces/{workspace_slug}/ssh-keys`

## Request

- Base URL: `https://cloud-api.phala.com`
- URL: `https://cloud-api.phala.com/api/v1/workspaces/{workspace_slug}/ssh-keys`
- Auth: none declared
- TypeScript: <https://skmtc.dev/phala/apis/phala-cloud-api/docs/api/v1/workspaces/:workspace_slug/ssh-keys/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the active SSH keys of every workspace member, so a CVM can be granted a teammate's key. Public keys only; nothing secret is exposed.

## Path parameters

- `workspace_slug` string, required: Workspace slug

## Response `200`

SSH keys held by workspace members

- WorkspaceSshKeyEntry[]
  - `id` string, hashid, required: SSH key hashid
  - `owner_user_id` string, hashid, required: Member who owns the key
  - `owner_username` string, required: Member username
  - `name` string, required: Human-readable key name
  - `public_key` string, required: OpenSSH format public key
  - `fingerprint` string, required: SHA256 fingerprint
  - `key_type` string, required: Algorithm (ssh-ed25519, ssh-rsa, ...)

## Other responses

- `401`: Not authenticated
- `403`: Not a member of this workspace
- `422`: Validation Error

## Changes

- **2026-11-07** `c71a8dc90391`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/phala/apis/phala-cloud-api/changes/api/v1/workspaces/:workspace_slug/ssh-keys/get.md)

---

[API](https://skmtc.dev/phala/apis/phala-cloud-api.md) - [All operations](https://skmtc.dev/phala/apis/phala-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phala/apis/phala-cloud-api/revisions/c71a8dc90391?raw)
