---
title: "POST /upload-rsa"
method: POST
path: "/upload-rsa"
tags: ["v2"]
---

# POST /upload-rsa

`POST /upload-rsa`

## Request body

- UploadRSA
  - `alg` string, required — Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096]
  - `cert-file-data` string — Certificate in a PEM format.
  - `certificate-format` string
  - `customer-frg-id` string — The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment)
  - `delete_protection` string — Protection from accidental deletion of this object [true/false]
  - `description` string — Description of the object
  - `expiration-event-in` string[] — How many days before the expiration of the certificate would you like to be notified.
  - `item-custom-fields` object — Additional custom fields to associate with the item
  - `json` boolean — Set output format to JSON
  - `metadata` string — Deprecated - use description
  - `name` string, required — Name of key to be created
  - `overwrite` string — When the overwrite flag is set, this command will only update an existing key [true/false]
  - `rsa-file-data` string — RSA private key data, base64 encoded
  - `split-level` integer — The number of fragments that the item will be split into
  - `tag` string[] — List of the tags attached to this key
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

uploadRSAResponse wraps response body.

- UploadRSAOutput

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
