ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiBlog

Create a new blog post

POST
/api/v1/blog

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body
title*string
Length5 <= length <= 200
content*string

HTML content from rich text editor

excerpt?string
Lengthlength <= 500
featuredImage?string
status*string
Default"draft"
Value in"draft""published""archived"
metaDescription?string
Lengthlength <= 160
metaKeywords?string
tags?array<string>
category?string

Response Body

Blog post created successfully

response?unknownapplication/json
Example Request
curl -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"  }}