Api Reference
Drafts
Save articles as drafts without publishing them.
Save a Draft
POST
/draftsSaves an article as a draft. Drafts are private and not indexed by search engines.
Request body
titlestringbodyrequiredDraft title.
contentstringbodyMarkdown body (can be partial).
excerptstringbodyPreview text.
tagsstring[]bodyTag slugs (max 5).
featured_image_urlstringbodyCover image URL.
Response fields
idstringUnique identifier of the draft.
slugstringThe draft's URL slug.
titlestringThe draft title.
created_atstringISO 8601 creation time.
updated_atstringISO 8601 last-updated time.
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","content":"## Hello"}'{
"title": "My Work-in-Progress Post",
"content": "## Introduction\n\nStill drafting...",
"excerpt": "Optional preview text",
"tags": ["ai", "tutorial"],
"featured_image_url": "https://..."
}{
"id": "uuid",
"slug": "my-work-in-progress-post",
"title": "My Work-in-Progress Post",
"created_at": "2026-04-15T09:00:00Z",
"updated_at": "2026-04-15T09:00:00Z"
}To publish a saved draft, use POST /articles with the same slug. The draft is converted to a published article automatically.
Status codes
401— Invalid or missing API key400— Missing requiredtitlefield