API Overview
md2wechat Agent API endpoint overview covering the convert surface, reading order, and advanced layout entry points.
API Overview
md2wechat Agent API exposes one public endpoint for the Markdown to WeChat HTML path.
Public endpoint
POST https://www.md2wechat.cn/api/convert(backup domain:https://md2wechat.app)
Request fields: markdown (required), theme, fontSize, backgroundType. Auth is a single API key via one of three equivalent headers. See Auth.
Publishing and capabilities
- Publishing API — draft creation as a separate service, driven by the CLI
- WeChat IP Whitelist — when side effects need a whitelist, and the fixed egress
- Multi-Account Publishing — named accounts and explicit selection
- Image Generation — providers, presets, and plan mode
- Title Generation — the title suggest handoff
- Cover Image — explicit covers for every draft
- Layout Module Catalog — the 56-name advanced layout catalog
Shared rules
- Prefer
curlor server-side fetch. - Keep credentials server-side.
- Start with Auth.
- Choose a supported
themevalue from the theme catalog. - Read Theme before wiring
themeintoconvert.
If you want advanced layout
The more important shift is not just the endpoint list. convert can now take structured advanced layout modules as part of the Markdown input.
Recommended reading order:
Those three pages answer three different questions:
- why this syntax is worth adopting
- how the fields and modules should be written
- which small set of modules an agent should choose for a given content job
If you want the cleaner adoption path, continue with: