---
title: "Download a Key as its raw file"
method: GET
path: "/apiops/projects/{projectName}/keys/{keyName}/export-file/"
tags: ["Key"]
---

# Download a Key as its raw file

`GET /apiops/projects/{projectName}/keys/{keyName}/export-file/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/keys/{keyName}/export-file/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/keys/:keyName/export-file/get.ts> (a function with typed inputs; its response is checked against the schema)

Downloads the key material itself — PEM for asymmetric keys, the stored value for symmetric ones — instead of an Apinizer export package. Without environmentName every environment's material is returned in one ZIP; with it, that single environment's file is returned directly.

## Path parameters

- `projectName` string, required
- `keyName` string, required

## Query parameters

- `environmentName` string

## Response `200`

successful operation!

## Other responses

- `400`: bad request!
- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-10-20** `d1a546deccf0`: 1 breaking
  - removed the media type `application/json` for the response with the status `200`
  - …this revision’s changelog is incomplete
- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/keys/:keyName/export-file/get.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
