Everything you need to know about Unidoc
Getting Started
Welcome to the Unidoc documentation. This guide will help you get started with our platform and show you how to integrate our services into your workflow.
Quick Start
- Sign up for an account on the Unidoc platform
- Generate your API keys from the dashboard
- Install our SDK using npm or yarn
- Initialize the client with your API key
- Start processing documents
// Install the SDK
npm install @3cores/unidoc-sdk
// Initialize the client
import { UnidocClient } from '@3cores/unidoc-sdk';
const client = new UnidocClient({
apiKey: 'your-api-key'
});
// Process a document
const result = await client.processDocument({
file: documentFile,
options: {
extractText: true,
detectPII: true
}
});
API Reference
Our comprehensive API allows you to integrate Unidoc's document processing capabilities directly into your applications. Below is a reference of the main endpoints and methods.
Authentication
All API requests require authentication using your API key. Include it in the header of each request:
Authorization: Bearer your-api-key
Endpoints
Endpoint | Method | Description |
---|---|---|
/api/documents | POST | Upload and process a document |
/api/documents/{id} | GET | Retrieve a processed document |
/api/documents/{id}/text | GET | Extract text from a document |
/api/documents/{id}/pii | GET | Detect PII in a document |
/api/documents/{id}/compliance | GET | Check document compliance |
SDK Documentation
Our SDK provides a convenient way to interact with the Unidoc API from your applications. It's available for multiple programming languages and platforms.
Available SDKs
- JavaScript/TypeScript
- Python
- Java
- C#/.NET
- Go
JavaScript SDK Example
import { UnidocClient } from '@3cores/unidoc-sdk';
// Initialize the client
const client = new UnidocClient({
apiKey: 'your-api-key'
});
// Process a document
async function processDocument(file) {
try {
const result = await client.processDocument({
file,
options: {
extractText: true,
detectPII: true,
checkCompliance: {
regulations: ['GDPR', 'HIPAA']
}
}
});
console.log('Document processed:', result);
// Access extracted text
const text = await client.getDocumentText(result.documentId);
// Check for PII
const piiResults = await client.detectPII(result.documentId);
return {
documentId: result.documentId,
text,
piiResults
};
} catch (error) {
console.error('Error processing document:', error);
throw error;
}
}
Security
At Unidoc, we take security seriously. Here's how we protect your data and ensure the security of our platform.
Data Protection
- All data is encrypted in transit using TLS 1.3
- Data at rest is encrypted using AES-256
- We maintain strict access controls to your data
- Regular security audits and penetration testing
- Compliance with industry standards and regulations
API Security
- API keys are securely stored and never displayed after creation
- Rate limiting to prevent abuse
- IP whitelisting available for enterprise customers
- Detailed audit logs of all API activities
Security Best Practices
Never hardcode your API keys in your application code. Use environment variables or a secure secrets management solution to store and access your API keys.
FAQs
What file formats does Unidoc support?
Unidoc supports a wide range of document formats including PDF, DOCX, XLSX, PPTX, TXT, RTF, and various image formats (PNG, JPEG, TIFF).
What is the maximum file size for processing?
The standard plan supports files up to 10MB. Enterprise plans support files up to 100MB. For larger files, please contact our sales team.
How accurate is the PII detection?
Our PII detection has an accuracy rate of over 95% for standard PII types such as names, addresses, phone numbers, and identification numbers. The accuracy may vary for specialized or uncommon PII types.
Can I process documents in languages other than English?
Yes, Unidoc supports document processing in over 50 languages, including major European, Asian, and Middle Eastern languages.
How long are processed documents stored?
By default, processed documents are stored for 30 days. Enterprise customers can configure custom retention policies based on their needs.