How to fetch secret from Vault through API?

From terminal it works but API calls fails with 404 Not found. I am using the v2 kv. Can you share the API call that can be used to do the following?

$export VAULT_ADDR=
$export VAULT_TOKEN=hvs.CAESIHcPWxtoBpi3XV-Ljlarmo8i9Y7GxYlZ_i4WPBPOvf-3Gh4KHGh2cy56NE9nZHFZbGg3cjNpSGdud3pVN1h5Rno
$vault kv get virtualServer/131313131
======== Secret Path ========
======= Metadata =======
Key                Value
---                -----
created_time       2023-06-12T14:53:03.061658362Z
custom_metadata    <nil>
deletion_time      n/a
destroyed          false
version            1
====== Data ======
Key         Value
---         -----
username    root

Got the answer! issue is solved.

$ vault kv get -output-curl-string virtualServer/131313131
curl -H "X-Vault-Request: true" -H "X-Vault-Token: $(vault print token)"