REST API · OpenAPI 3.1.0 · CI/CD
KlarPDF REST API Documentation
Integrate automated veraPDF ISO 14289-1 validation and PDF/UA remediation directly into GitHub Actions, WordPress, Drupal, SharePoint, or internal publishing pipelines.
1. Stateless ISO 14289-1 Audit (Free / No Auth Required)
curl -X POST https://klarpdf.com/api/audit \
-F "file=@report.pdf" \
-F "flavour=ua1"Returns real veraPDF JSON compliance metrics (compliant, score, failedRules, violations[]) and deletes the uploaded file immediately after validation.
2. Automated PDF/UA Remediation + WCAG HTML5 Export
curl -X POST https://klarpdf.com/api/remediate \
-H "Authorization: Bearer kpdf_live_YOUR_API_KEY" \
-F "file=@legacy-report.pdf" \
-F "flavour=ua1"Returns verifiable before and after veraPDF scores, remediation actions applied, and ephemeral 15-minute download URLs for both the tagged PDF/UA file and the WCAG 2.2 AA HTML5 export. Call DELETE /api/jobs/<jobId> immediately after download to purge artifacts early.
3. Machine-Readable Agent Discovery
GET /llms.txt— Structured index of KlarPDF capabilities, pricing, and guidesGET /llms-full.txt— Full concatenated reference documentGET /openapi.json— OpenAPI 3.1.0 contractGET /.well-known/agent-card.json— Agentic capability descriptorAccept: text/markdown— Negotiated clean Markdown responses on all marketing & fix pages