AI result exports: PDF, DOCX, XLSX and JSON
Export a completed, owner-scoped cited AI result as a private, read-only review file, without rerunning the model or consuming new credits.
Download a completed AI result without another charge#
Each succeeded, unexpired AI job exposes export_links for PDF, DOCX, XLSX and JSON. All four formats are private, source-validated review aids, not modifications to the uploaded PDFs, signed documents or certified transcriptions. They reuse the already completed inference, so downloading does not request another quote or debit HQTools HQ credits.
GET https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID
# Verify status=succeeded, output_ready=true, and export_links are present.
curl 'https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/export.pdf' \
-H 'x-api-key: PROJECT_API_KEY' -o review.pdf
curl 'https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/export.docx' \
-H 'x-api-key: PROJECT_API_KEY' -o review.docx
curl 'https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/export.xlsx' \
-H 'x-api-key: PROJECT_API_KEY' -o review.xlsx
curl 'https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/export.json' \
-H 'x-api-key: PROJECT_API_KEY' -o review.jsonProvenance, isolation and expiry#
Result retrieval requires the original HQTools account and API-project authorization. A pending or failed result returns 409; expired results return 410. Exports have no public storage URL, set no-store/nosniff headers, validate the source-revision-bound citations, and contain explicit human-review notices. XLSX strings are protected against spreadsheet formula injection. PDF/DOCX exports are summaries and cited excerpts, not full source documents.
Existing dedicated evidence.csv, invoice.csv and comparison.csv endpoints remain available for structured downstream review workflows. Delete completed results with DELETE /v1/ai/jobs/AI_JOB_UUID when no longer required.
