Document comparison
Two versions of a contract or document → every material change, what it means, and the risk it carries.
The example in the published schema
charged 00 credits
- auth (bearer key)
- per-key throttle
- validate body
- balance precheck
- run the capability
- charge credits ON SUCCESS ONLY
- JSON
The request body/v1/compare
{ "a": { "fileUrl": "https://…/msa-2025.pdf" }, "b": { "fileUrl": "https://…/msa-2026.pdf" } }
The responsepublished example
// sending the call
// 0 credits charged so farcurl https://api.thecompound.tech/v1/compare \
-H "Authorization: Bearer $COMPOUND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"a":{"fileUrl":"https://…/msa-2025.pdf"},"b":{"fileUrl":"https://…/msa-2026.pdf"}}'Scored
3 of 3 field checks passed when the eval suite last ran against production, on 2026-07-08. Every endpoint's score
The Documents guide has this endpoint with its example response. The reference has every parameter.
More from Documents
Document parse $0.10/documentAny invoice, receipt, EOB, ERA, or COI, PDF or image, into structured, validated JSON.Contract analysis $0.12/contractA contract → parties, effective date, term, renewal, governing law, obligations, and flagged risk clauses.Invoice extraction $0.08/invoiceAn invoice, PDF, photo, or text, into vendor, dates, PO refs, tax, totals, and clean line items.Receipt extraction $0.06/receiptA receipt into merchant, items, totals, payment method, and an expense category, built for expense flows.Statement parsing $0.12/statementA bank or card statement into the account, the period, balances, and every transaction as a normalized row.Resume parsing $0.08/resumeA resume or CV into a structured candidate profile: contact, skills, experience, education, and links.Table extraction $0.08/documentEvery table in a document, even scanned, as clean headers and rows, ready for your spreadsheet or DB.Document splitting $0.10/bundleA multi-document scan bundle classified and split: what each document is, where it starts and ends, and a summary.