Skip to main content

Masking Data

This API masks plaintext using an existing masking function. The masking function is identified by its unique ID, and the API returns the masked data.


Endpoint Details

URL /v1/masking
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": "5b41077a-97d1-4bc7-adf4-124025a1758b",
"plaintext": "0812345678912"
}

Parameters

ParameterTypeDescription
function_idUUIDUnique identifier of the masking function used to perform masking
plaintextStringPlaintext data to be masked

Response

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

Response
{
"masked_data": "!!!!!!56!!91!"
}

Field Descriptions

FieldTypeDescription
masked_dataStringMasked output generated from the provided plaintext using the specified masking function

info
  • A valid Bearer Token is required to access this endpoint.
  • The function_id must refer to an existing masking function.
  • The masking result depends on the masking type and settings configured in the masking function.