---
title: "show ssh keys"
method: GET
path: "/api/v0/ssh/"
tags: ["Accounts"]
---

# show ssh keys

`GET /api/v0/ssh/`

Retrieve a list of SSH keys associated with the authenticated user's account.

CLI Usage: `vastai show ssh-keys`

## Headers

- `Authorization` string, required

## Response `200`

A list of SSH keys.

- object[]
  - `id` integer — The unique identifier of the SSH key.
  - `user_id` integer — The ID of the user to whom the SSH key belongs.
  - `key` string — The SSH public key.
  - `created_at` string, date-time — The timestamp when the SSH key was created.
  - `deleted_at` string, date-time, nullable — The timestamp when the SSH key was deleted, if applicable.

## Other responses

- `401` — Unauthorized access due to invalid or missing authentication token.
- `404` — No SSH keys found for the user.

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
