---
title: "POST /create-esm"
method: POST
path: "/create-esm"
tags: ["v2"]
---

# POST /create-esm

`POST /create-esm`

## Request body

- CreateESM — CreateESM is a command that creates an External Secrets Manager. [Deprecated: Use command create-usc]
  - `azure-kv-name` string — Azure Key Vault name (Relevant only for Azure targets)
  - `delete_protection` string — Protection from accidental deletion of this object [true/false]
  - `description` string — Description of the External Secrets Manager
  - `gcp-project-id` string — GCP Project ID (Relevant only for GCP targets)
  - `json` boolean — Set output format to JSON
  - `k8s-namespace` string — K8s namespace (Relevant to Kubernetes targets)
  - `name` string, required — External Secrets Manager name
  - `tags` string[] — List of the tags attached to this External Secrets Manager
  - `target-to-associate` string, required — Target External Secrets Manager to connect
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `201`

CreateExternalSecretsManagerResponse wraps response body.

- CreateESMOutput
  - `external_secret_manager_id` integer
  - `external_secret_manager_name` string

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