Skip to main content

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​

ParameterTypeRequiredDescription
parentCommentIdintegerYesThe parent comment ID to fetch replies for
itemsPerPageintegerNoNumber of replies per page. Default: 25
currentPageintegerNoPage 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​

FieldTypeDescription
parentCommentIdintegerThe ID of the parent comment this reply belongs to
reactionsarrayArray of { emoji, count } — aggregated reaction counts
myReactionsstring[]Emoji identifiers the authenticated user has reacted with
messagePlainstringPlain 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&currentPage=1" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"