---
title: "Validate SSH key pair"
method: POST
path: "/credentials/validate-key-pair"
tags: ["Credentials"]
---

# Validate SSH key pair

`POST /credentials/validate-key-pair`

Validates if a given SSH private key and public key match.

## Request body

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

## Response `200`

Key pair validation result.

## Other responses

- `400` — Private key and public key are required.
- `500` — Failed to validate key pair.

---

[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)
