List anchored document comments and replies

GET/v1/knowledge/{libraryId}/documents/{documentId}/comments

Requires knowledge read permission and access to the library. Comments belong to the document, independently of library versions. Results are ordered by creation time and id.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
libraryIdpathstringYesKnowledge library ID
documentIdpathstringYesStable Knowledge document ID
Query parameters
NameLocationTypeRequiredDescription
limitqueryintegerNo
offsetqueryintegerNo

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Comment pageapplication/json
FieldTypeRequiredDescription
objectlistYes
dataobject[]Yes
data[].idstringYesUnique identifier.
data[].libraryIdstringYes
data[].documentIdstringYesDocument ID.
data[].threadIdstringYesRoot comment id; equal to id on root comments.
data[].authorUserIdstringYes
data[].authorobjectYes
data[].author.idstringYesUnique identifier.
data[].author.namestringYesHuman-readable name.
data[].author.emailstringYes
data[].author.avatarUrlstringYes
data[].bodystringYes
data[].anchorobjectYes
data[].anchor.revisionIdstringYes
data[].anchor.startintegerYesUTF-16 offset into rendered text with one newline between text blocks.
data[].anchor.endintegerYesExclusive UTF-16 offset; end minus start equals quote length.
data[].anchor.quotestringYes
data[].anchor.prefixstringYes
data[].anchor.suffixstringYes
data[].mentionsobject[]Yes
data[].mentions[].kindhuman | agentYes
data[].mentions[].idstringYesUnique identifier.
data[].mentions[].labelstringYes
data[].createdAtstringYesISO 8601 timestamp.
has_morebooleanYes
limitintegerYes
offsetintegerYes
400Invalid pagination
None.
401Authentication required
None.
403Knowledge read permission required
None.
404Document or accessible library not found
None.
List anchored document comments and replies
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow