News & Contents

Topic Replies

GEThttps://openapi.longbridge.com/v1/content/topics/{topic_id}/comments

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

Get a paginated list of replies for a specific topic. Browse the discussion on Topics.

Each reply includes author info, body (plain text), engagement counts, and a reply_to_id field: "0" indicates a top-level reply; any other value identifies the parent reply for nested replies.

>_ CLI
longbridge topic replies 6993508780031016960
longbridge topic replies 6993508780031016960 --page 2 --size 20

Request

Path parameters

NameTypeRequiredDescription
topic_idstringRequiredTopic ID (e.g. `6993508780031016960`)

Query parameters

NameTypeRequiredDescription
pageintegerOptionalPage number (1-based). Defaults to `1`.
sizeintegerOptionalItems per page, range 1–50. Defaults to `20`.

Response

Response properties

NameTypeRequiredDescription
itemsobject[]RequiredList of replies
└ idstringRequiredReply ID
└ topic_idstringRequiredParent topic ID
└ bodystringOptionalReply body (plain text)
└ reply_to_idstringOptionalParent reply ID; `"0"` = top-level reply
└ authorobjectOptionalAuthor info
└ imagesobject[]OptionalAttached images
└ likes_countint32OptionalLikes count
└ comments_countint32OptionalNested replies count
└ created_atstringRequiredCreation time as Unix timestamp (seconds)

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "items": [
      {
        "id": "7001234567890123456",
        "topic_id": "6993508780031016960",
        "body": "Great analysis!",
        "reply_to_id": "0",
        "author": {
          "member_id": "10087",
          "name": "John Smith",
          "avatar": "https://example.com/avatar2.jpg"
        },
        "images": [],
        "likes_count": 5,
        "comments_count": 2,
        "created_at": "1742001500"
      },
      {
        "id": "7001234567890123457",
        "topic_id": "6993508780031016960",
        "body": "I disagree on the valuation part.",
        "reply_to_id": "7001234567890123456",
        "author": {
          "member_id": "10088",
          "name": "Alice Lee",
          "avatar": "https://example.com/avatar3.jpg"
        },
        "images": [],
        "likes_count": 1,
        "comments_count": 0,
        "created_at": "1742001800"
      }
    ]
  }
}

Error code

See the Error Codes page for the full list of error codes.