REST API v1

The MD Converter REST API provides programmatic access to our Markdown conversion engine. Use it to integrate conversion capabilities into your applications, CI/CD pipelines, or automation workflows. API keys are arranged with support. This is not a free public API.

Base URL: /api/v1

Quickstart

Get started with the API in 3 steps:

1

Get an API Key

Contact Adoneinu to obtain your API key. Keys are stored as SHA-256 hashes for security.

2

Make Your First Request

curl -X POST "https://www.adoneinu.com/converter/api/v1/convert" \
  -H "X-API-Key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "# Hello World\n\nThis is a test.",
    "format": "html",
    "theme": "corporate"
  }'
3

Handle the Response

The API returns the converted document as a base64-encoded string in the response body.

Authentication

All API requests require authentication via an API key passed in the X-API-Key header.

curl -X GET "https://www.adoneinu.com/converter/api/v1/themes" \
  -H "X-API-Key: your-api-key-here"

Generating API Keys

API keys are managed server-side. Contact Adoneinu to obtain an API key for your application.

Keys are not self-serve yet: email contact@adoneinu.com with what you want to automate and you will get a key by reply. Only a SHA-256 hash of each key is stored, so a lost key is replaced, not recovered. Each request body can be up to 4 MB.

Endpoints

Method Endpoint Description
GET /api/v1/themes List all available themes
POST /api/v1/convert Convert Markdown content
POST /api/v1/convert/file Upload & convert a file
POST /api/v1/batch Batch convert multiple files
POST /api/v1/document/meta Word count, reading time, and front matter
POST /api/v1/reverse/convert HTML or plain text back to Markdown
POST /api/v1/reverse/file Upload an HTML, text, DOCX, or PDF file and get Markdown
POST /api/v1/publish/seo SEO front matter and JSON-LD (MD Publisher)
POST /api/v1/publish/og 1200×630 Open Graph PNG (MD Publisher)

List Themes

Retrieve all available conversion themes with their color palettes.

Request

GET /api/v1/themes
X-API-Key: your-api-key

Response

{
  "status": "success",
  "themes": [
    {
      "id": "corporate",
      "name": "Corporate Blue",
      "description": "Professional blue theme for business documents",
      "colors": {
        "heading": "#1e3a5f",
        "text": "#333333",
        "bg": "#ffffff",
        "link": "#0066cc",
        "accent": "#4a90d9"
      }
    },
    ...
  ]
}

Convert Content

Convert Markdown content to HTML, DOCX, or PDF format.

Request

POST /api/v1/convert
Content-Type: application/json
X-API-Key: your-api-key

{
  "content": "# Hello World\n\nThis is **Markdown** content.",
  "format": "pdf",
  "theme": "corporate",
  "filename": "my-document",
  "custom_overrides": {
    "bg": "#fdf6e3",
    "heading": "#2c3e50"
  }
}

Request Parameters

Field Type Required Description
content string Yes Markdown content to convert
format string No Output format: html, docx, or pdf. Default: html
theme string No Theme ID. Use List Themes for available options. Default: corporate
filename string No Base filename for the output. Default: document
custom_overrides object No Custom color overrides (hex colors)

Response

{
  "status": "success",
  "filename": "my-document.pdf",
  "content_base64": "JVBERi0xLjQKJeLjz9M...",
  "content_type": "application/pdf",
  "size_bytes": 38912
}

Convert File

Upload a Markdown file and convert it to the desired format.

Request

POST /api/v1/convert/file
Content-Type: multipart/form-data
X-API-Key: your-api-key

file: (binary markdown file)
format: pdf
theme: corporate
custom_overrides: '{"bg": "#fdf6e3"}'

Form Parameters

Field Type Required Description
file file Yes Markdown file (.md, .markdown, .txt)
format string No Output format. Default: html
theme string No Theme ID. Default: corporate
custom_overrides string No JSON string of color overrides

Batch Convert

Convert multiple Markdown documents at once. Results are returned as a ZIP archive.

Request

POST /api/v1/batch
Content-Type: application/json
X-API-Key: your-api-key

{
  "files": [
    {
      "content": "# Document 1\n\nContent here...",
      "filename": "doc1"
    },
    {
      "content": "# Document 2\n\nMore content...",
      "filename": "doc2"
    }
  ],
  "format": "pdf",
  "theme": "corporate",
  "custom_overrides": null
}

Response

{
  "status": "success",
  "filename": "batch_output.zip",
  "content_base64": "UEsDBBQAAAAIAGl...",
  "content_type": "application/zip",
  "file_count": 2
}

Publish SEO

Generate SEO front matter and JSON-LD from Markdown. Set apply to merge YAML into the document. This is the MD Publisher API.

POST /api/v1/publish/seo
Content-Type: application/json
X-API-Key: your-api-key

{
  "content": "# Tailwind with React\n\nA complete guide...",
  "apply": true,
  "schema_type": "TechArticle"
}

Publish OG Image

Render a 1200×630 PNG using a document title and an MD Converter theme.

POST /api/v1/publish/og
Content-Type: application/json
X-API-Key: your-api-key

{
  "title": "Tailwind with React",
  "theme": "corporate",
  "watermark": false
}

Error Codes

HTTP Status Code Description
400 INVALID_REQUEST Malformed JSON or missing required fields
400 MISSING_CONTENT No content provided for conversion
400 INVALID_FORMAT Unsupported output format
400 INVALID_THEME Unknown theme ID
401 MISSING_API_KEY X-API-Key header is required
403 INVALID_API_KEY Invalid or expired API key
404 FILE_NOT_FOUND Uploaded file not found

Rate Limits

API access and rate limits are arranged through support. Contact Adoneinu for a tailored workflow.

Tier Limit
Default 60 requests/minute, 1000 requests/day

Other limits are arranged with support.

Try our other tools

One account and one credit pack work in all of them. Previews are free.

MD Converter Markdown to PDF, DOCX and HTML with a live preview. MD Chat A ChatGPT, Claude or Gemini answer as a clean Word file or PDF. MD Publisher Front matter, JSON-LD and social images for a post. MD Reverse HTML, DOCX, PDF or text back to Markdown. MD Slides An outline becomes a PDF, PowerPoint or HTML deck. MD Clip Save a web page, email or HTML as clean Markdown. MD Diagram Mermaid diagrams with a live editor and templates. MD Diff Compare two drafts, then accept or reject changes. Adoneinu SEO Analyzer A free audit of a public domain with a fix plan.