Skip to main content
Convert markdown to Word documents (DOCX) with support for track changes, insertions, deletions, and comments. This is useful for generating legal documents, contracts with redlines, and collaborative review documents.

Quick Start

SDK Usage

Use client.create_document() to create a DOCX from markdown:

SDK Method Parameters

SDK Result Fields

How It Works

  1. Send markdown content with optional track changes markup
  2. The API converts it to a DOCX file with proper Word formatting
  3. Track changes tags become native Word revision marks
  4. The DOCX file is returned as a base64-encoded string

Track Changes Markup

Insertions

Mark inserted text with <ins> tags:

Deletions

Mark deleted text with <del> tags:

Comments

Add comments with <comment> tags:

Parameters

Response

The response follows the standard async pattern — submit, then poll: Initial response:
Final response (when polling):

Full Example

A contract with insertions, deletions, and reviewer comments:
The generated DOCX file opens in Microsoft Word with native track changes visible, allowing reviewers to accept or reject each change.

Use Cases

  • Legal document generation — create contracts with tracked revisions
  • Contract redlining — mark up agreements with insertions and deletions
  • Collaborative review — add reviewer comments to documents
  • Document automation — generate Word documents from templates with dynamic content

Next Steps

Track Changes Extraction

Extract track changes from existing Word documents

Document Conversion

Convert documents to markdown, HTML, or JSON

Webhooks

Get notified when document creation completes

Pipelines

Chain processors into versioned, reusable pipelines.