Using a JSON request
This page shows you how to perform basic tasks in the Insystech Data Loss Prevention API by making calls directly to the API.
Before you begin
var base64Img = require('base64-img');
objBase64 = base64Img.base64Sync("your file path").split(',')[1];
using System;
using System.IO;
byte[] bytes;
bytes = File.ReadAllBytes(filePath);
var outputBase64 = Convert.ToBase64String(bytes);Inspect a Microsoft Word document for sensitive information
{ "redact": { "redactType":"FILE", "sourceData":"{Your Base64string}", "sourceFileName":"sample-doc.docx", "detectors": [ ] } }{ "APIKey": "{Your API Key}", "secret": "{Your API Secret}" }curl -s \ -H "Content-Type: application/json" \ https://dlp.rpa.insystechinc.com/api/authentication \ -d @authentication-request.jsoncurl -o redacted-result.pdf -s \ -H "TOKEN: {ACCESS_TOKEN}" \ -H "Content-Type: application/json" \ https://dlp.rpa.insystechinc.com/api/redact \ -d @redact-request.json
Last updated