I made a GET call to https://api.getguru.com/api/v1/cards/{cardId}/comments, but when I look through the returned data, it only goes one reply deep AND it only shows the most recent reply in a comment thread, even though there might be 3 replies total.
Am I doing something wrong? Is there a different API call I need to make to get all replies?
Best answer by Joe Duffy
Hey @Craig Lloyd 👋
Apologies for the confusion here. There is a separate endpoint that you need to call to get all replies to a particular comment. Here it is:
Thank you, @Joe Duffy! Is there a way to get the replies from multiple comments in one call? Or do you have to make separate API calls for each comment?
@Craig Lloyd Glad this helps! You’ll have to loop through the comment ID’s that come back through the /api/v1/cards/{cardId}/comments endpoint and pass the comment ID to the /api/v1/cards/{cardId}/comments/{commentId}/replies endpoint.
Closing the loop here for the sake of visibility - Craig and I chatted privately and resolved this issue. Users will need to pass the long ID’s for both the card and the comment in their call to the endpoint below: