comments.get
Retrieve a single comment thread by ID.
doc.comments.get(…)Expected result
Returns a CommentInfo object with the comment text, author, date, and thread metadata.
Inputs
commentIdstringrequiredResult
Output fields
addressCommentAddressrequiredFields
kind"entity"requiredentityType"comment"requiredentityIdstringrequiredcommentIdstringrequiredexternalIdstringCaller-owned durable integration id, distinct from the Word-compatible commentId.
metadataobjectCaller-owned JSON metadata persisted with the comment.
importedIdstringrawOoxmlIdstringDurable raw OOXML source identity: the comment's w:id exactly as it appears in comments.xml. Surfaced for every catalog-backed comment, even when commentId already equals it on a clean import. Omitted for synthetic comments that never had a comments.xml carrier.
rawOoxmlOccurrenceIndexnumberZero-based source occurrence among comments that share the same rawOoxmlId in comments.xml. Present only for duplicate raw OOXML ids.
parentCommentIdstringtrackedChangeParentIdstringSuperDoc logical tracked-change id when the comment anchor sits wholly inside exactly one active tracked change. Derived on read from the comment anchor index plus the tracked-change catalog.
trackedChangeThreadParentIdstringSuperDoc logical tracked-change id whose review conversation this comment explicitly belongs to. Persisted provenance; never inferred from anchor overlap.
trackedChangeSide"inserted" | "deleted" | "source" | "destination"Which side of the surrounding tracked change the comment anchor sits on. Pairs with `trackedChangeParentId`.
textstringisInternalbooleanstatus"open" | "resolved"requiredtargetTextTargetFields
kind"text"requiredsegmentsTextSegment[]requiredstoryStoryLocatorStory scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.
body
kind"story"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequiredanchoredTextstringcreatedTimenumbercreatorNamestringcreatorIdstringcreatorEmailstringcreatorImagestringtrackedChangebooleantrackedChangeType"insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format"trackedChangeDisplayTypestring | nulltrackedChangeStoryStoryLocator | nullbody / headerFooterSlot / headerFooterPart / footnote / endnote / textbox
body
kind"story"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequiredVariant 2
No fields.
trackedChangeAnchorKeystring | nulltrackedChangeTextstring | nullinsertedTextstring | nulldeletedTextstring | nulltrackedChangeLinkCommentTrackedChangeLink | nulltrackedChange
trackedChangetruerequiredtrackedChangeIdstringrequiredtrackedChangeType"insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format"requiredside"inserted" | "deleted" | "source" | "destination"trackedChangeTextstringinsertedTextstringdeletedTextstringVariant 2
No fields.
Failures
Pre-apply throws
TARGET_NOT_FOUND
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas