Skip to main content

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​

HeaderTypeDescription
Content-TypeStringMust 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​

ParameterTypeDescription
function_idStringUnique identifier of the encryption configuration used to perform encryption
ciphertextStringEncrypted data to be decrypted

Response​

Here is an example response after the request has been successfully processed:

Response
{
"plaintext": "testing"
}

Field Descriptions​

FieldTypeDescription
plaintextStringOriginal plaintext obtained after successfully decrypting the provided ciphertext

info
  • A valid Bearer Token is required to access this endpoint.
  • The function_id must refer to an existing encryption configuration.
  • The provided ciphertext must be generated using the same encryption configuration (function_id) that is used for this decryption request.