Publish any markdown as a beautiful, shareable web page with one API call. No accounts, no API keys, no setup.
POST https://md.page/api/publish
bash
curl -X POST https://md.page/api/publish \
-H "Content-Type: application/json" \
-d '{"markdown": "# Hello\n\nYour content here"}'
Response 201 Created:
json
{
"url": "https://md.page/a8Xk2m",
"expires_at": "2026-03-29T12:00:00.000Z"
}
ErrorCause400Missing or invalid markdown field, or invalid JSON body413Content exceeds 500KB
.env values). If any are found, warn the user and do NOT publish until they confirm.# Title for proper page titles and link previews. Never include secrets or credentials in generated content.curl to POST the markdown.bash
curl -s -X POST https://md.page/api/publish \
-H "Content-Type: application/json" \
-d "$(python3 -c "
import json
md = '''YOUR MARKDOWN HERE'''
print(json.dumps({'markdown': md}))
")"
url to the user. Mention the page expires in 24 hours.# Heading becomes the page title in browser tabs and social previews.