Login

Comments

Manage reader comments and moderation workflows programmatically.

List comments

GET/v1/comments

Lists comments across the publication with optional post_id and status (pending, approved, rejected) filters. Requires comments:read.

GETRequest
curl -G https://api.bloghunch.com/v1/comments \
  -H "Authorization: Bearer {token}" \
  -d status=pending

List comments for a post

GET/v1/posts/{postId}/comments

Retrieves threaded comments (with nested replies) for a specific post. Requires comments:read.

GETRequest
curl https://api.bloghunch.com/v1/posts/406856/comments \
  -H "Authorization: Bearer {token}"

Create & moderate comments

  • Create comment / reply: POST /v1/comments (comments:write) with { "post_id": 406856, "content": "...", "parent_id": 24 }
  • Update comment: PATCH /v1/comments/{id} (comments:write)
  • Approve comment: POST /v1/comments/{id}/approve (comments:moderate)
  • Reject comment: POST /v1/comments/{id}/reject (comments:moderate)
  • Delete comment: DELETE /v1/comments/{id} (comments:moderate)