---
title: "Lists SSH Keys that belong to the given project."
method: GET
path: "/api/v1/projects/{project_id}/sshkeys"
tags: ["project"]
---

# Lists SSH Keys that belong to the given project.

`GET /api/v1/projects/{project_id}/sshkeys`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v1/projects/:project_id/sshkeys/get.ts> (a function with typed inputs; its response is checked against the schema)

The returned collection is sorted by creation timestamp.

## Path parameters

- `project_id` string, required

## Response `200`

SSHKey

- SSHKey[]
  - `annotations` object: Annotations that can be added to the resource
  - `creationTimestamp` string, date-time: CreationTimestamp is a timestamp representing the server time when this object was created.
  - `deletionTimestamp` string, date-time: DeletionTimestamp is a timestamp representing the server time when this object was deleted.
  - `id` string: ID unique value that identifies the resource generated by the server. Read-Only.
  - `name` string: Name represents human readable name for the resource
  - `spec` SSHKeySpec: SSHKeySpec represents the details of a ssh key
    - `fingerprint` string
    - `publicKey` string

## Other responses

- `401`: EmptyResponse is a empty response
- `403`: EmptyResponse is a empty response
- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
