---
title: "Export an SSH key"
method: POST
path: "/api/pki/restapi/exportSSHKey"
tags: ["SSH Keys"]
---

# Export an SSH key

`POST /api/pki/restapi/exportSSHKey`

## Request

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

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- object
  - `keyName` string
  - `keyExportType` 'private' | 'public'

## Response `200`

SSH key exported

---

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