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

# POST /esm-list

`POST /esm-list`

## Request body

- EsmList — esmList is a command that lists the secrets of an External Secrets Manager
  - `esm-name` string, required — Name of the External Secrets Manager item
  - `json` boolean — Set output format to JSON
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

esmListResponse wraps response body.

- EsmListSecretsOutput
  - `next_token` string
  - `secrets_list` SecretInfo[]
    - `activation_date` string, date-time
    - `created` string, date-time
    - `description` string
    - `expiration` string, date-time
    - `github` GithubMetadata
      - `environment_name` string
      - `organization_name` string
      - `repository` string
      - `repository_access` string
      - `scope` string
      - `selected_repositories` string
    - `key_id` string
    - `last_retrieved` string, date-time
    - `location` unknown
    - `name` string
    - `namespace` string
    - `region` string
    - `secret_id` string
    - `status` boolean
    - `tags` object
    - `thumbprint` string
    - `type` string
    - `version` integer
  - `warnings` 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)
