Skip to main content
PUT
/
v1
/
vault
/
{key}
Set Credential
curl --request PUT \
  --url https://api.bctrl.ai/v1/vault/{key} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "totp": "<string>",
  "notes": "<string>"
}
'
key
string
required
Credential key.
username
string
Username or identifier.
password
string
Password or secret.
totp
string
TOTP secret for code generation.
notes
string
Freeform notes.

Examples

await vault.set('github', {
  username: 'bot@acme.com',
  password: 's3cret',
  totp: 'JBSWY3DPEHPK3PXP',
});