md2wechat Agent API markmd2wechat Agent API
  • Docs
  • Themes
  • Editor
  • Blog
  • Pricing
  • Examples
  • Skills
  • Contact
How to Integrate the Article Draft API
2026/03/12

How to Integrate the Article Draft API

A direct guide to the article draft API, covering required headers, request body, and rollout order.

"How do I integrate the article draft API?"

Most teams ask this right after they get Markdown-to-WeChat conversion working. The next goal is not just formatting content. It is pushing the result into the WeChat draft box.

What problem it solves

The article draft API takes formatted content and moves it one step closer to publication.

Without it, a common process is:

  1. Convert Markdown into WeChat HTML
  2. Open the WeChat backend
  3. Paste the content
  4. Set the cover image
  5. Save the draft manually

With a draft API, that process gets much shorter.

The endpoint in the current examples

The current example endpoint is:

POST /api/v1/article-draft

Required authentication headers are:

  • Wechat-Appid
  • Wechat-App-Secret
  • Md2wechat-API-Key

That means the integration combines two permission layers:

  • WeChat credentials
  • your md2wechat service credential

What the minimum request body looks like

The current example body is shaped like this:

{
  "markdown": "# Title\n\nBody",
  "theme": "default",
  "fontSize": "medium",
  "convertVersion": "v1",
  "coverImageUrl": "https://example.com/cover.jpg"
}

The important part is not the exact sample. It is the structure:

  • Markdown content
  • a theme
  • a font size
  • a conversion version
  • a cover image URL

The safest integration order

The safer rollout is usually not "start with drafts immediately."
A better order is:

  1. Confirm conversion works by itself
  2. Confirm the WeChat credentials are valid
  3. Confirm the service API key is valid
  4. Add the article draft call last

This order makes debugging faster because each layer can fail independently.

Who should use this API

The article draft API is a good fit when:

  • the account publishes frequently
  • content already starts as Markdown
  • the team wants fewer manual backend steps
  • automation needs to move content into a review-ready state

If publishing is infrequent, conversion may still be enough.
If the workflow is already structured, draft creation becomes much more useful.

How it differs from newspic drafts

Article drafts are better for:

  • long-form Markdown
  • theme-based formatting
  • cover image handling
  • full article structure

Newspic drafts are better for lighter, image-first content.

Closing thought

The hard part of the article draft API is not the endpoint itself. It is understanding its place in the workflow.

Conversion gets the content into WeChat format.
Draft creation gets the content into the draft box.

All Posts

Author

avatar for geekjourney
geekjourney

Categories

  • API
What problem it solvesThe endpoint in the current examplesWhat the minimum request body looks likeThe safest integration orderWho should use this APIHow it differs from newspic draftsClosing thought

More Posts

md2wechat Is Now on ClawHub: What to Check Before Installing It in OpenClaw
Integration

md2wechat Is Now on ClawHub: What to Check Before Installing It in OpenClaw

A practical guide to the public ClawHub listing for md2wechat, including what the page shows, what the current scan results mean, and how to approach installation and configuration in OpenClaw.

avatar for geekjourney
geekjourney
2026/03/19
md2wechat 2.0.6: You Can Now Install It with npm
Integration

md2wechat 2.0.6: You Can Now Install It with npm

A practical release note for md2wechat 2.0.6, focused on npm installation, shared GitHub Release binaries, checksum verification, and why this matters for Claude Code, Codex, OpenCode, and other agent workflows.

avatar for geekjourney
geekjourney
2026/03/31
How to Integrate WeChat `draft_add`
API

How to Integrate WeChat `draft_add`

A guide to WeChat `draft_add`, covering server-side constraints, article types, media rules, and common errors.

avatar for geekjourney
geekjourney
2026/03/14

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates

md2wechat Agent API markmd2wechat Agent API

The official md2wechat API, docs, CLI, and skill entry points for Markdown to WeChat publishing workflows.

GitHubX (Twitter)
Product
  • Quickstart
  • Themes
  • Pricing
  • Contact
Docs
  • Auth
  • OpenAPI
  • llms.txt
Ecosystem
  • Examples
  • Skills
  • md2wechat-lite
© 2026 md2wechat Agent API. All Rights Reserved.