Quickstart
First successful md2wechat request for Markdown to WeChat HTML, drafts, or media upload.
Quickstart
md2wechat Agent API solves three common workflow problems:
- convert Markdown into WeChat-ready HTML
- create reviewable WeChat drafts
- upload remote images before publishing
Step 1. Get a key
Phase one uses manual activation. Contact us with:
- your agent environment
- your target workflow
- the endpoints you need
Step 2. Call the basic API
If your first goal is Markdown to WeChat HTML, start with convert.
Before the first call, pick a supported theme value from the theme catalog or the theme parameter guide.
curl -X POST "http://localhost:8080/api/v1/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",
"convertVersion": "v1"
}'Step 3. Move to advanced APIs
If your goal is not just formatting, move to the draft and upload APIs.
Advanced APIs also require:
Wechat-AppidWechat-App-SecretMd2wechat-API-Key
Then use: