List Replies
Retrieve paginated replies (threaded responses) to a specific comment. Each reply includes inline reaction data.
Endpoint
GET /api/replies
Authentication
Optional. When authenticated, each reply includes myReactions showing the caller's own emoji reactions.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
parentCommentId | integer | Yes | The parent comment ID to fetch replies for |
itemsPerPage | integer | No | Number of replies per page. Default: 25 |
currentPage | integer | No | Page number (1-based). Default: 1 |
Response
Success Response
Status Code: 200 OK
{
"items": [
{
"id": 1720,
"message": "<p>Thanks for sharing!</p>",
"messagePlain": "Thanks for sharing!",
"displayName": "Jane Smith",
"deleted": false,
"isEdited": false,
"editedAt": null,
"createdAt": "2024-08-10T14:22:33.000Z",
"UserId": 6605,
"parentCommentId": 1693,
"reactions": [
{ "emoji": "heart", "count": 1 }
],
"myReactions": [],
"User": {
"id": 6605,
"name": "Jane Smith",
"photoUrl": "1639672045123.png",
"banned": false
}
}
],
"totalItems": 3,
"currentPage": 1,
"itemsPerPage": 25,
"totalPages": 1
}
Key Response Fields
| Field | Type | Description |
|---|---|---|
parentCommentId | integer | The ID of the parent comment this reply belongs to |
reactions | array | Array of { emoji, count } — aggregated reaction counts |
myReactions | string[] | Emoji identifiers the authenticated user has reacted with |
messagePlain | string | Plain text version of the reply body |
Notes
- Replies are flat — there is no nested threading beyond one level (comment → replies).
- Deleted replies are included with
deleted: true.
Example
curl -X GET "https://api.tribesocial.io/api/replies?parentCommentId=1693&itemsPerPage=10¤tPage=1" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"