cURL
curl --request GET \ --url https://api.bctrl.ai/v1/vault/{key} \ --header 'Authorization: Bearer <token>'
{ "username": "<string>", "password": "<string>", "totp": "<string>", "notes": "<string>" }
Get a credential from the vault
/
aws/prod
null
404
const vault = client.vault; const cred = await vault.get('github'); console.log(cred.username);
{ "username": "bot@acme.com", "password": "s3cret" }