SDKs

Official client libraries to integrate Nvisy redaction into your applications. Choose your language and start building.

SDKs for TypeScript, Python, and Rust

Native client libraries over the same REST API, so redaction is a function call rather than an integration project.

import { NvisyClient } from "@nvisy/sdk";

// Initialize the client
const client = new NvisyClient({
  apiKey: process.env.NVISY_API_KEY,
});

// Redact sensitive data from a document
const result = await client.documents.redact({
  file: "./patient-record.pdf",
  entityTypes: ["PII", "PHI", "FINANCIAL"],
  strategy: "blackout",
});

console.log("Document redacted:", result.documentId);
console.log("Entities found:", result.entitiesRedacted);
from nvisy import NvisyClient
import os

# Initialize the client
client = NvisyClient(api_key=os.getenv('NVISY_API_KEY'))

# Redact sensitive data from a document
result = client.documents.redact(
    file='./patient-record.pdf',
    entity_types=['PII', 'PHI', 'FINANCIAL'],
    strategy='blackout'
)

print(f'Document redacted: {result.document_id}')
print(f'Entities found: {result.entities_redacted}')
use nvisy::{NvisyClient, RedactDocument, Result};
use std::env;

#[tokio::main]
async fn main() -> Result<()> {
    // Initialize the client
    let client = NvisyClient::new(
        env::var("NVISY_API_KEY").expect("NVISY_API_KEY must be set")
    );

    // Redact sensitive data from a document
    let result = client.redact_document(RedactDocument {
        file: "./patient-record.pdf".into(),
        entity_types: vec!["PII", "PHI", "FINANCIAL"],
        strategy: "blackout".into(),
    }).await?;

    println!("Document redacted: {}", result.document_id);
    println!("Entities found: {}", result.entities_redacted);

    Ok(())
}
# Redact sensitive data from a document
curl -X POST https://api.nvisy.com/v1/documents/redact \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@./patient-record.pdf" \
  -F "entity_types=PII,PHI,FINANCIAL" \
  -F "strategy=blackout"

# Response
# {
#   "document_id": "doc_abc123",
#   "entities_redacted": 23,
#   "status": "completed"
# }
Loading code...

Need help getting started?

Our documentation covers everything from installation to advanced usage patterns.

Security & compliance
GDPR
SOC II
HIPAA