title: How to use the HashiCorp's Vault API in order to get all all the secret values from a directory with a single API call
body: <p>I am using Postman to call the Vault API.</p>
  <p>Right now I am doing an API call to this endpoint</p>
  <blockquote>
  <p><a href="https://vault.something.com/v1/kv/data/ENV/DEV/secret1" rel="nofollow noreferrer">https://vault.something.com/v1/kv/data/ENV/DEV/secret1</a></p>
  </blockquote>
  <p>I am passing in the body a roleId and secretId and in the headers the X-Vault-Namespace and X-Vault-Token and I am getting the value of the secret at this path.</p>
  <p>I am also able to get all the keys by calling</p>
  <blockquote>
  <p><a href="https://vault.something.com/v1/kv/metadata/ENV/DEV?list=true" rel="nofollow noreferrer">https://vault.something.com/v1/kv/metadata/ENV/DEV?list=true</a></p>
  </blockquote>
  <p>I need to get the values of all the secrets from ENV/DEV/ using a single API call. Can you give me an idea? I got stuck in the existent documentation.</p>