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

How to Turn AI Sources into an Automated Writing Pipeline
Workflow

How to Turn AI Sources into an Automated Writing Pipeline

A workflow guide to AI source automation, covering fetching, filtering, deduplication, validation, and topic-card generation for writing systems.

avatar for geekjourney
geekjourney
2026/03/18
Which WeChat Themes Does md2wechat Support?
API

Which WeChat Themes Does md2wechat Support?

A guide to supported `theme` values, how the theme directory maps to the API parameter, and where to inspect styles before integration.

avatar for geekjourney
geekjourney
2026/03/14
How to Write Prompts for WeChat Official Account Articles
Workflow

How to Write Prompts for WeChat Official Account Articles

A first-principles guide to writing prompts for WeChat official account articles, covering audience, objective, evidence, structure, and banned patterns.

avatar for geekjourney
geekjourney
2026/03/18

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.