Skip to main content
Document API is in alpha and subject to breaking changes while the contract continues to evolve. See the full operation reference for detailed input/output schemas.

Available operations

Use the tables below to see what operations are available and where each one is documented.
NamespaceCanonical opsAliasesTotal surfaceReference
Blocks101Reference
Capabilities101Reference
Comments505Reference
Core10010Reference
Create606Reference
Format44145Reference
History303Reference
Images13013Reference
Lists17017Reference
Mutations202Reference
Paragraph Formatting17017Reference
Paragraph Styles202Reference
Query101Reference
Sections18018Reference
Styles101Reference
Table of Contents10010Reference
Tables42042Reference
Track Changes303Reference
Editor methodOperation
editor.doc.blocks.delete(…)blocks.delete
editor.doc.capabilities()capabilities.get
editor.doc.comments.create(…)comments.create
editor.doc.comments.patch(…)comments.patch
editor.doc.comments.delete(…)comments.delete
editor.doc.comments.get(…)comments.get
editor.doc.comments.list(…)comments.list
editor.doc.find(…)find
editor.doc.getNode(…)getNode
editor.doc.getNodeById(…)getNodeById
editor.doc.getText(…)getText
editor.doc.getMarkdown(…)getMarkdown
editor.doc.getHtml(…)getHtml
editor.doc.info(…)info
editor.doc.insert(…)insert
editor.doc.replace(…)replace
editor.doc.delete(…)delete
editor.doc.create.paragraph(…)create.paragraph
editor.doc.create.heading(…)create.heading
editor.doc.create.sectionBreak(…)create.sectionBreak
editor.doc.create.table(…)create.table
editor.doc.create.tableOfContents(…)create.tableOfContents
editor.doc.create.image(…)create.image
editor.doc.format.apply(…)format.apply
editor.doc.format.bold(…)format.bold
editor.doc.format.italic(…)format.italic
editor.doc.format.strike(…)format.strike
editor.doc.format.underline(…)format.underline
editor.doc.format.highlight(…)format.highlight
editor.doc.format.color(…)format.color
editor.doc.format.fontSize(…)format.fontSize
editor.doc.format.fontFamily(…)format.fontFamily
editor.doc.format.letterSpacing(…)format.letterSpacing
editor.doc.format.vertAlign(…)format.vertAlign
editor.doc.format.position(…)format.position
editor.doc.format.dstrike(…)format.dstrike
editor.doc.format.smallCaps(…)format.smallCaps
editor.doc.format.caps(…)format.caps
editor.doc.format.shading(…)format.shading
editor.doc.format.border(…)format.border
editor.doc.format.outline(…)format.outline
editor.doc.format.shadow(…)format.shadow
editor.doc.format.emboss(…)format.emboss
editor.doc.format.imprint(…)format.imprint
editor.doc.format.charScale(…)format.charScale
editor.doc.format.kerning(…)format.kerning
editor.doc.format.vanish(…)format.vanish
editor.doc.format.webHidden(…)format.webHidden
editor.doc.format.specVanish(…)format.specVanish
editor.doc.format.rtl(…)format.rtl
editor.doc.format.cs(…)format.cs
editor.doc.format.bCs(…)format.bCs
editor.doc.format.iCs(…)format.iCs
editor.doc.format.eastAsianLayout(…)format.eastAsianLayout
editor.doc.format.em(…)format.em
editor.doc.format.fitText(…)format.fitText
editor.doc.format.snapToGrid(…)format.snapToGrid
editor.doc.format.lang(…)format.lang
editor.doc.format.oMath(…)format.oMath
editor.doc.format.rStyle(…)format.rStyle
editor.doc.format.rFonts(…)format.rFonts
editor.doc.format.fontSizeCs(…)format.fontSizeCs
editor.doc.format.ligatures(…)format.ligatures
editor.doc.format.numForm(…)format.numForm
editor.doc.format.numSpacing(…)format.numSpacing
editor.doc.format.stylisticSets(…)format.stylisticSets
editor.doc.format.contextualAlternates(…)format.contextualAlternates
editor.doc.format.strikethrough(…)format.strike
editor.doc.history.get(…)history.get
editor.doc.history.undo(…)history.undo
editor.doc.history.redo(…)history.redo
editor.doc.images.list(…)images.list
editor.doc.images.get(…)images.get
editor.doc.images.delete(…)images.delete
editor.doc.images.move(…)images.move
editor.doc.images.convertToInline(…)images.convertToInline
editor.doc.images.convertToFloating(…)images.convertToFloating
editor.doc.images.setSize(…)images.setSize
editor.doc.images.setWrapType(…)images.setWrapType
editor.doc.images.setWrapSide(…)images.setWrapSide
editor.doc.images.setWrapDistances(…)images.setWrapDistances
editor.doc.images.setPosition(…)images.setPosition
editor.doc.images.setAnchorOptions(…)images.setAnchorOptions
editor.doc.images.setZOrder(…)images.setZOrder
editor.doc.lists.list(…)lists.list
editor.doc.lists.get(…)lists.get
editor.doc.lists.insert(…)lists.insert
editor.doc.lists.create(…)lists.create
editor.doc.lists.attach(…)lists.attach
editor.doc.lists.detach(…)lists.detach
editor.doc.lists.indent(…)lists.indent
editor.doc.lists.outdent(…)lists.outdent
editor.doc.lists.join(…)lists.join
editor.doc.lists.canJoin(…)lists.canJoin
editor.doc.lists.separate(…)lists.separate
editor.doc.lists.setLevel(…)lists.setLevel
editor.doc.lists.setValue(…)lists.setValue
editor.doc.lists.continuePrevious(…)lists.continuePrevious
editor.doc.lists.canContinuePrevious(…)lists.canContinuePrevious
editor.doc.lists.setLevelRestart(…)lists.setLevelRestart
editor.doc.lists.convertToText(…)lists.convertToText
editor.doc.mutations.preview(…)mutations.preview
editor.doc.mutations.apply(…)mutations.apply
editor.doc.format.paragraph.resetDirectFormatting(…)format.paragraph.resetDirectFormatting
editor.doc.format.paragraph.setAlignment(…)format.paragraph.setAlignment
editor.doc.format.paragraph.clearAlignment(…)format.paragraph.clearAlignment
editor.doc.format.paragraph.setIndentation(…)format.paragraph.setIndentation
editor.doc.format.paragraph.clearIndentation(…)format.paragraph.clearIndentation
editor.doc.format.paragraph.setSpacing(…)format.paragraph.setSpacing
editor.doc.format.paragraph.clearSpacing(…)format.paragraph.clearSpacing
editor.doc.format.paragraph.setKeepOptions(…)format.paragraph.setKeepOptions
editor.doc.format.paragraph.setOutlineLevel(…)format.paragraph.setOutlineLevel
editor.doc.format.paragraph.setFlowOptions(…)format.paragraph.setFlowOptions
editor.doc.format.paragraph.setTabStop(…)format.paragraph.setTabStop
editor.doc.format.paragraph.clearTabStop(…)format.paragraph.clearTabStop
editor.doc.format.paragraph.clearAllTabStops(…)format.paragraph.clearAllTabStops
editor.doc.format.paragraph.setBorder(…)format.paragraph.setBorder
editor.doc.format.paragraph.clearBorder(…)format.paragraph.clearBorder
editor.doc.format.paragraph.setShading(…)format.paragraph.setShading
editor.doc.format.paragraph.clearShading(…)format.paragraph.clearShading
editor.doc.styles.paragraph.setStyle(…)styles.paragraph.setStyle
editor.doc.styles.paragraph.clearStyle(…)styles.paragraph.clearStyle
editor.doc.query.match(…)query.match
editor.doc.sections.list(…)sections.list
editor.doc.sections.get(…)sections.get
editor.doc.sections.setBreakType(…)sections.setBreakType
editor.doc.sections.setPageMargins(…)sections.setPageMargins
editor.doc.sections.setHeaderFooterMargins(…)sections.setHeaderFooterMargins
editor.doc.sections.setPageSetup(…)sections.setPageSetup
editor.doc.sections.setColumns(…)sections.setColumns
editor.doc.sections.setLineNumbering(…)sections.setLineNumbering
editor.doc.sections.setPageNumbering(…)sections.setPageNumbering
editor.doc.sections.setTitlePage(…)sections.setTitlePage
editor.doc.sections.setOddEvenHeadersFooters(…)sections.setOddEvenHeadersFooters
editor.doc.sections.setVerticalAlign(…)sections.setVerticalAlign
editor.doc.sections.setSectionDirection(…)sections.setSectionDirection
editor.doc.sections.setHeaderFooterRef(…)sections.setHeaderFooterRef
editor.doc.sections.clearHeaderFooterRef(…)sections.clearHeaderFooterRef
editor.doc.sections.setLinkToPrevious(…)sections.setLinkToPrevious
editor.doc.sections.setPageBorders(…)sections.setPageBorders
editor.doc.sections.clearPageBorders(…)sections.clearPageBorders
editor.doc.styles.apply(…)styles.apply
editor.doc.toc.list(…)toc.list
editor.doc.toc.get(…)toc.get
editor.doc.toc.configure(…)toc.configure
editor.doc.toc.update(…)toc.update
editor.doc.toc.remove(…)toc.remove
editor.doc.toc.markEntry(…)toc.markEntry
editor.doc.toc.unmarkEntry(…)toc.unmarkEntry
editor.doc.toc.listEntries(…)toc.listEntries
editor.doc.toc.getEntry(…)toc.getEntry
editor.doc.toc.editEntry(…)toc.editEntry
editor.doc.tables.convertFromText(…)tables.convertFromText
editor.doc.tables.delete(…)tables.delete
editor.doc.tables.clearContents(…)tables.clearContents
editor.doc.tables.move(…)tables.move
editor.doc.tables.split(…)tables.split
editor.doc.tables.convertToText(…)tables.convertToText
editor.doc.tables.setLayout(…)tables.setLayout
editor.doc.tables.insertRow(…)tables.insertRow
editor.doc.tables.deleteRow(…)tables.deleteRow
editor.doc.tables.setRowHeight(…)tables.setRowHeight
editor.doc.tables.distributeRows(…)tables.distributeRows
editor.doc.tables.setRowOptions(…)tables.setRowOptions
editor.doc.tables.insertColumn(…)tables.insertColumn
editor.doc.tables.deleteColumn(…)tables.deleteColumn
editor.doc.tables.setColumnWidth(…)tables.setColumnWidth
editor.doc.tables.distributeColumns(…)tables.distributeColumns
editor.doc.tables.insertCell(…)tables.insertCell
editor.doc.tables.deleteCell(…)tables.deleteCell
editor.doc.tables.mergeCells(…)tables.mergeCells
editor.doc.tables.unmergeCells(…)tables.unmergeCells
editor.doc.tables.splitCell(…)tables.splitCell
editor.doc.tables.setCellProperties(…)tables.setCellProperties
editor.doc.tables.sort(…)tables.sort
editor.doc.tables.setAltText(…)tables.setAltText
editor.doc.tables.setStyle(…)tables.setStyle
editor.doc.tables.clearStyle(…)tables.clearStyle
editor.doc.tables.setStyleOption(…)tables.setStyleOption
editor.doc.tables.setBorder(…)tables.setBorder
editor.doc.tables.clearBorder(…)tables.clearBorder
editor.doc.tables.applyBorderPreset(…)tables.applyBorderPreset
editor.doc.tables.setShading(…)tables.setShading
editor.doc.tables.clearShading(…)tables.clearShading
editor.doc.tables.setTablePadding(…)tables.setTablePadding
editor.doc.tables.setCellPadding(…)tables.setCellPadding
editor.doc.tables.setCellSpacing(…)tables.setCellSpacing
editor.doc.tables.clearCellSpacing(…)tables.clearCellSpacing
editor.doc.tables.get(…)tables.get
editor.doc.tables.getCells(…)tables.getCells
editor.doc.tables.getProperties(…)tables.getProperties
editor.doc.tables.getStyles(…)tables.getStyles
editor.doc.tables.setDefaultStyle(…)tables.setDefaultStyle
editor.doc.tables.clearDefaultStyle(…)tables.clearDefaultStyle
editor.doc.trackChanges.list(…)trackChanges.list
editor.doc.trackChanges.get(…)trackChanges.get
editor.doc.trackChanges.decide(…)trackChanges.decide