Developer API & Integration Guide
Incorporate bank-grade file operations into your backend services, automation scripts, and mobile apps. Execute tools synchronously or scale with background worker queues.
Developer API Keys & Access
Generate secure bearer tokens to authenticate your automated requests, set up webhook callbacks, and bypass browser concurrency limits. Free developer tier with fair-use limits.
Developer Platform Features
- Bearer token authentication for scripts & pipelines
- Synchronous streaming (<= 60s) or async job queues
- 231 tools spanning PDF, Image, Office, Media & AI
- Encrypted temporary files with 24-hr auto-purge
- Fine-grained permissions and instant token revocation
How to Use the Public Developer API
Everything you need to integrate Sada Files into your software stack. Follow our quickstart steps, explore endpoints, and copy ready-to-run recipes.
Authenticate
Include your bearer token in the HTTP Authorization header:
Send Multipart Form
Attach source files in files and tool options as JSON:
Receive or Stream
Synchronous calls stream the output binary directly. Heavy jobs return a job ID to poll progress.
Quickstart Code Snippets
Copy and run full working code in your preferred programming language.
# 1. Run a tool synchronously (e.g. compress image) and save the output:
curl -X POST "https://sadafiles.com/v1/tools/compress-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files=@document.jpg" \
-F 'options={"quality": 75, "stripMetadata": true}' \
-o "compressed.jpg"
# 2. Run a heavy job asynchronously:
curl -X POST "https://sadafiles.com/v1/tools/pdf-to-word/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files=@annual_report.pdf" \
-F 'options={"preserveLayout": true}'
# 3. Check job status:
curl -X GET "https://sadafiles.com/v1/jobs/job_12345678" \
-H "Authorization: Bearer YOUR_API_KEY"
# 4. Download finished output file:
curl -X GET "https://sadafiles.com/v1/jobs/job_12345678/download" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o "converted_report.docx"REST API Endpoints Specification
Full contract specification for tools, jobs, pipelines, and lifecycle operations.
Common Production Recipes & Payloads
Pre-built payload options for popular image, document, and AI operations.
Compress images with control over lossy quality and EXIF metadata stripping.
{
"quality": 75,
"stripMetadata": true
}Accepts: image/jpeg, image/png, image/webp
Convert PDF documents to editable Microsoft Word documents preserving formatting.
{
"preserveLayout": true,
"detectTables": true
}Accepts: application/pdf
Cut out portrait or product backgrounds cleanly using neural segmentation.
{
"mode": "auto",
"feather": 2
}Accepts: image/jpeg, image/png, image/webp
Combine multiple PDF files into a single unified document with page ordering.
{
"linearize": true
}Accepts: application/pdf (2 or more files)
Chaining Tools with Pipelines (POST /v1/pipeline)
Execute an ordered chain of operations inside one worker with zero intermediary downloads.
curl -X POST "https://sadafiles.com/v1/pipeline" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files=@document.pdf" \
-F 'pipeline=[
{"tool": "pdf-to-images", "options": {"dpi": 150}},
{"tool": "bulk-resize-image", "options": {"width": 1200}},
{"tool": "create-zip", "options": {"filename": "rendered_pages.zip"}}
]' \
-o "rendered_pages.zip"Pipelines validate compatibility before execution. If an intermediate tool output cannot be consumed by the next step, the API returns a descriptive validation error identifying the failing link.
Interactive Tool API Explorer (231 Tools)
Select any tool from our registry to inspect its endpoint URL, supported formats, and auto-generated command.
Compress Image
Reduce image file size with a live quality preview or an exact target size — lossy or lossless, strip metadata, before/after comparison.
curl -X POST "https://sadafiles.com/v1/tools/compress-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files=@input_file" \
-o "output_file"HTTP Status Codes & Error Handling
| Status Code | Meaning | Action / Resolution |
|---|---|---|
| 200 OK | Synchronous execution completed | Read binary stream directly from response body |
| 202 Accepted | Job queued or running asynchronously | Poll status using returned Location header or job ID |
| 400 Bad Request | Invalid parameters or incompatible file MIME | Check error JSON for missing inputs or option validation |
| 401 Unauthorized | Missing, malformed, or revoked API key | Provide a valid bearer token in Authorization header |
| 413 Payload Too Large | Input file exceeds maximum size limit (2 GB) | Split input or compress before uploading |
| 429 Rate Limited | Fair-use quota exceeded | Inspect Retry-After response header and back off requests |
Local & Cloud Hybrid
Use client-side WebAssembly for private, on-device operations or leverage server engines for heavy OCR, video, and multi-file conversions.
24-Hour Maximum Retention
All server processing utilizes encrypted temporary storage and automatically expires within 24 hours. Purge artifacts immediately with DELETE /jobs/:id.
Granular Scopes & Security
Choose granular tool execution, job reading, and pipeline permissions. Immediately revoke compromised keys from your developer dashboard.

