Build with DocuStitch
Privacy-first PDF processing, now available via REST API. Same local-first engine, enterprise-grade reliability.
Privacy-First
Files processed in isolated containers. Deleted immediately after processing. Zero data retention.
Blazing Fast
99.9% uptime SLA. Average response time under 2 seconds for most operations.
Global CDN
Edge locations worldwide. Files never travel farther than necessary.
Authentication
All API requests require a Bearer token. Get your API key from the Enterprise dashboard.
Available Endpoints
POST/v1/merge▼
Combine multiple PDF files into one document
curl -X POST https://api.docustitch.app/v1/merge \ -H "Authorization: Bearer $API_KEY" \ -F "files[]=@document1.pdf" \ -F "files[]=@document2.pdf"
POST/v1/split▼
Split a PDF into multiple documents by page ranges
curl -X POST https://api.docustitch.app/v1/split \ -H "Authorization: Bearer $API_KEY" \ -F "file=@document.pdf" \ -F "ranges=1-3,4-6,7-10"
POST/v1/compress▼
Reduce PDF file size while maintaining quality
curl -X POST https://api.docustitch.app/v1/compress \ -H "Authorization: Bearer $API_KEY" \ -F "file=@document.pdf" \ -F "level=medium"
POST/v1/ocr▼
Extract text from scanned PDFs using OCR
curl -X POST https://api.docustitch.app/v1/ocr \ -H "Authorization: Bearer $API_KEY" \ -F "file=@scanned.pdf" \ -F "language=eng"
POST/v1/protect▼
Add password protection to a PDF
curl -X POST https://api.docustitch.app/v1/protect \ -H "Authorization: Bearer $API_KEY" \ -F "file=@document.pdf" \ -F "password=SecurePass123"
16 total endpoints available — including convert, flatten, grayscale, repair, redact, and more.
Rate Limits
Pro
Enterprise
Enterprise+
Official SDKs
JavaScript
npm install @docustitch/sdkimport { DocuStitch } from '@docustitch/sdk';
const client = new DocuStitch('API_KEY');
const merged = await client.merge([file1, file2]);Python
pip install docustitchfrom docustitch import DocuStitch
client = DocuStitch('API_KEY')
merged = client.merge([file1, file2])Go
go get github.com/docustitch/go-sdkimport "github.com/docustitch/go-sdk"
client := docustitch.New("API_KEY")
merged, _ := client.Merge(file1, file2)Response Codes
| Code | Status | Description |
|---|---|---|
| 200 | Success | Request completed successfully. Response body contains the processed file. |
| 400 | Bad Request | Invalid parameters or file format. Check the error message for details. |
| 401 | Unauthorized | Missing or invalid API key. Ensure Bearer token is included. |
| 429 | Rate Limited | Too many requests. Wait and retry, or upgrade your plan. |
| 500 | Server Error | Internal error. Contact support if this persists. |
Ready to Integrate?
Get started with a free trial. Enterprise tier includes 10,000 API requests per month.
Get Enterprise AccessAPI Version 1.0 • Developer Documentation • docustitch.app