Skip to main content
GET
/
comments
/
replies
/
{commentId}
Get comment replies
curl --request GET \
  --url https://store.salesive.com/api/v1/comments/replies/{commentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'

Request

GET /comments/replies/678bd3a2e37452d19efcb4e4?page=1&limit=5
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}

Headers

HeaderTypeDescription
AuthorizationstringProvide the customer token as Bearer <jwt>.
x-shop-idstringIdentify the shop.

Path parameters

ParameterTypeRequiredDescription
commentIdstringYesParent comment identifier.

Query parameters

ParameterTypeDescription
pageintegerPage number (default: 1).
limitintegerReplies per page (default: 5).

Successful response

{
    "status": 200,
    "success": true,
    "message": "Replies retrieved successfully",
    "data": {
        "replies": [
            {
                "_id": "678bd4b2e37452d19efcb4e5",
                "parent": "678bd3a2e37452d19efcb4e4",
                "user": {
                    "_id": "68f976e92bb0b821425fdda7",
                    "name": "Jane Doe"
                },
                "content": "Yes, I saw a blue version in the description!",
                "likes": 2,
                "dislikes": 0,
                "createdAt": "2025-01-18T12:05:00.000Z"
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 5,
            "total": 3,
            "pages": 1
        }
    }
}

Error response

{
    "status": 404,
    "success": false,
    "message": "Comment not found",
    "data": {}
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Path Parameters

commentId
string
required

Comment identifier

Query Parameters

page
integer
default:1
limit
integer
default:5

Response

200

Replies retrieved successfully