trackChanges.get
Retrieve a single tracked change by SuperDoc logical id.
doc.trackChanges.get(…)Expected result
Returns a TrackChangeInfo object with the logical id, semantic type/subtype, state, target, before/after snapshots, author/initials/email, date, revisionGroupId, splitFromId, replacement or move side metadata when applicable, story locator, excerpt, optional overlap metadata, and source provenance via `sourceIds` / `wordRevisionIds`. Structural whole-table changes surface subtypes such as `table-insert` and `table-delete`.
Inputs
idstringrequired1 additional input field
storyStoryLocatorStory 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"requiredsectionSectionAddressrequiredFields
kind"section"requiredsectionIdstringrequiredheaderFooterKind"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"requiredtextboxIdstringrequiredResult
Output fields
addressTrackedChangeAddressrequiredFields
kind"entity"requiredentityType"trackedChange"requiredentityIdstringrequiredstoryStoryLocatorStory 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"requiredtextboxIdstringrequiredidstringrequiredtype"insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format"requiredsubtypestringstate"open" | "accepted" | "rejected"targetobject | object | objectVariant 1
kind"text"requiredaddressTrackedChangeAddressrequiredFields
kind"entity"requiredentityType"trackedChange"requiredentityIdstringrequiredstoryStoryLocatorStory 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"requiredtextboxIdstringrequiredVariant 2
kind"replacement"requiredaddressTrackedChangeAddressrequiredFields
kind"entity"requiredentityType"trackedChange"requiredentityIdstringrequiredstoryStoryLocatorStory 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"requiredtextboxIdstringrequiredVariant 3
kind"formatting"requiredaddressTrackedChangeAddressrequiredFields
kind"entity"requiredentityType"trackedChange"requiredentityIdstringrequiredstoryStoryLocatorStory 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"requiredtextboxIdstringrequiredsubtype"run" | "paragraph" | "list" | "table" | "row" | "cell" | "section"requiredbeforeobjectFields
textstringVisible text snapshot when the affected revision is text-shaped.
formattingobjectFields
xmlstringRaw OOXML for the property block on this side.
propertiesobjectSubtype-aware semantic property map for formatting revisions.
afterobjectFields
textstringVisible text snapshot when the affected revision is text-shaped.
formattingobjectFields
xmlstringRaw OOXML for the property block on this side.
propertiesobjectSubtype-aware semantic property map for formatting revisions.
sourceIdsobjectCanonical multi-side source provenance. Provenance metadata only; never the canonical SuperDoc tracked-change id.
Fields
wordIdInsertstringWord `w:id` value from the insertion side of this logical change.
wordIdDeletestringWord `w:id` value from the deletion side of this logical change.
wordIdOtherstring[]Word `w:id` values from other wrappers (for example moveFrom/moveTo).
rsidsstring[]Word revision-save ids (`w:rsidR` / `w:rsidDel`) seen on contributing wrappers.
wordRevisionIdsobjectRaw imported Word OOXML revision IDs (`w:id`) from the source document when available. This is provenance metadata, not the canonical SuperDoc tracked-change ID. Replacements may include both `insert` and `delete` IDs.
Fields
insertstringRaw imported Word OOXML revision ID (`w:id`) from a `<w:ins>` element when this logical change includes an insertion.
deletestringRaw imported Word OOXML revision ID (`w:id`) from a `<w:del>` element when this logical change includes a deletion.
formatstringRaw imported Word OOXML revision ID (`w:id`) from a `<w:rPrChange>` element when this logical change includes a formatting revision.
revisionGroupIdstringsplitFromIdstring | nullVariant 1
No fields.
Variant 2
No fields.
replacementobjectFields
insertedobject | nullrequiredid
idstringrequiredStable SuperDoc-internal side id.
excerptstringrequiredVisible text excerpt on this side.
wordIdstringRaw Word `w:id` for this side, when known.
Variant 2
No fields.
deletedobject | nullrequiredid
idstringrequiredStable SuperDoc-internal side id.
excerptstringrequiredVisible text excerpt on this side.
wordIdstringRaw Word `w:id` for this side, when known.
Variant 2
No fields.
authorstringauthorEmailstringauthorImagestringinitialsstringdatestringstoryLocatorStoryLocatorStory 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"requiredsectionSectionAddressrequiredFields
kind"section"requiredsectionIdstringrequiredheaderFooterKind"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"requiredtextboxIdstringrequiredsourcePlatform"word" | "google-docs" | "superdoc" | "unknown"grouping"standalone" | "replacement-pair" | "unknown"pairedWithChangeIdstring | nullVariant 1
No fields.
Variant 2
No fields.
insertedTextstring | nullVariant 1
No fields.
Variant 2
No fields.
deletedTextstring | nullVariant 1
No fields.
Variant 2
No fields.
formattingDeltaSummarystring | nullHuman-readable formatting delta summary for formatting changes; null otherwise.
Variant 1
No fields.
Variant 2
No fields.
listDeltasobject[]Structured per-member list semantic deltas for tracked list formatting changes (spec TC-LIST-003/004); absent for non-list changes.
listDeltaSummaryobjectFields
uniformKind"list-add" | "list-remove" | "list-level" | "list-style" | "list-restart" | "indent" | "other-format" | nullrequiredThe single delta kind shared by every member, or null for mixed groups.
Variant 1
No fields.
Variant 2
No fields.
countsobjectrequiredNon-zero member counts per delta kind.
Fields
list-addnumberlist-removenumberlist-levelnumberlist-stylenumberlist-restartnumberindentnumberother-formatnumbertargetIsListItembooleanFor paragraph-mark structural changes: whether the target paragraph is a direct-numbered list item.
listActionKind"merge-items"Stable presentation fact on the merge-owner deletion change (spec TC-LIST-005).
origin"word" | "google-docs" | "superdoc" | "unknown"importedbooleancanonicalizationKind"single-word-revision" | "paired-word-revision" | "generated-runtime-id" | "unknown"addressKind"entity" | "story-entity" | "unknown"resolvableByIdbooleanexcerptstringoverlapobjectFields
visualLayersobject[]Ordered overlap layers, with the parent surface first and child layers after it.
preferredContextTargetIdstringPreferred child tracked-change id for context-menu/comment targeting.
preferredContextTargetobjectFields
idstringrequiredSuperDoc logical tracked-change id for this overlap layer.
type"insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format"requiredCanonical broad tracked-change type for this layer.
relationship"parent" | "child" | "standalone"requiredrelationship"parent" | "child" | "standalone"parentIdstringParent logical tracked-change id when this change is an overlap child.
customAttributesobject[]Unknown extension attributes in document order; exact duplicates are removed and conflicting values are retained.
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