ApiBlog
Create a new blog post
POST
bearerX-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"application/json- body
title*stringLength
5 <= length <= 200content*stringHTML content from rich text editor
excerpt?stringLength
length <= 500featuredImage?stringstatus*stringDefault
"draft"Value in
"draft""published""archived"metaDescription?stringLength
length <= 160metaKeywords?stringtags?array<string>category?stringBlog post created successfully
response?unknownapplication/jsoncurl -X POST 'http://localhost:3001/api/v1/blog' \ -H 'Content-Type: application/json' \ -d '{ "title": "How to Build a Modern Web App", "content": "<h1>Introduction</h1><p>Content here...</p>", "status": "draft"}'Example Response
{ "status": "success", "statusCode": 201, "message": "Blog post created successfully", "data": { "id": "uuid", "title": "How to Build a Modern Web App", "slug": "how-to-build-a-modern-web-app", "content": "<h1>Introduction</h1>", "status": "draft", "readTime": 5, "createdAt": "2026-02-02T10:00:00.000Z" }, "meta": { "blog_post_id": "uuid", "slug": "how-to-build-a-modern-web-app", "created_at": "2026-02-02T10:00:00.000Z" }}