You're all set

Follow these steps to make your first API call in under 2 minutes.

Avg. time to first call: 47 seconds
📦 Download Postman Collection
1Key
2Call
3Response
4Code
5Try
6Explore
1

Get Your API Key

2

Make Your First API Call

Copy this cURL command and run it in your terminal. It converts Markdown to HTML using your API key.

cURL
curl -X POST https://docforge-api.vercel.app/api/md-to-html \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"markdown": "# Hello World\n\nThis is **bold** text."}'
3

Check the Response

A successful request returns JSON with the converted HTML and metadata about the document.

Response — 200 OK
// 200 OK
{
  "html": "<h1>Hello World</h1>\n<p>This is <strong>bold</strong> text.</p>",
  "meta": {
    "wordCount": 6,
    "headings": ["Hello World"]
  }
}
4

Try It in Your Language

Use the DocForge API from any language. Here are ready-to-use examples for JavaScript and Python.

Node.js / Browser
const response = await fetch("https://docforge-api.vercel.app/api/md-to-html", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY",
  },
  body: JSON.stringify({
    markdown: "# Hello World\n\nThis is **bold** text.",
  }),
});

const data = await response.json();
console.log(data.html);
// <h1>Hello World</h1>\n<p>This is <strong>bold</strong> text.</p>
Python
import requests

response = requests.post(
    "https://docforge-api.vercel.app/api/md-to-html",
    json={"markdown": "# Hello World\n\nThis is **bold** text."},
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)

data = response.json()
print(data["html"])
# <h1>Hello World</h1>\n<p>This is <strong>bold</strong> text.</p>

SDK Packages Coming Soon

Install
# JavaScript / TypeScript
npm install docforge-sdk

# Python
pip install docforge
5

Try It Live

Send a real request from your browser. Pick an endpoint, edit the input, and hit Convert.


        
6

Explore All Endpoints

DocForge offers four conversion endpoints. Check out the full documentation for schemas, examples, and error handling.

View Full Documentation
!

Common Errors

If something goes wrong, here are the most common issues and how to fix them.

Status Meaning Fix
401 Unauthorized Your API key is missing or invalid. Check that your Authorization: Bearer header includes a valid df_ key.
429 Too Many Requests You've exceeded your daily rate limit. Wait for the reset or upgrade your plan for higher limits.
400 Bad Request Check your request body format. Ensure you're sending valid JSON with the required fields (e.g. "markdown" for md-to-html).
$

Need More?

The free tier is great for getting started. When you need higher limits, upgrade to Pro or Team.

Free

$0
forever
  • 500 requests/day
  • 100KB input limit
  • All 4 endpoints
  • Community support
Current Plan

Team

$29
per month
  • 500,000 requests/day
  • 25MB input limit
  • All 4 endpoints
  • SLA guarantee
Upgrade to Team
Compare all plans in detail →