---
title: "Detect SSH key type"
method: POST
path: "/credentials/detect-key-type"
tags: ["Credentials"]
---

# Detect SSH key type

`POST /credentials/detect-key-type`

Detects the type of an SSH private key.

## Request body

- object
  - `privateKey` string
  - `keyPassword` string

## Response `200`

Key type detection result.

## Other responses

- `400` — Private key is required.
- `500` — Failed to detect key type.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
