cURL
curl --request POST \ --url http://localhost:3000/api/vault/get-secrets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: text/plain' \ --data '{ "key": "OPENAI_API_KEY", "tags": [ "openai" ] }'
{ "err": {}, "res": { "OPEN_API_KEY": "OPEN_API_VALUE" } }
Fetches secret(s) using the provided key or tags.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved secret(s).
The response is of type object.
object
Was this page helpful?