REST API

Markdown
to Word.

Convert Markdown content to professionally styled Word documents with custom branding, headers, footers, and more.

Quick Start

curl -X POST /convert \
  -H "Content-Type: application/json" \
  -d '{
    "markdown": "# Hello World",
    "branding": {
      "title": "My Doc"
    }
  }' -o document.docx

API Endpoints

POST /convert

Convert Markdown

Convert Markdown content to Word document with optional branding configuration.

POST /convert/file

Upload & Convert

Upload a Markdown file (.md, .txt) and receive a Word document.

POST /parse

Parse to AST

Parse Markdown content into Abstract Syntax Tree for inspection.

GET /health

Health Check

Check API status and version information.

GET /branding/sample

Sample Branding

Get a complete sample branding configuration as a template.

GET /docs

Interactive Docs

Swagger UI for interactive API exploration and testing.

Features

Full Markdown

Headings, lists, tables, code blocks, links, images, and more.

Custom Branding

Fonts, colors, headers, footers, logos, and page layout.

Secure

Rate limiting, CORS, request timeouts, and SSRF protection.

Security

30/min

Rate Limit

60s

Timeout

3MB

Max Image

5MB

Max Payload

Request Tracing

Every response includes X-Request-ID header for debugging.

Image Allowlist

Remote images only fetched from configured allowed hosts.

Ready to
Convert?

Explore the interactive documentation to test endpoints directly in your browser.

Response Headers

HTTP/1.1 200 OK
Content-Type: application/...
X-Request-ID: 550e8400-e29b...
Content-Disposition: attachment