curl --location --request POST 'https://api.yourapp.com/v1/public/topic-comments.list' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ "id": "topic-uuid-123", "sort": "createdAt", "direction": "DESC" }'
{ "data": [ { "id": "comment-uuid-1", "text": "Great feature idea!", "topicId": "topic-uuid-123", "creatorId": "sub-uuid-1", "parentId": null, "source": "widget", "createdAt": "2024-01-17T16:30:00Z", "subscriber": { "id": "sub-uuid-1", "name": "John Doe", "email": "john@example.com" }, "replies": [ { "id": "comment-uuid-2", "text": "I agree!", "parentId": "comment-uuid-1", "createdAt": "2024-01-17T17:00:00Z", "subscriber": { "id": "sub-uuid-2", "name": "Jane Smith", "email": "jane@example.com" } } ] } ], "pagination": { "offset": 0, "limit": 50 } }
Get all comments on a topic with nested replies. Supports sorting and pagination.
Authorization: Bearer YOUR_API_KEY
Show Comment Object
Was this page helpful?