md2wechat Agent API markAgent API Docs
md2wechat Agent API markAgent API Docs
Homepage

Start

Markdown to WeChat API DocsQuickstartAuth

APIs

Integrations

Operations

ErrorsPricingContact
X (Twitter)

Convert

Convert Markdown into WeChat-ready HTML.

Convert

What it does

Turns Markdown into WeChat-ready HTML.

Required headers

Content-Type: application/json
Md2wechat-API-Key: wme_your_api_key

Request body

{
  "markdown": "# Hello\n\nBody",
  "theme": "default",
  "fontSize": "medium",
  "convertVersion": "v1"
}

Theme parameter

  • theme must be one of the currently supported public theme ids.
  • Browse the full catalog at /themes.
  • See Theme for selection rules and API usage guidance.

Copy-paste curl

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\nBody",
    "theme": "default",
    "fontSize": "medium",
    "convertVersion": "v1"
  }'

Success response

Returns WeChat-ready HTML.

Failure response

Auth failure or invalid markdown payload.

Agent notes

  • Best first endpoint for integration.
  • Safe for pipelines that only need HTML output.

Table of Contents

Convert
What it does
Required headers
Request body
Theme parameter
Copy-paste curl
Success response
Failure response
Agent notes