Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Retrieve a single comment thread by ID.- Operation ID:
comments.get - API member path:
editor.doc.comments.get(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a CommentInfo object with the comment text, author, date, and thread metadata.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
commentId | string | yes |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
address | CommentAddress | yes | CommentAddress |
address.entityId | string | yes | |
address.entityType | "comment" | yes | Constant: "comment" |
address.kind | "entity" | yes | Constant: "entity" |
anchoredText | string | no | |
commentId | string | yes | |
createdTime | number | no | |
creatorEmail | string | no | |
creatorName | string | no | |
importedId | string | no | |
isInternal | boolean | no | |
parentCommentId | string | no | |
status | enum | yes | "open", "resolved" |
target | TextTarget | no | TextTarget |
target.kind | "text" | no | Constant: "text" |
target.segments | TextSegment[] | no | |
text | string | no |
Example response
Pre-apply throws
TARGET_NOT_FOUND
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

