Skip to main content

Redact | C# SDK

The Pangea Redact API helps developers limit the sprawl of sensitive information by performing redaction using defined rules.

Redact

RedactClient

Redact client.

var config = new Config("pangea_token", "pangea_domain");
var builder = new RedactClient.Builder(config);
var client = builder.Build();

Redact

RedactClient.RedactText(RedactTextRequest)

Redact sensitive information from provided text.

required parameters

RedactTextRequest

RedactRequest with text and optional parameters

Response Object

Task<Response<RedactTextResult>>

Response<RedactTextResult>

var request = new RedactTextRequest.RequestTextBuilder("Jenny Jenny... 415-867-5309").Build();
var response = await client.RedactText(request);

Redact structured

RedactClient.RedactStructured(RedactStructuredRequest)

Redact sensitive information from structured data (e.g., JSON).

required parameters

RedactStructuredRequest

RedactRequest with structured data

Response Object

Task<Response<RedactStructuredResult>>

Response<RedactStructuredResult>

var request = new RedactStructuredRequest.RequestStructureBuilder("Jenny Jenny... 415-867-5309").Build();
var response = await client.RedactStructured(request);