Manage blog articles programmatically. Supports HTML or Markdown (content_markdown), optimistic concurrency (expected_revision), co-authors, membership tiers, SEO/OG metadata, and version snapshots.
List all posts
Retrieves a paginated list of posts. Requires posts:read.
Query parameters
- Name
page- Type
- integer
- Description
Page number (default
1).
- Name
limit- Type
- integer
- Description
Results per page (default
20, max100).
- Name
status- Type
- string
- Description
Filter by
publish,draft, orin_review.
- Name
tag- Type
- string
- Description
Filter by tag ID or slug.
- Name
category- Type
- string
- Description
Filter by category ID or slug.
- Name
author- Type
- string
- Description
Filter by author ID or username.
- Name
featured- Type
- boolean
- Description
Set
trueto return only featured posts.
- Name
search- Type
- string
- Description
Search by title or excerpt.
- Name
updated_since- Type
- string
- Description
ISO-8601 timestamp for incremental syncs.
- Name
include_content- Type
- boolean
- Description
Set
falseto omitcontentandcontent_textfor lighter list responses.
curl -G https://api.bloghunch.com/v1/posts \
-H "Authorization: Bearer {token}" \
-d status=publish \
-d limit=10{
"data": [
{
"id": 406856,
"publication_id": 3696,
"author_id": 1,
"title": "Scaling Headless Content",
"slug": "scaling-headless-content",
"excerpt": "How agencies automate multi-site publishing.",
"featured_image": "https://cdn.bloghunch.com/uploads/cover.webp",
"status": "publish",
"reading_time": 4,
"revision": 3,
"published_at": "2026-11-10T09:00:00.000Z",
"tags": [{ "id": 66, "name": "Engineering", "slug": "engineering" }],
"author": { "id": 1, "name": "Subham Mitra", "username": "subham" }
}
],
"meta": {
"total": 23,
"per_page": 10,
"current_page": 1,
"last_page": 3,
"has_more": true
}
}Get single post
Retrieves a single post by numeric ID or URL slug. Requires posts:read.
curl https://api.bloghunch.com/v1/posts/scaling-headless-content \
-H "Authorization: Bearer {token}"Create a post
Creates a new post from HTML (content) or Markdown (content_markdown). Requires posts:write.
- Name
title- Type
- string
- Description
Post title (at least one of
title,content, orcontent_markdownis required).
- Name
content / content_markdown- Type
- string
- Description
HTML body or Markdown body (automatically converted to HTML).
- Name
status- Type
- string
- Description
draft(default),publish, orin_review. Writers on approval-enabled sites are automatically routed toin_review.
- Name
slug- Type
- string
- Description
Optional custom slug (auto-deduplicated per publication).
- Name
tag_ids / tags- Type
- array
- Description
Array of tag IDs (
tag_ids) or tag slugs (tags).
- Name
category_id- Type
- integer
- Description
Category ID.
- Name
co_author_ids- Type
- array
- Description
Array of co-author user IDs.
- Name
tier_ids- Type
- array
- Description
Restrict access to specific paid membership tiers.
- Name
canonical_url / meta_title / meta_description- Type
- string
- Description
SEO metadata fields.
curl -X POST https://api.bloghunch.com/v1/posts \
-H "Authorization: Bearer {token}" \
-H "Idempotency-Key: post-create-001" \
-H "Content-Type: application/json" \
-d '{
"title": "My API Post",
"content_markdown": "## Hello\nPublished via BlogHunch v1 API.",
"status": "draft",
"tags": ["engineering"]
}'Update, trash, restore, delete & versions
- Update post (
PATCH /v1/posts/{id}— requiresposts:write): Supports partial updates and optimistic concurrency viaexpected_revision(returns409 REVISION_CONFLICTif stale). - Trash / Restore (
POST /v1/posts/{id}/trash,POST /v1/posts/{id}/restore— requiresposts:write). - Delete permanently (
DELETE /v1/posts/{id}— requiresposts:delete). - List versions & restore (
GET /v1/posts/{id}/versions,POST /v1/posts/{id}/versions/{versionId}/restore).