User-related API environment
Pre-live user-related API docs
Create a new comment
Add a comment to a post or reply to an existing comment. Supports mentions and notifies the post author.
Request Body required
Comment with postId and optional parentId
- Array [
- ]
comment object
Possible values: <= 8000 characters
Comment body text
ID of the post this comment belongs to
Default value: false
Whether the comment is private
ID of the parent comment (for replies)
mentions object[]
User mentions in the comment
Possible values: Value must match regular expression /{{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}}}/
- 201
- 400
- 401
- 404
Comment created
Schema
- Array [
- ]
- Array [
- ]
comment object required
Default value: false
Default value: 0
Default value: 0
Default value: false
Default value: false
Default value: false
author object
avatarUrls object required
Default value: false
mentions object[]
avatarUrls object required
Default value: false
tags object[]
{
"comment": {
"id": 0,
"postId": 0,
"authorId": "string",
"parentId": 0,
"isPrivate": false,
"body": "string",
"createdAt": "2026-03-29T20:06:48.417Z",
"updatedAt": "2026-03-29T20:06:48.417Z",
"toxicityScore": 0,
"repliesCount": 0,
"likesCount": 0,
"reported": false,
"removed": false,
"hidden": false,
"languageId": 0,
"languageName": "string",
"moderationStatus": 0,
"author": {
"postsCount": 0,
"avatarUrls": {
"small": "string",
"medium": "string",
"large": "string"
},
"id": "string",
"username": "string",
"verified": false,
"firstName": "string",
"lastName": "string",
"memberType": 0
},
"mentions": [
{
"postsCount": 0,
"avatarUrls": {
"small": "string",
"medium": "string",
"large": "string"
},
"id": "string",
"username": "string",
"verified": false,
"firstName": "string",
"lastName": "string",
"memberType": 0,
"locations": {},
"followersCount": 0,
"displayName": "string"
}
],
"tags": [
{
"language": "string",
"id": 0,
"name": "string",
"commentsCount": 0
}
]
},
"success": true
}
Invalid comment - empty body or invalid postId
User not authenticated
Post or parent comment not found