Vault API call for secret not working :” {"errors":[]} “


We have vault version v1.14.2 installed with consul version V1.16.1 configure with ADFS (OIDC).
All is working fine in the browser. We can create and read secrets (kv type 1)
But we can’t read the secrets with an API call ( we copy the token after logon through OIDC and ADFS.
The error we see with an API call is the following :” {“errors”:} “
Nothing is returned in tracing “vault monitor -log-level=trace”

Call ‘ curl -H “X-Vault-Token: hvs.blablalbla” -X LIST ’ or ‘ curl -H “X-Vault-Token: hvs.blablalbla” -X GET


path “custom_path/*” {
capabilities = [“create”, “read”, “update”, “delete”, “list”]

What can we do to further debug this ?
What do we need to do to fix this ?

Best Regards,



You are missing the api port and v1 as you are using kv1, so it should be like so:

curl -X 'GET' \
  '' \
  -H 'accept: */*' \
  -H 'X-Vault-Token: hvs.blablalbla'

Thank you tsiamer.
the call is working now with the v1 in the URL

My setup is behind a loadbalancer, so I don’t have to specify the 8200 port.

Best regards,


You are welcome, good to hear it is fixed.