Loading...
REST + webhooks. SDKs for Python, JavaScript, and Go. The same API that powers pdfpilot4u.com — yours to call directly.
Quickstart
curl -X POST https://api.pdfpilot4u.com/v1/ai/chat \
-H "Authorization: Bearer $PDFPILOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_ids": ["file_01hkxy..."],
"message": "Summarize the key risk clauses"
}'from pdfpilot import PDFPilot
pm = PDFPilot(api_key="sk_live_...")
uploaded = pm.files.upload("contract.pdf")
response = pm.chat(
file_ids=[uploaded.id],
message="Summarize the key risk clauses"
)
print(response.answer)
for cite in response.citations:
print(f" page {cite.page}: {cite.quote}")import PDFPilot from '@pdfpilot4u/sdk'
const pm = new PDFPilot({ apiKey: process.env.PDFPILOT_API_KEY })
const file = await pm.files.upload('contract.pdf')
const response = await pm.chat({
fileIds: [file.id],
message: 'Summarize the key risk clauses',
})
console.log(response.answer)Endpoints
/v1/files/uploadUpload a PDF or documentPOST/v1/ai/chatChat with a document (RAG + citations)POST/v1/tools/mergeMerge multiple PDFsPOST/v1/tools/compressCompress a PDFPOST/v1/tools/ocrRun OCR on a scanned PDFPOST/v1/tools/redactAI-powered PII redactionPOST/v1/agent/runRun an agent workflow from a promptGET/v1/jobs/{id}Poll status of an async jobSubscribe to job.completed, file.uploaded, and agent.step events with HMAC-signed payloads.