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

# POST /create-esm

`POST /create-esm`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/create-esm`
- Auth: none declared

## 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.dev/akeyless/apis/account-settings.md) - [All operations](https://skmtc.dev/akeyless/apis/account-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/account-settings/revisions/6beb28d274ac?raw)
