API Reference
Posts API
Endpoint reference for listing posts and fetching post details
List posts
GET /postsQuery parameters
| Parameter | Type | Description |
|---|---|---|
limit | number | Max posts to return |
offset | number | Items to skip |
category | string | Filter by category slug |
tags | string | Comma-separated tag slugs |
author | string | Filter by author id |
Example
curl "https://api.hivecms.online/api/public/v1/{API_KEY}/posts?limit=5&tags=guides,updates"Get one post
GET /posts/{postSlug}Example
curl "https://api.hivecms.online/api/public/v1/{API_KEY}/posts/welcome-to-hive"Response notes
- List response includes pagination metadata (
total,offset,limit). - Detail response includes
htmlContent.
Errors
401invalid API key404post not found500server/internal error