Quickstart
Run your first md2wechat request in three steps, converting Markdown into WeChat-ready HTML.
Quickstart
md2wechat Agent API solves one core workflow problem:
- convert Markdown into WeChat-ready HTML with theme and layout support
Step 1. Get an API key
Phase one uses manual activation:
- contact us with your agent environment and target workflow, or
- buy the Unified tier (¥199 one-time) on the md2wechat.cn API docs page
You receive a Md2wechat-API-Key. Formal keys start with wme_ (v1) or wme2_ (v2); trial keys start with wmt_.
Step 2. Run the smallest conversion request
Before the first call, pick a supported theme value from the theme catalog or the theme parameter guide.
curl -X POST "https://www.md2wechat.cn/api/convert" \
-H "Content-Type: application/json" \
-H "Md2wechat-API-Key: wme_your_api_key" \
-d '{
"markdown": "# Hello\n\nWeChat ready content.",
"theme": "default",
"fontSize": "medium",
"backgroundType": "default"
}'Md2wechat-API-Key, X-API-Key, and Authorization: Bearer are equivalent headers — use any one. No WeChat AppID, AppSecret, or IP whitelist is required, and conversion never creates WeChat drafts. If www.md2wechat.cn is unreachable, the backup domain is https://md2wechat.app.
Step 3. Verify the response, then go further
A successful response returns data.html plus theme, fontSize, backgroundType, wordCount, and estimatedReadTime. Confirm the HTML pastes into the WeChat editor, then continue with: