Automate upload, OCR and PDF processing from your scripts. Five documented endpoints, daily quotas on the free plan.
/api/uploadTemporary file upload
curl -X POST "https://webfiletools.com/api/upload" \
-F "[email protected]"These web tools share the same storage as the upload API. For automation, use the documented endpoints above.
Analyseur PCAP
📤Hébergement d'assets
⏱️Envoi de fichier (lien TTL)
🔒Protéger un PDF par mot de passe
🔓Déverrouiller un PDF
📝Convertir Office en PDF
📝Word vers PDF
📦Convertir Office en lot
📚EPUB vers PDF
🖼️PDF vers Images
📑Images vers PDF
🗜️Compresser un PDF
📃PDF vers Texte
🔧Réparer un PDF
⚡Optimiser un PDF pour le web
📋Markdown vers PDF
🔍Identifier un hash
🔍OCR — Image et PDF vers texte
🧠OCR vers Markdown
📝PDF vers Word
🔐Partage de secret
📁Partage fichier secret chiffré
🎞️Images vers GIF animé
📊PDF vers Excel
📽️PDF vers PowerPoint
🖼️Extraire images d'un PDF
🌐Traduire PDF
✍️Signature électronique PDF
🌐HTML vers PDF
🏛️PDF vers PDF/A
📧Extracteur de signature email
📜Transcription audio/vidéo
🗜️Extraire ZIP / 7z / RAR
🧹Nettoyeur de métadonnées
Add your key in the Authorization header:
Authorization: Bearer $API_TOKEN$API_TOKEN with your key (shown once when created in your dashboard). Docs never embed a real credential.| Plan | Calls / day | Returned header |
|---|---|---|
| Free | 100 | X-RateLimit-Remaining: 97 |
| Pro (waitlist, €6.99/mo) | Unlimited (when available) | — |
Exceeded → 429 Too Many Requests
Uploads a file, returns a share link.
cURL
curl -X POST https://webfiletools.com/api/upload \
-H "Authorization: Bearer $API_TOKEN" \
-F "[email protected]"Python
import requests
API_KEY = "$API_TOKEN"
with open("document.pdf", "rb") as f:
r = requests.post(
"https://webfiletools.com/api/upload",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": f},
)
print(r.json()["url"]) # https://webfiletools.com/f/xxxxxJavaScript (Node.js)
import FormData from "form-data";
import fs from "fs";
const API_KEY = "$API_TOKEN";
const form = new FormData();
form.append("file", fs.createReadStream("document.pdf"));
const res = await fetch("https://webfiletools.com/api/upload", {
method: "POST",
headers: { Authorization: `Bearer ${API_KEY}`, ...form.getHeaders() },
body: form,
});
console.log((await res.json()).url);Response 201
{
"success": true,
"token": "$SHARE_TOKEN",
"filename": "document.pdf",
"size": 204800,
"mimeType": "application/pdf",
"expiresAt": null,
"url": "https://webfiletools.com/f/$SHARE_TOKEN"
}These endpoints process your files directly, no web interface needed. API key authentication required (scope upload). Results are returned synchronously — no polling required.
/api/v1/process/ocr→ JSONExtracts text from an image (PNG, JPG, TIFF, WebP, BMP) or a PDF. Up to 30 pages.
| Parameter | Type | Default |
|---|---|---|
| file | form-data (required) | — |
| lang | string | fra+eng |
curl -X POST https://webfiletools.com/api/v1/process/ocr \
-H "Authorization: Bearer $API_TOKEN" \
-F "[email protected]" \
-F "lang=eng"{ "text": "Extracted content...", "pages": 3, "chars": 1842, "lang": "eng" }/api/v1/process/compress-pdf→ PDF binaryCompresses a PDF using Ghostscript. Returns the compressed PDF as a binary response.
| Parameter | Type | Default |
|---|---|---|
| file | form-data (required) | — |
| quality | screen · ebook · printer · prepress | ebook |
curl -X POST https://webfiletools.com/api/v1/process/compress-pdf \
-H "Authorization: Bearer $API_TOKEN" \
-F "[email protected]" \
-F "quality=screen" \
-o report-compressed.pdfUseful response headers: X-Original-Size, X-Compressed-Size, X-Savings-Percent
/api/v1/process/pdf-to-images→ ZIP (PNG)Converts a PDF to PNG images packed in a ZIP archive. Up to 30 pages.
| Parameter | Type | Default |
|---|---|---|
| file | form-data (required) | — |
| dpi | integer 72–300 | 150 |
curl -X POST https://webfiletools.com/api/v1/process/pdf-to-images \
-H "Authorization: Bearer $API_TOKEN" \
-F "[email protected]" \
-F "dpi=200" \
-o images.zipResponse headers: X-Page-Count, X-DPI
Text-focused endpoint for support automation, useful to classify and reframe tickets without file upload. API key authentication required (scope read, upload or process).
/api/workflows/support/auto→ JSON| JSON field | Type | Notes |
|---|---|---|
| rawLog | string (required) | Raw ticket log |
| ticketContext | string | Optional free-form context |
| locale | fr | en | Default: fr |
curl -X POST https://webfiletools.com/api/workflows/support/auto \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rawLog": "ERR 500 /checkout for tenant acme; customer cannot validate cart",
"ticketContext": "Priority B2B incident",
"locale": "en"
}'{
"ok": true,
"result": {
"anonymized": "...",
"summary": "...",
"draftResponse": "...",
"stats": {
"ipv4": 2,
"ipv6": 0,
"email": 1,
"domainUser": 1,
"fqdn": 1,
"total": 5
}
}
}Possible headers: X-RateLimit-Remaining
Not every pack listed on /en/workflows has a public endpoint for each step yet. Still, several flows can already be partially automated with the public endpoints documented above.
1. IT Support / MSP
API is available for the anonymization + summary/draft reply stage through /api/workflows/support/auto. Before/after comparison and final wording remain web-local.
2. Document Compliance
Already automatable today for initial ingestion with /api/v1/process/ocr, then for visual derivation with /api/v1/process/pdf-to-images or output optimization with /api/v1/process/compress-pdf. PDF redaction and PDF/A conversion still remain guided through the web interface.
3. Secure Multi-type Sharing
For API use, the reliable entry point is /api/upload to push a file and retrieve a share link. The one-time encrypted variant and the full separate-secret orchestration are still primarily web-oriented today.
Not exposed as public API yet
Social Marketing and Web Publishing Express mostly rely on 100% browser-local tools. They work well in web auto and guided assistant modes, but they do not yet have dedicated public endpoints.
| Code | Cause | Fix |
|---|---|---|
| 201 | Success | Read the url field |
| 400 | Missing or invalid file | Check the file field |
| 401 | Missing or invalid key | Check Authorization header |
| 403 | Insufficient scope | Recreate the key with upload scope |
| 413 | Storage quota exceeded | Join the Pro waitlist or reduce size |
| 422 | File rejected (antivirus) | File contains a threat |
| 429 | Daily quota exceeded | Wait until tomorrow or join the Pro waitlist |
| 503 | Antivirus unavailable | Retry in a few seconds |
Typical use cases covering upload, processing and automation.
Daily database backup (bash + cron)
#!/bin/bash
DATE=$(date +%Y-%m-%d)
pg_dump mydb > backup_$DATE.sql
URL=$(curl -s -X POST https://webfiletools.com/api/upload \
-H "Authorization: Bearer $API_TOKEN" \
-F "file=@backup_$DATE.sql" | jq -r '.url')
echo "Backup available at: $URL"Batch upload invoice PDFs (Python)
import os, requests, time
API_KEY = "$API_TOKEN"
for name in os.listdir("./invoices"):
if not name.endswith(".pdf"):
continue
with open(f"./invoices/{name}", "rb") as f:
r = requests.post(
"https://webfiletools.com/api/upload",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": f},
)
print(f"{name} → {r.json().get('url')}")
time.sleep(0.5)GitHub Actions — publish a build artifact
- name: Publish artifact
run: |
URL=$(curl -s -X POST https://webfiletools.com/api/upload \
-H "Authorization: Bearer ${{ secrets.WFT_API_KEY }}" \
-F "file=@dist/app.zip" | jq -r '.url')
echo "Download: $URL" >> $GITHUB_STEP_SUMMARYIndex scanned contracts into a database (Python)
OCR a full folder and store extracted text in PostgreSQL.
import os, requests, psycopg2
API_KEY = "$API_TOKEN"
conn = psycopg2.connect("dbname=docs user=admin")
cur = conn.cursor()
for pdf in os.listdir("./contracts"):
if not pdf.endswith(".pdf"):
continue
with open(f"./contracts/{pdf}", "rb") as f:
r = requests.post(
"https://webfiletools.com/api/v1/process/ocr",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": f},
data={"lang": "eng"},
)
text = r.json()["text"]
cur.execute("INSERT INTO contracts (filename, content) VALUES (%s, %s)", (pdf, text))
conn.commit()Extract text from a screenshot (Node.js)
import FormData from "form-data";
import fs from "fs";
const form = new FormData();
form.append("file", fs.createReadStream("screenshot.png"));
form.append("lang", "eng");
const res = await fetch("https://webfiletools.com/api/v1/process/ocr", {
method: "POST",
headers: { Authorization: "Bearer $API_TOKEN", ...form.getHeaders() },
body: form,
});
const { text, chars } = await res.json();
console.log(`Extracted ${chars} characters:`, text);Optimize PDFs before email attachment (Python)
Reduce file size before attaching, display compression ratio.
import requests
API_KEY = "$API_TOKEN"
with open("annual-report.pdf", "rb") as f:
r = requests.post(
"https://webfiletools.com/api/v1/process/compress-pdf",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": f},
data={"quality": "ebook"},
)
with open("annual-report-compressed.pdf", "wb") as out:
out.write(r.content)
orig = int(r.headers["X-Original-Size"])
comp = int(r.headers["X-Compressed-Size"])
saved = r.headers["X-Savings-Percent"]
print(f"{orig//1024} KB → {comp//1024} KB (-{saved}%)")Batch compression pipeline (bash)
#!/bin/bash
for f in ./reports/*.pdf; do
name=$(basename "$f" .pdf)
curl -s -X POST https://webfiletools.com/api/v1/process/compress-pdf \
-H "Authorization: Bearer $API_TOKEN" \
-F "file=@$f" \
-F "quality=ebook" \
-o "./reports-compressed/$name-compressed.pdf"
echo "✓ $name"
doneGenerate presentation thumbnails (Node.js)
Convert a PDF to PNGs, extract the first page as a thumbnail.
import FormData from "form-data";
import fs from "fs";
import AdmZip from "adm-zip";
const form = new FormData();
form.append("file", fs.createReadStream("slides.pdf"));
form.append("dpi", "96"); // light DPI for thumbnails
const res = await fetch("https://webfiletools.com/api/v1/process/pdf-to-images", {
method: "POST",
headers: { Authorization: "Bearer $API_TOKEN", ...form.getHeaders() },
body: form,
});
const zipBuf = Buffer.from(await res.arrayBuffer());
const zip = new AdmZip(zipBuf);
// Save only page 1 as thumbnail
zip.extractEntryTo("page-001.png", "./thumbs", false, true);
console.log(`Total pages: ${res.headers.get("X-Page-Count")}`);Make / n8n automation (cURL)
In an n8n or Make HTTP node, call the endpoint directly.
curl -X POST https://webfiletools.com/api/v1/process/pdf-to-images \
-H "Authorization: Bearer $API_TOKEN" \
-F "[email protected]" \
-F "dpi=150" \
-o pages.zip
# Unzip pages
unzip -o pages.zip -d ./pages/Create your account and get your first API key in under a minute.