# Top-level commentcurl -X POST ".../feeds/123/comments" -d '{ "message": "What do you think about this?"}'# Reply to commentcurl -X POST ".../feeds/123/comments" -d '{ "message": "I think it is great!", "parent_id": 45}'
# User posts a questioncurl -X POST ".../feeds/123/comments" -d '{ "message": "How do I get started with the API?"}'# Others replycurl -X POST ".../feeds/123/comments" -d '{ "message": "Check out the authentication guide first!", "parent_id": 45}'
Documentation in progress - some sections may be incomplete or subject to change.
Comments
The Comments API allows users to add comments and replies to feeds, creating threaded discussions in your community.
Comment Object
A comment represents a user's response to a feed or another comment.
Properties
iduser_idpost_idparent_idmessagemessage_renderedtypecontent_typestatusreactions_countis_stickymetacreated_atupdated_atStatus Values
published- Live and visiblepending- Awaiting moderationspam- Marked as spamContent Types
text- Plain text contentmarkdown- Markdown formatted contenthtml- HTML formatted contentdocument- Document library contentsurvey- Poll or survey contentvideo- Video contentaudio- Audio contentList Comments for a Feed
Retrieve all comments for a specific feed.
HTTP Request
Parameters
feed_idpageper_pageparent_idorderbyorderExample Request
Example Response
Get a Specific Comment
Retrieve details for a single comment.
HTTP Request
Parameters
idExample Request
Example Response
Create a Comment
Add a new comment to a feed.
HTTP Request
Parameters
feed_idmessagecontent_typeparent_idExample Request
Example Response
Create a Reply
Reply to an existing comment.
HTTP Request
Parameters
Include
parent_idto create a nested reply.Example Request
Example Response
Update a Comment
Modify an existing comment.
HTTP Request
Parameters
messagecontent_typeExample Request
Example Response
Delete a Comment
Remove a comment permanently.
HTTP Request
Example Request
Example Response
Note: Deleting a parent comment will also delete all its replies.
Best Practices
1. Threaded Discussions
Use
parent_idto create nested conversations:2. Content Formatting
Choose appropriate content types:
3. Pagination
Load comments in batches for better performance:
4. Real-time Updates
Poll for new comments on active discussions:
Common Use Cases
Discussion Threads
Create engaging threaded discussions:
Comment Moderation
Moderate comments before publishing:
User Mentions
Mention users in comments:
Comment Analytics
Track engagement through comments:
Error Handling
Comment Not Found (404)
Invalid Content (400)
Unauthorized (403)
Parent Comment Not Found (404)
Feed Locked (403)
Related Endpoints