Contract comparison CSV export API
Download a private, review-only CSV of cited contract changes with spreadsheet formula protection.
Export a reviewed contract change queue#
After a successful pdfhq.ai.compare job, GET /v1/ai/jobs/ {job_id}/comparison.csv returns an owner- and project-scoped, non-cacheable CSV. Expired and deleted results cannot be exported. This is not legal advice or a certified diff.
curl 'https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/comparison.csv' -H 'x-api-key: PROJECT_API_KEY' -o contract-review.csvColumns: kind, summary, before_citations, after_citations, review_required. Every change is backed by role-validated citation IDs and marked for human review. Formula-like summaries are escaped.
Evidence-linked contract workbook#
GET /v1/ai/jobs/{job_id}/comparison.xlsx returns an actual Excel workbook containing Changes, Source evidence and Review notes. The export checks both before and after citation identities against the two authorized source revisions. It is not a cryptographic signature validation or legal opinion, and carries a mandatory human-review notice.
curl 'https://api.pdfhq.io/v1/ai/jobs/AI_JOB_UUID/comparison.xlsx' \
-H 'x-api-key: PROJECT_API_KEY' -o contract-review.xlsx