Docxer API Overview

Transform your documents with our powerful REST API. Perfect for automation, workflows, and AI-powered document processing.

Quick Start

✓ RESTful JSON API

✓ Bearer Token Authentication

✓ Multiple Output Formats

✓ AI-Powered Processing

API Capabilities

Everything you need for automated document processing

Template Processing

Process DOCX templates with dynamic placeholders

URL Processing

Process documents directly from URLs

AI-Powered

Intelligent content analysis and filling

Multi-Format

DOCX, PDF, Markdown, HTML conversion

Simple API Examples

Get started with these basic examples

Process Template with Data

Fill template placeholders with your data and get a processed document back.

Request:
curl -X POST "https://your-app.replit.app/api/template/process" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "template_id": "123", "replacements": { "": "ACME Corp", "": "1,234.56 €" }, "output_format": "pdf" }'
Response:
{ "success": true, "filename": "invoice.pdf", "url": "https://your-app.replit.app/download/...", "base64_content": "JVBERi0xLjQK..." }
AI-Powered Document Processing

Let AI analyze your content and automatically fill document templates.

Request:
curl -X POST "https://your-app.replit.app/api/url_aifiller" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "document_url": "https://example.com/template.docx", "content": "Create invoice for John Doe, amount $500", "output_format": "pdf" }'
Response:
{ "success": true, "ai_replacements": { "": "John Doe", "": "$500.00" }, "filename": "invoice.pdf", "url": "https://your-app.replit.app/download/..." }
Authentication Required

To use the Docxer API, you need an API token. All requests must include the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Need an API token? Login to access the full documentation and create your tokens.

n8n MCP Server - Autonomous Template Selection

Revolutionary AI-Powered Workflow Integration: Our n8n-based MCP (Model Context Protocol) Server enables workflows to autonomously select the perfect template for any document processing task.

Key Benefits:
  • Intelligent Template Selection: AI analyzes your content and automatically chooses the most suitable template
  • Zero Manual Configuration: Workflows adapt dynamically without hardcoded template IDs
  • Context-Aware Processing: Understands document types (invoices, contracts, reports) and selects accordingly
  • Seamless n8n Integration: Works natively within your existing n8n workflows
Perfect for: Dynamic document generation, content-driven template selection, intelligent document workflows, and automated business process optimization.
Smart Workflow

Content → AI Analysis → Template Selection → Document Generation


How It Works
  1. Your n8n workflow sends content to the MCP Server
  2. AI analyzes content type and requirements
  3. Server automatically selects optimal template
  4. Document is processed and returned to workflow
Use Cases
  • Multi-format invoice generation
  • Dynamic contract creation
  • Adaptive report formatting
  • Content-driven letter generation

Available Endpoints

Complete API reference available after login

Method Endpoint Description
POST /api/templates List all available templates
POST /api/template/process Process template with data
POST /api/url_replacer Process document from URL
POST /api/url_aifiller AI-powered document processing
POST /api/md2docx Convert Markdown to DOCX/PDF
POST /api/html2docx Convert HTML to DOCX/PDF