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

# POST /esm-create

`POST /esm-create`

## Request body

- EsmCreate — esmCreate is a command that creates a new secret in an External Secrets Manager
  - `binary-value` boolean — Use this option if the external secret value is a base64 encoded binary
  - `description` string — Description of the external secret
  - `esm-name` string, required — Name of the External Secrets Manager item
  - `json` boolean — Set output format to JSON
  - `secret-name` string, required — Name for the new external secret
  - `tags` object — Tags for the external secret
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `value` string, required — Value of the external secret item, either text or base64 encoded binary

## Response `200`

esmCreateResponse wraps response body.

- EsmCreateSecretOutput
  - `secret_id` string
  - `version_id` 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)
