GET
/
comments
/
replies
/
{comment_id}
Get comment replies
curl --request GET \
  --url https://localhost:5000/comments/replies/{comment_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Replies retrieved",
  "data": {
    "replies": [
      {
        "text": "<string>",
        "author": "<string>",
        "post": "<string>",
        "_id": "<string>",
        "parentComment": "<string>",
        "replyTo": "<string>",
        "likes": [
          "<string>"
        ],
        "repliesCount": 0,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "pagination": {
      "hasMore": true,
      "nextCursor": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

comment_id
string
required

Parent comment ID

Query Parameters

limit
integer
default:10

Number of replies to return

lastCreatedAt
string<date-time>

Cursor for pagination (createdAt of last reply)

Response

Comment replies

success
boolean
Example:

true

message
string
Example:

"Replies retrieved"

data
object