---
title: "List SSH Keys"
method: GET
path: "/api/ssh-keys"
tags: ["user"]
---

# List SSH Keys

`GET /api/ssh-keys`

## Request

- Base URL: `https://api.git.mari.zip` (the document declares no server; this is the origin it was published from)
- URL: `https://api.git.mari.zip/api/ssh-keys`
- Auth: API key in cookie `gitarena-session`
- TypeScript: <https://skmtc.dev/mari/apis/gitarena/docs/api/ssh-keys/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

List of SSH keys for the authenticated user

- SshKey[]
  - `algorithm` 'ssh-rsa' | 'ecdsa-sha2-nistp256' | 'ecdsa-sha2-nistp384' | 'ecdsa-sha2-nistp521' | 'ssh-ed25519' | 'sk-ssh-ed25519@openssh.com' | 'sk-ecdsa-sha2-nistp256@openssh.com' | 'rsa-sha2-256' | 'rsa-sha2-512', required
  - `expiresAt` string, date-time, nullable
  - `fingerprint` string, required
  - `id` string, uuid, required
  - `owner` string, uuid, required
  - `pubkey` string, required
  - `title` string, required

## Other responses

- `401`: Authentication required

## Changes

- **2026-10-29** `efaeb85ac1be`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mari/apis/gitarena/changes/api/ssh-keys/get.md)

---

[API](https://skmtc.dev/mari/apis/gitarena.md) - [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) - [OpenAPI document](https://skmtc.dev/mari/apis/gitarena/revisions/437eec085d26?raw)
