Reviewable PDF classification API
Classify verified document evidence as invoice, receipt, contract, report, letter, form or other, with strict provenance checks.
Source-cited document type classification#
A separately quoted pdfhq.ai.classify job returns one category from invoice, receipt, contract, report, letter, form or other, plus a concise rationale and source citation IDs. The result is flagged review_required and is not an authoritative regulatory, tax or legal categorization. Provider access and billing follow the same quote/reserve/settle lifecycle as AI chat.
POST https://api.pdfhq.io/v1/ai/jobs
Idempotency-Key: STABLE_RANDOM_IDEMPOTENCY_KEY
{"operation":"pdfhq.ai.classify","upload_id":"UPLOAD_UUID",
"quote_id":"HQTOOLS_QUOTE_ID","question":"Classify this document",
"allow_external_ai":true}
GET https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID
GET https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/evidence.csv