Turn markdown into a beautiful, shareable web page with one API call. Built for AI agents, bots, and developers.
Use peekmd when you need to share formatted content — reports, docs, code snippets, tables, diagrams — as a readable web page instead of raw markdown. The page auto-expires, so it's ideal for temporary shares, previews, and one-off renders.
bash
curl -X POST https://peekmd.dev/api/create \
-H "Content-Type: application/json" \
-d '{"markdown": "# Hello World\n\nThis is a **peekmd** page."}'
Response:
json
{
"url": "https://peekmd.dev/aBcDeFgH",
"slug": "aBcDeFgH",
"expiresAt": "2026-03-22T04:30:00.000Z",
"tier": "free"
}
The url is immediately shareable. Free pages expire in 5 minutes and include a small ad banner.
POST /api/create#Create a rendered markdown page.
Body (JSON):
FieldTypeRequiredDescriptionmarkdownstringyesMarkdown content (max 500 KB)ttlnumbernoTime-to-live in seconds. 0 = permanent. Default: 300 (free tier max).
Response (201):
json
{
"url": "https://peekmd.dev/aBcDeFgH",
"slug": "aBcDeFgH",
"expiresAt": "2026-03-22T04:30:00.000Z",
"tier": "free"
}
GET /:slug#Returns the rendered HTML page. Share this URL directly.
POST /api/burn/:slug#Delete a page immediately. Returns { "ok": true } or 404.
GET /api/pricing#Returns pricing details for all tiers.
GET /health#Health check. Returns { "status": "ok" }.
TierMax TTLAd BannerAuthPricefree5 minyesnonefreestripeunlimitednoAuthorization: Bearer sk_...$0.001-$0.01/page (coming soon)x402unlimitednoX-PAYMENT header0.01 USDC/page (coming soon)
POST /api/stripe/checkout to get a checkout URL.Authorization: Bearer sk_your_key on all requests.GET /api/billing/status with same auth header.POST /api/create request — receive a 402 with payment details.X-PAYMENT header containing the receipt.ttl: 60 for a 1-minute preview, or omit it to get the tier default./api/burn/:slug to delete a page after the recipient has viewed it.https://peekmd.devHomepage: peekmd.dev