---
title: "Fetch a specific SSH key by name"
method: GET
path: "/api/pki/restapi/getSSHKey"
tags: ["SSH Keys"]
---

# Fetch a specific SSH key by name

`GET /api/pki/restapi/getSSHKey`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/api/pki/restapi/getSSHKey`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/api/pki/restapi/getSSHKey/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `keyName` string, required

## Headers

- `orgName` string

## Response `200`

SSH key details

- PkiResponse: Response from PKI module endpoints (SSH/SSL)
  - `result` object
    - `status` string
    - `message` string
  - `details` object: Response payload (varies by endpoint)

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
