Site HTTP API
Publishing blog articles and accepting requests. Writing is protected by a token, reading is open.
Reading
GET /api/health is the status. GET /api/blog/list is the list of articles (JSON).
Publishing (token required)
Header Authorization: Bearer <token>, JSON body.
POST /api/blog/publish
{"title": "Title", "description": "Search description (up to 160 characters)",
"summary": "Summary, 1–2 sentences for AI and the snippet",
"category": "Automation", "tags": ["n8n", "Telegram"],
"body_md": "Text in Markdown. A “## FAQ” section with “### question” items becomes FAQ markup."}
POST /api/blog/<slug>/delete deletes an article. The site rebuilds automatically and the response contains the page address.
Requests
POST /api/lead with fields name, contact, type, budget, msg. No token needed.
For AI and search engines
llms.txt, llms-full.txt, ai-catalog.json, search.json, sitemap.xml, RSS. Every article has a Markdown version at /blog/<slug>/index.md.