- Home
- API Enriched
- Blindfold
- secret_management
- DecryptSecret.
DecryptSecret.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/secret_management/namespaces/system/voltshare/decrypt_secret';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"blinded_encrypted_key_base64":"example","policy_document":{"author":{"email":"hello@example.com","tenant":"example"},"blindfold_key_version":1,"creation_time":"2026-04-15T12:00:00Z","policy":{"allowed_users":[{"email":"hello@example.com","tenant":"example"}],"expiration_timestamp":"2026-04-15T12:00:00Z"},"policy_id":"example","secret_name":"example"},"policy_document_hmac_base64":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/secret_management/namespaces/system/voltshare/decrypt_secret \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "blinded_encrypted_key_base64": "example", "policy_document": { "author": { "email": "hello@example.com", "tenant": "example" }, "blindfold_key_version": 1, "creation_time": "2026-04-15T12:00:00Z", "policy": { "allowed_users": [ { "email": "hello@example.com", "tenant": "example" } ], "expiration_timestamp": "2026-04-15T12:00:00Z" }, "policy_id": "example", "secret_name": "example" }, "policy_document_hmac_base64": "example" }'DecryptSecret API takes blinded encrypted secret and policy and responds with blinded decrypted secret if user is allowed by the policy.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”DecryptSecretRequest contains parameters for DecryptSecret API.
object
Blinded Encrypted Key in base64 format Required: YES.
object
object
Email ID of the user.
Tenant of the user.
Version of BlindfoldKey that will be used for encryption.
Creation time for this policy document.
object
List of Users allowed to decrypt the secret.
UserRecordType contains information about a user.
object
Email ID of the user.
Tenant of the user.
Until when this policy is valid. After expiration only author can decrypt the secret.
A unique 31 bit number assigned to this policy.
Name of the secret.
Base64 encoded HMAC of the policy document Required: YES.
Examplegenerated
{ "blinded_encrypted_key_base64": "example", "policy_document": { "author": { "email": "hello@example.com", "tenant": "example" }, "blindfold_key_version": 1, "creation_time": "2026-04-15T12:00:00Z", "policy": { "allowed_users": [ { "email": "hello@example.com", "tenant": "example" } ], "expiration_timestamp": "2026-04-15T12:00:00Z" }, "policy_id": "example", "secret_name": "example" }, "policy_document_hmac_base64": "example"}Responses
Section titled “Responses”A successful response.
DecryptSecretResponse contains the response of DecryptSecret API.
object
Blinded Key in base64 format.
Examplegenerated
{ "blinded_key_base64": "example"}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example