POST
/api/uploadUpload post image
Upload a cover or inline content image for an existing post with an account API key.
Upload a cover (hero/listing) or content (inline markdown) image for an existing post using your account API key. Logo/favicon uploads remain dashboard-only.
Request
POST /api/upload
Authorization: Bearer YOUR_ACCOUNT_API_KEY
X-Blogizi-Project: your-project-slug
Content-Type: multipart/form-dataMultipart fields
file— required (PNG, JPG, WebP, or SVG)type—coverorcontentfor API keysprojectIdorprojectSlug— optional when the account has exactly one projectpostIdorpostSlug— required; post must already exist
Limits: cover max 2MB, content max 5MB. Recommended cover size: 1200×630 px.
Response
{
"data": {
"url": "https://media.blogizi.com/content/…/….png",
"markdown": ""
}
}markdown is returned for type=content. For type=cover, the URL is saved on the post immediately.
Insert into a post
POST /api/postswithstatus: "draft"POST /api/uploadwithtype=content(orcover)- For content:
POST /api/postswithupsert: trueand the markdown image incontent
CLI: blogizi upload ./diagram.png --slug my-post --type content --alt "Diagram". MCP: upload_post_image.