Overview
The Track Changes API extracts:- Tracked changes: insertions and deletions
- Comments: margin comments and their note text
track_changes is perfect for legal workflows where you need to:
- Generate redline summaries for clients
- Identify all changes made by specific parties
- Extract action items from comments
- Analyze negotiation patterns across contract versions
- Create audit trails of document revisions
- DOCX — tracked changes are extracted exactly from the document XML. Author names, timestamps, and comments are fully preserved.
- PDF, images (PNG, JPEG, TIFF, etc.), and other formats — each page is rendered and read by a visual redline model that detects underlined or colored insertions, struck-through or bracketed deletions, “Inserted:” and “Deleted:” balloons, and margin comments. Scanned documents are handled the same way as digital PDFs. A page with no visible markup is returned as a plain parse, so you can submit a whole document without pre-filtering pages.
Quick Start (SDK)
The simplest way to extract tracked changes is with the Python SDK:Making the API Request
Here’s how to submit a document and extract its tracked changes using the REST API:Output markup
The response contains your document with all tracked changes preserved inline. For DOCX input, each tag carries revision metadata:- Insertions:
<ins data-revision-author="Sandy Kwon" data-revision-datetime="2025-11-11T11:24:00">new text</ins> - Deletions:
<del data-revision-author="Vikram Oberoi" data-revision-datetime="2025-11-11T10:34:00">old text</del> - Comments:
<comment data-comment-author="Vikram Oberoi" data-comment-datetime="2025-11-11T10:32:00" data-comment-initial="VO" text="comment text">marked text</comment>
- Insertions:
<ins>new text</ins> - Deletions:
<del>old text</del> - Comments:
<comment text="comment text">marked text</comment>
Analyzing Changes with LLMs
Once you have the extracted markup, you can use an LLM to analyze the changes. Here’s an example using OpenRouter to generate a redline summary:Pagination
For longer documents, you may want to preserve page breaks in the output so you can split them. Set paginate to True in your request:Full Code Sample
Here’s a complete example that extracts tracked changes and generates a legal review summary:Pricing
Track Changes is billed as a conversion plus a $6 per 1,000 pages add-on, for every input type. See pricing for current rates.Next Steps
Document Conversion
Explore the full conversion API and output format options.
Structured Extraction
Extract structured data from documents using JSON schemas.
Pipelines
Chain processors into versioned, reusable pipelines.
SDK Conversion
Use the Python SDK for simpler document conversion workflows.