MisarMisar Docs
MisarMailMisarBlogMisarReachMisarPostMisarDevMisarCoderMisarSEOMisar PlatformMisar SSO
API Reference

Drafts

Save articles as drafts without publishing them.

Save a Draft

POST/drafts

Saves an article as a draft. Drafts are private and not indexed by search engines.

Request body

titlestringbodyrequired

Draft title.

body_markdownstringbodyrequired

Markdown body (can be partial).

tagsstring[]body

Tag slugs (max 10).

Response fields

idstring

Unique identifier of the draft.

slugstring

The draft's URL slug (auto-generated from the title).

titlestring

The draft title.

statusstring

Always draft.

editor_urlstring

URL to open the draft in the web editor.

created_atstring

ISO 8601 creation time.

Request
curl -X POST https://api.misar.io/blog/v1/drafts \
  -H "Authorization: Bearer mbk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"My Draft","body_markdown":"## Hello"}'
Request body
{
  "title": "My Work-in-Progress Post",
  "body_markdown": "## Introduction\n\nStill drafting...",
  "tags": ["ai", "tutorial"]
}
201 — Created
{
  "id": "uuid",
  "slug": "my-work-in-progress-post",
  "title": "My Work-in-Progress Post",
  "status": "draft",
  "editor_url": "https://www.misar.blog/editor/uuid",
  "created_at": "2026-04-15T09:00:00Z"
}

A draft is saved as an unpublished article. Open its editor_url to finish and publish it in the web editor, or call POST /articles to publish a new article directly.

Status codes

  • 400 — Missing required title or body_markdown
  • 401 — Invalid or missing API key