Decrypt Data
This API decrypts ciphertext using an existing encryption configuration. The encryption configuration is identified by its unique ID, and the API returns the original plaintext.
Endpoint Details
| URL | /v1/crypto/decrypt |
| Method | POST |
| Authorization | Bearer Token |
Request Headers
| Header | Type | Description |
|---|---|---|
| Content-Type | String | Must be application/json |
Request Body
Use the following format to make a request:
JSON Request
{
"function_id": "74b1d868-4210-41c0-ab20-3cabb574ebca",
"ciphertext": "v1:OUhMSPcZ/anj9DesnGtaylvUCbUo2Qnfjx4joj21bpcG5gfQ9wOM7EGuao+dA1ojzRLzAw/LTH1mEodAfmXD+sPTykqhyE4Cd76OvEWL72mstnO8V/9kKAaQBsJVQ/XeC+BNUvLrcVRTIf4Fyf3SZlZeQ+dZ+Is622/tUJFq7GM="
}
Parameters
| Parameter | Type | Description |
|---|---|---|
| function_id | String | Unique identifier of the encryption configuration used to perform encryption |
| ciphertext | String | Encrypted data to be decrypted |
Response
Here is an example response after the request has been successfully processed:
Response
{
"plaintext": "testing"
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
| plaintext | String | Original plaintext obtained after successfully decrypting the provided ciphertext |
info
- A valid Bearer Token is required to access this endpoint.
- The
function_idmust refer to an existing encryption configuration. - The provided
ciphertextmust be generated using the same encryption configuration (function_id) that is used for this decryption request.