Organize and filter publication content with tags.
List tags
GEThttps://api.bloghunch.com/v1/tags
Retrieves a paginated list of tags for the publication. Requires tags:read.
GETRequest
curl -G https://api.bloghunch.com/v1/tags \
-H "Authorization: Bearer {token}" \
-d limit=20{
"data": [
{
"id": 61,
"publication_id": 3696,
"name": "Engineering",
"slug": "engineering",
"description": "Architecture & infrastructure deep dives",
"accent_color": "#6366f1",
"featured": true
}
],
"meta": {
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"has_more": false
}
}Create a tag
POSThttps://api.bloghunch.com/v1/tags
Creates a new tag on the publication. Requires tags:write.
POSTRequest
curl -X POST https://api.bloghunch.com/v1/tags \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"name": "Product Updates",
"description": "Monthly release notes"
}'Other tag endpoints
- Get tag:
GET /v1/tags/{idOrSlug}(tags:read) - Get posts for tag:
GET /v1/tags/{idOrSlug}/posts(tags:read) - Update tag:
PATCH /v1/tags/{id}(tags:write) - Delete tag:
DELETE /v1/tags/{id}(tags:write)