API Documentation

Simple REST API for publishing markdown as URLs

Quick Start

  1. 1.
    Get your API key at /key
  2. 2. Send markdown via POST request
  3. 3. Receive public URL instantly
curl -X POST "https://md2.website/key/YOUR_API_KEY" \
  -H "Content-Type: text/plain" \
  -d "# Hello World"

API Endpoints

POST /key/:apiKey

Auth

Publish markdown content

Body: Raw markdown (max 1MB)
Returns: {"url": "...", "id": "...", "expires_at": "..."}

GET /:id

Public

View published content as HTML

Returns: Rendered HTML page

GET /key/:apiKey

Public

Get API key stats and publication history

Returns: {"monthly_publications": ..., "publications": [...], ...}

Limits

  • 30 publications per month (free tier)
  • 1MB max content size
  • 1-day auto-expiry
  • XSS protection enabled

Ready to start?

Get your API key and start publishing

Get API Key →
Logo md2.website md2.website

© 2026 md2.website