TagMangoTagMango Docs
Community

List replies to a comment

GET
/api/v1/external/community/channels/{channelId}/posts/{postId}/comments/{commentId}/replies

List the replies to a top-level comment — same pagination and sorting as the dashboard. A commentId that is itself a reply, or that does not belong to this post, simply returns an empty list rather than an error.

actingUserId does not filter which replies come back — see its own description for what it does do: add that specific member's isLiked to every reply.

Fails with a 400 if the Community feature is not enabled for this creator.

External access policy

An API key and an authorized white-label host are required. Both tier and plan requirements are enforced.

These requirements apply to the white-label creator for backend-to-backend access. TagMango platform access is not supported.

  • Plans: Unrestricted.

  • Tiers: Unrestricted.

AuthorizationBearer <token>

In: header

Path Parameters

channelId*string

Id of the community channel the post belongs to

postId*string

Id of the post the comment belongs to

commentId*string

Id of the comment

Query Parameters

limit?number

Number of comments per page. Each comment triggers a like-check (and, when actingUserId is given, a moderator lookup), so this is capped well below the generic default.

Range1 <= value <= 100
page?integer

One-based page number. Values below 1 return 400 with "Page number must be greater than or equal to 1".

Range1 <= value
actingUserId?string

Id of a specific community member (fan). Gates nothing by itself — comments on a post you can already see are always listable — but when given, each comment's isLiked reflects that specific member's own like state. Omit it and isLiked is left off every comment entirely, rather than defaulting to false.

commentedBy?array<array<>>

User ids to only include comments from.

excludeComments?array<array<>>

Specific comment ids to leave out of the results.

sortBy?string

How to sort the results by creation time.

Default"latest"
Value in"latest" | "oldest"

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api-prod-new.tagmango.com/api/v1/external/community/channels/61e97c146cf2b4d8c68f3a40/posts/61e97c146cf2b4d8c68f3a4a/comments/61e97c146cf2b4d8c68f3a70/replies" \  -H "x-whitelabel-host: string"
{
  "replies": [
    {
      "_id": "string",
      "creator": "string",
      "channel": "string",
      "post": "string",
      "mentions": [
        "string"
      ],
      "repliedComment": "string",
      "comment": "string",
      "images": [
        "string"
      ],
      "totalLikes": 0,
      "totalReplies": 0,
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "isEdited": false,
      "commentedBy": {
        "name": "John Doe",
        "profilePicUrl": "https://linktoprofilepic.com/pic.jpg",
        "_id": "string",
        "isModerator": true
      },
      "isLiked": true
    }
  ],
  "totalReplies": 0
}
{
  "code": 400,
  "type": "Bad Request",
  "statusMessage": "BAD_REQUEST",
  "success": false,
  "message": "Invalid request",
  "result": "Invalid request"
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "result": "Invalid token",
  "success": false
}
{
  "code": 403,
  "type": "Forbidden",
  "statusMessage": "FORBIDDEN",
  "errorCode": "WORKSHOP_MANGO_FORBIDDEN",
  "message": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "result": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "success": false
}
{
  "code": 429,
  "type": "Too Many Requests",
  "statusMessage": "TOO_MANY_REQUESTS",
  "message": "Request limit exceeded. try after 10 seconds",
  "result": "Request limit exceeded. try after 10 seconds",
  "success": false
}