Developer docs
Phase 4 exposes key-protected REST endpoints. Today, core PDF operations remain browser-only for privacy. AI text endpoints are scaffolded and gated by AI_ENABLED.
Privacy-first core tools
Prefer the public web tools for merge/split/compress/watermark. Server routes for those ops return 501 by design so files are not uploaded unnecessarily.
AI endpoints (text payloads)
POST /api/pdf/summarize— body:{ text, mode }POST /api/pdf/chat— body:{ context, question }POST /api/pdf/extract— body:{ text }
Example (JavaScript)
const res = await fetch("/api/pdf/summarize", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: extractedText, mode: "medium" }),
});
const { summary } = await res.json();Example (Python)
import requests
r = requests.post(
"https://allpdfneeds.com/api/pdf/summarize",
json={"text": extracted_text, "mode": "short"},
)
print(r.json())Coming later
API keys, per-plan rate limits, OCR, and optional server-side PDF jobs for Business plans.