Body Parameters
ID of the entity to attach the comment to
Text content of the comment. Required unless
gif
is provided.List of mentioned users with
{ id: string, username: string }
formatID of the parent comment (for replies)
ID of a referenced (quoted) comment
Optional external reference ID
List of attached files or resources
Custom metadata for this comment
Allowed only for master clients. Posts the comment on behalf of a user.
Response
Unique comment identifier
ID of the entity this comment belongs to
ID of the user who created the comment
Comment content
List of mentioned users
GIF object if included
Attached files or resources
Custom metadata
Creation timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Error Responses
Missing Entity ID - 400 Bad Request
Missing Entity ID - 400 Bad Request
Missing Content - 400 Bad Request
Missing Content - 400 Bad Request
Missing User ID - 400 Bad Request
Missing User ID - 400 Bad Request
Entity Not Found - 404 Not Found
Entity Not Found - 404 Not Found
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
Notes
- Either
content
orgif
must be present. - If
userId
is provided, the request must come from a master client. - Reputation is awarded to the user who posts the comment.
- Notifications are triggered automatically:
- To the entity author
- To the parent comment author (for replies)
- To each mentioned user (excluding duplicates)
- API usage for comments is tracked via Redis.