Document APIs

Choose a document comparison endpoint

Diffchecker exposes three document comparison APIs. Use Plain Text for a text-focused PDF response, choose Rich Text for PDF geometry and visual output, or choose Redline for a DOCX with Microsoft Word tracked changes.

POST/document/plaintext

Plain Text

Plain-text PDF diff output for quick integrations that want the familiar Diffchecker-style JSON or HTML response.

jsonhtmlhtml_json

Best when you want a simpler, text-focused diff shape.

Good fit for standard review flows and lightweight integrations.

Matches the plain-text document diff behavior already used elsewhere in the product.

POST/document/richtext

Rich Text

Structured PDF diff output with polygons, page images, visual-content comparison, and export-ready HTML or PDF.

jsonhtmlhtml_jsonpdf

Best for custom viewers, overlays, and downstream automation.

Includes geometry and page metadata for precise rendering.

Adds richer output modes, including PDF export and visual object comparison.

POST/document/redline

Redline

Upload original and revised DOCX files and download a revised-document-based Word file containing Microsoft Word tracked changes.

docx

Best for legal and business review workflows in Microsoft Word.

Preserves the revised document as the base while marking insertions and deletions.

Bills from the larger compressed DOCX after output generation and before delivery.