Skip to main content

Mask Data API

POST /v1/integration/mask-data

Summary

Mask data in a file based on user-specified column masking options.

Request Headers

HeaderValueDescription
AuthorizationBearer API_TOKENThe API token required for authentication.

Form Data Parameters

ParameterTypeRequiredDescription
filefileYesThe file to be masked. Supported formats include Parquet, CSV, JSON, Avro and Feather.
column_masking_optionsstringNoJSON string specifying the columns to mask and their masking types. If not provided, auto-detection is applied.

column_masking_options Example:

[
{"column_name": "email", "masking": "email"},
{"column_name": "phone", "masking": "phone_number"}
]

200: Successful Response

The successful response streams the masked file back to the client. The response headers include the appropriate Content-Disposition for downloading the file. The same file format (Parquet, CSV, JSON, Avro and Feather) is returned with the 'masked' columns.

Content-Disposition: attachment; filename=masked_data.<media_type>
Content-Type: <media_type>