---
updatedAt: 2026-10-06T17:40:47.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /esm-get

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Account Settings",
    "version": "3.0"
  },
  "paths": {
    "/esm-get": {
      "post": {
        "operationId": "esmGet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/esmGet"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/esmGetResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "General"
        ],
        "x-docs-category": "Account Settings",
        "x-docs-group": "General"
      }
    }
  },
  "tags": [
    {
      "name": "General"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      },
      "esmGetResponse": {
        "description": "esmGetResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EsmGetSecretOutput"
            }
          }
        }
      }
    },
    "schemas": {
      "EsmGetSecretOutput": {
        "properties": {
          "activation_date": {
            "format": "date-time",
            "type": "string",
            "x-go-name": "ActivationDate"
          },
          "binary_value": {
            "type": "boolean",
            "x-go-name": "BinaryValue"
          },
          "encryption_key": {
            "type": "string",
            "x-go-name": "EncryptionKey"
          },
          "expiration": {
            "format": "date-time",
            "type": "string",
            "x-go-name": "Expiration"
          },
          "id": {
            "type": "string",
            "x-go-name": "Id"
          },
          "metadata": {
            "x-go-name": "Metadata"
          },
          "name": {
            "type": "string",
            "x-go-name": "Name"
          },
          "value": {
            "type": "string",
            "x-go-name": "Value"
          },
          "version_id": {
            "type": "string",
            "x-go-name": "VersionId"
          },
          "version_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "VersionIds"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "Warnings"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "esmGet": {
        "description": "esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager",
        "properties": {
          "esm-name": {
            "description": "Name of the External Secrets Manager item",
            "type": "string",
            "x-go-name": "ExternalSecretManagerName"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "secret-id": {
            "description": "The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager",
            "type": "string",
            "x-go-name": "SecretId"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          }
        },
        "required": [
          "esm-name",
          "secret-id"
        ],
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```