md2wechat Agent API markmd2wechat Agent API
  • Docs
  • Features
  • 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

How to Choose WeChat Automation
Workflow

How to Choose WeChat Automation

A decision guide for choosing between Markdown conversion, draft API integration, and a full WeChat publishing workflow.

avatar for geekjourney
geekjourney
2026/03/17
What WeChat Layout Is Really Solving
Workflow

What WeChat Layout Is Really Solving

WeChat layout is not mainly about style. It should help readers decide fast, read without fatigue, remember one thing, and take one action.

avatar for geekjourney
geekjourney
2026/04/26
md2wechat-skill: WeChat Formatting for Claude Code and OpenClaw
Integration

md2wechat-skill: WeChat Formatting for Claude Code and OpenClaw

An overview of md2wechat-skill, including supported environments, installation paths, and when a skill fits better than a CLI.

avatar for geekjourney
geekjourney
2026/03/12

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
  • Features
  • Themes
  • Pricing
  • Contact
Docs
  • Auth
  • OpenAPI
  • llms.txt
Ecosystem
  • Examples
  • Skills
  • md2wechat-lite
© 2026 md2wechat Agent API. All Rights Reserved.