API Documentation
Simple REST API for publishing markdown as URLs
Quick Start
- 1. Get your API key at /key
- 2. Send markdown via POST request
- 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
AuthPublish markdown content
Body: Raw markdown (max 1MB)
Returns: {"url": "...", "id": "...", "expires_at": "..."}GET /:id
PublicView published content as HTML
Returns: Rendered HTML pageGET /key/:apiKey
PublicGet 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