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 parameterDescription
statusFilter by active or archived.
qSubstring match on topic name.
limitPage size.
offsetZero-based offset.

Getting a topic

GET /v1/communities/{communityId}/topics/{topicId}

Returns the topic with its current postCount.

Topic object

FieldTypeDescription
idlongUnique identifier.
namestringDisplay name.
descriptionstringFree-text description.
statusstringactive or archived.
postCountintNumber of posts in this topic.
createdAtdatetimeCreation timestamp.
updatedAtdatetimeLast-update timestamp.

Creating a topic

POST /v1/communities/{communityId}/topics

{
  "name": "Announcements",
  "description": "Official updates from the community admins."
}
FieldRequiredNotes
nameYesDisplay name of the topic.
descriptionNoOptional 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 parameterTypeDescription
topicIdstringFilter to posts in a specific topic.
authorIdstringFilter to posts by a specific author.
statusstringFilter by post status.
isPinnedbooleanFilter pinned (true) or unpinned (false) posts.
isFeaturedbooleanFilter featured (true) or non-featured (false) posts.
qstringSubstring match on post content.
limitintPage size.
offsetintZero-based offset.

Getting a post

GET /v1/communities/{communityId}/posts/{postId}

Returns the post with its commentCount and reactionCount.

Post object

FieldTypeDescription
idlongUnique identifier.
titlestringPost title.
bodystringBody text (may duplicate content).
contentstringMain content of the post.
typestringPost type (currently always text).
statusstringCurrent status of the post.
topicIdlong?The topic this post belongs to, if any.
authorIdlongUser ID of the author.
isPinnedbooleanWhether the post is pinned.
isFeaturedbooleanWhether the post is featured.
commentCountintNumber of comments on this post.
reactionCountintNumber of reactions on this post.
createdAtdatetimeCreation timestamp.
updatedAtdatetimeLast-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"
}
FieldRequiredNotes
contentYesText content of the post.
topicIdNoAssociates 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 parameterDescription
limitPage size.
offsetZero-based offset.

Comment object

FieldTypeDescription
idlongUnique identifier.
contentstringComment text.
postIdlongThe post this comment belongs to.
authorIdlongUser ID of the author.
createdAtdatetimeCreation timestamp.
updatedAtdatetimeLast-update timestamp.

Deleting a comment (moderation)

DELETE /v1/communities/{communityId}/posts/{postId}/comments/{commentId}

Removes a comment for moderation purposes. Returns { "message": "..." } on success.