Add intelligent document redaction to your application with our simple REST API
curl -X POST https://api.redactai.com/v1/redact \ -H "Authorization: Bearer redact_sk_1234567890abcdef" \ -H "Content-Type: multipart/form-data" \ -F "file=@document.pdf" \ -F "redact_types=names,addresses"
{
"status": "completed",
"file_id": "file_abc123",
"redacted_url": "https://api.redactai.com/files/abc123_redacted.pdf",
"redactions": {
"names": 3,
"addresses": 2
}
}/api/redactUpload a file and specify what to redact
{
"success": true,
"job_id": "uuid",
"redaction_summary": "Found and redacted 3 names, 2 addresses",
"redactions_count": 5,
"redacted_file_url": "path/to/redacted/file",
"original_file_url": "path/to/original/file"
}/api/status/[jobId]Check the processing status of your redaction job
{
"id": "job-uuid",
"status": "completed",
"original_filename": "document.pdf",
"redactions_count": 5,
"processing_time": 2500,
"original_file_url": "signed-url-to-original",
"redacted_file_url": "signed-url-to-redacted",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:30Z"
}/v1/ai-redactUse natural language to describe what to redact
curl -X POST /api/redact \ -F "file=@document.pdf" \ -F "user_id=user-uuid" \ -F "redaction_types=names,addresses" \ -F "ai_instruction=Redact all client information but keep technical details"
npm install @redactai/node
pip install redactai
import { RedactAI } from '@redactai/node';
const redact = new RedactAI('redact_sk_1234567890abcdef');
const result = await redact.redactFile({
file: './document.pdf',
redactTypes: ['names', 'addresses']
});
console.log(result.redactedUrl);Keep your API key secure and don't share it publicly.
Redact sensitive client information
Remove owner details, keep technical data
Add redaction to your platform