Topics, posts, and comments
Topics
Topics organise discussion within a community. They are available in all community types, but are central to topic-based communities where every cohort also maps to a topic.
Listing topics
GET /v1/communities/{communityId}/topics
| Query parameter | Description |
|---|---|
status | Filter by active or archived. |
q | Substring match on topic name. |
limit | Page size. |
offset | Zero-based offset. |
Getting a topic
GET /v1/communities/{communityId}/topics/{topicId}
Returns the topic with its current postCount.
Topic object
| Field | Type | Description |
|---|---|---|
id | long | Unique identifier. |
name | string | Display name. |
description | string | Free-text description. |
status | string | active or archived. |
postCount | int | Number of posts in this topic. |
createdAt | datetime | Creation timestamp. |
updatedAt | datetime | Last-update timestamp. |
Creating a topic
POST /v1/communities/{communityId}/topics
{
"name": "Announcements",
"description": "Official updates from the community admins."
}
| Field | Required | Notes |
|---|---|---|
name | Yes | Display name of the topic. |
description | No | Optional free-text description. |
The new topic is created with status: active. Returns the topic object.
Updating a topic
PATCH /v1/communities/{communityId}/topics/{topicId}
Partial update — only the fields you send change.
{
"name": "Announcements & News",
"description": "Updated description."
}
Both name and description are optional; omitting a field leaves it unchanged. Returns the updated topic object.
Deleting a topic
DELETE /v1/communities/{communityId}/topics/{topicId}
Permanently removes the topic and its associated posts. Returns { "message": "..." } on success.
Posts
Listing posts
GET /v1/communities/{communityId}/posts
| Query parameter | Type | Description |
|---|---|---|
topicId | string | Filter to posts in a specific topic. |
authorId | string | Filter to posts by a specific author. |
status | string | Filter by post status. |
isPinned | boolean | Filter pinned (true) or unpinned (false) posts. |
isFeatured | boolean | Filter featured (true) or non-featured (false) posts. |
q | string | Substring match on post content. |
limit | int | Page size. |
offset | int | Zero-based offset. |
Getting a post
GET /v1/communities/{communityId}/posts/{postId}
Returns the post with its commentCount and reactionCount.
Post object
| Field | Type | Description |
|---|---|---|
id | long | Unique identifier. |
title | string | Post title. |
body | string | Body text (may duplicate content). |
content | string | Main content of the post. |
type | string | Post type (currently always text). |
status | string | Current status of the post. |
topicId | long? | The topic this post belongs to, if any. |
authorId | long | User ID of the author. |
isPinned | boolean | Whether the post is pinned. |
isFeatured | boolean | Whether the post is featured. |
commentCount | int | Number of comments on this post. |
reactionCount | int | Number of reactions on this post. |
createdAt | datetime | Creation timestamp. |
updatedAt | datetime | Last-update timestamp. |
Creating a post
POST /v1/communities/{communityId}/posts
Only text posts are supported.
{
"content": "Welcome to the community! Please read the pinned post.",
"topicId": "123"
}
| Field | Required | Notes |
|---|---|---|
content | Yes | Text content of the post. |
topicId | No | Associates the post with a topic. |
Returns the created post object.
Updating a post
PATCH /v1/communities/{communityId}/posts/{postId}
Partial update — only the fields you send change.
{
"content": "Updated post content.",
"topicId": "456"
}
Returns the updated post object.
Deleting a post
DELETE /v1/communities/{communityId}/posts/{postId}
Soft-deletes the post. Returns { "message": "..." } on success.
Comments
Listing comments on a post
GET /v1/communities/{communityId}/posts/{postId}/comments
| Query parameter | Description |
|---|---|
limit | Page size. |
offset | Zero-based offset. |
Comment object
| Field | Type | Description |
|---|---|---|
id | long | Unique identifier. |
content | string | Comment text. |
postId | long | The post this comment belongs to. |
authorId | long | User ID of the author. |
createdAt | datetime | Creation timestamp. |
updatedAt | datetime | Last-update timestamp. |
Deleting a comment (moderation)
DELETE /v1/communities/{communityId}/posts/{postId}/comments/{commentId}
Removes a comment for moderation purposes. Returns { "message": "..." } on success.