Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Return document summary info including word, character, paragraph, heading, table, image, comment, tracked-change, SDT-field, and list counts, plus outline and capabilities.- Operation ID:
info - API member path:
editor.doc.info(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a DocumentInfo object with counts (words, characters, paragraphs, headings, tables, images, comments, trackedChanges, sdtFields, lists), document outline, capability flags, and revision.Input fields
No fields.Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
capabilities | object | yes | |
capabilities.canComment | boolean | yes | |
capabilities.canFind | boolean | yes | |
capabilities.canGetNode | boolean | yes | |
capabilities.canReplace | boolean | yes | |
counts | object | yes | |
counts.characters | integer | yes | |
counts.comments | integer | yes | |
counts.headings | integer | yes | |
counts.images | integer | yes | |
counts.lists | integer | yes | |
counts.paragraphs | integer | yes | |
counts.sdtFields | integer | yes | |
counts.tables | integer | yes | |
counts.trackedChanges | integer | yes | |
counts.words | integer | yes | |
outline | object[] | yes | |
revision | string | yes |
Example response
Pre-apply throws
- None
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

