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

# Detect SSH public key type

`POST /credentials/detect-public-key-type`

Detects the type of an SSH public key.

## Request body

- object
  - `publicKey` string

## Response `200`

Key type detection result.

## Other responses

- `400` — Public key is required.
- `500` — Failed to detect public 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)
