November 30, 2022
1
 min read

How to redact sensitive data elements in a document?

Introducing Strac Redaction API

Today, we will introduce how to leverage Strac APIs to redact sensitive data elements in a document.

Step 1: Upload a document that you want to redact.

Let's take an Identity Document like Drivers License

Original Drivers License
1. Upload a document

% curl -X POST 'https://api.test.tokenidvault.com/documents' \
> --header 'X-API-Key: <api_key>' \
> --form document=@./DriverLicense.jpg

{"id":"doc_eWqCTCyYWwjaUBf3UaRgud","content_type":"image/jpeg","creation_time":"2022-11-29T19:22:57.000Z","size":133888}

You can configure a list of sensitive data elements that you want to redact on Strac's platform.

Step 2: Redact the document

2. Redact the document

% curl -X POST 'https://api.test.tokenidvault.com/redact' \
-H 'X-API-Key: <api_key>' \
-H 'Content-Type: application/json' \
-d '{"document_id": "doc_eWqCTCyYWwjaUBf3UaRgud", "document_type": "generic"}'

{"status": "completed"}

Step 3: Download the Redacted document

3. Download the redacted doc

curl -X GET 'https://api.test.tokenidvault.com/redacted-documents/doc_eWqCTCyYWwjaUBf3UaRgud' \
-H 'X-API-Key: <api_key>' > redacted_DriverLicense.jpg

Here is the redacted drivers license

Redacted Drivers License

‎‎

Founder. YC W22. 11 years at Amazon building Payments Infrastructure (Widget, API, Security).

Latest articles

Browse all