Is there a way to use APIs to decipher Vault text?

Instead of using
vault write transit/decrypt/encryption_key ciphertext=“” | awk ‘END{print $2}’ | base64 --decode

Is there a way to use vault auth token , encrypted data to an api and decrypt it?

curl
–header “X-Vault-Token: …”
–request POST
–data @payload.json
http://127.0.0.1:8200/v1/decrypt/keys/my-key

  • List item

Hi @illakkiya.r - are you looking for something like this (click the API call using cURL tab)