Google Docs
Google Docs is Google's collaborative word processor.
Authentication
- OAuth 2.0
Actions
Generic API request. Call any Google Docs API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.
- Add document tabAdd a tab to the document.
- Batch update documentDestructiveApply a raw list of Google Docs batchUpdate requests to a document.
- Create documentCreate a blank Google Docs document owned by the connected account.
- Create footerCreate a footer segment.
- Create footnoteInsert a footnote reference at a point in the body and create the footnote segment behind it.
- Create headerCreate a header segment.
- Create named rangeName a range of the document so later edits can address it by name instead of by index — the durable alternative to re-deriving offsets after every edit.
- Create paragraph bulletsTurn every paragraph overlapping a range into a list item.
- Delete content rangeDestructiveDelete everything between two indexes.
- Delete footerDestructiveDelete a footer segment and drop the reference to it from whatever carries it — the document style, leaving the first section with no footer of that type, or a section style, leaving that section to inherit.
- Delete headerDestructiveDelete a header segment and drop the reference to it from whatever carries it — the document style, leaving the first section with no header of that type, or a section style, leaving that section to inherit.
- Delete named rangeDestructiveRemove a named range's marker.
- Delete paragraph bulletsDestructiveStrip the bullets from every paragraph overlapping a range, turning list items back into ordinary paragraphs.
- Delete positioned objectDestructiveDelete a positioned object — a floating image or drawing anchored to a paragraph rather than flowing inline with the text.
- Delete tabDestructiveDelete a tab and everything in it.
- Delete table columnDestructiveDelete the column a reference cell sits in, along with its content.
- Delete table rowDestructiveDelete the row a reference cell sits in, along with its content.
- Get documentRead a Google Docs document — its title, revision id, and the structural elements of its body.
- Insert dateInsert a live date chip that renders according to the document reader's settings rather than a frozen date string.
- Insert inline imageInsert an image inline with the text, fetched once from a publicly reachable URI and copied into the document — Google does not re-fetch it later.
- Insert page breakInsert a page break followed by a newline, so the following content starts on a new page.
- Insert person mentionInsert a smart-chip mention of a person, linked to their email address.
- Insert rich linkInsert a rich-link smart chip for a URI — typically a Drive file, which renders with the file's own icon and title.
- Insert section breakInsert a section break, preceded by a newline, so the following content can carry its own margins, columns and headers via googledocs:updatesectionstyle.
- Insert tableInsert an empty table with the given number of rows and columns.
- Insert table columnInsert an empty column into an existing table, left or right of a reference cell.
- Insert table rowInsert an empty row into an existing table, above or below a reference cell.
- Insert textInsert literal text into a document at a given index, or append it to the end of a segment.
- Merge table cellsDestructiveMerge a rectangular block of cells into one.
- Pin table header rowsDestructivePin the first N rows of a table so they repeat at the top of every page the table spans.
- Replace all textDestructiveFind every occurrence of a string in a document and replace it — the mail-merge primitive for a template document with placeholder tokens.
- Replace imageDestructiveSwap the picture behind an existing image object for a new one, keeping the image's place and size in the document.
- Replace named range contentDestructiveOverwrite the text inside a named range — the index-free way to refill a placeholder region on every run.
- Unmerge table cellsDestructiveSplit every merged cell in a rectangular block back into single cells.
- Update document styleDestructiveSet document-wide page setup — margins, page size, orientation, page numbering, which header/footer variants are used, and whether the document is paged or pageless.
- Update document tab propertiesDestructiveRename, re-order, re-parent or re-icon an existing tab.
- Update named styleDestructiveRedefine one of the document's named styles — NORMALTEXT, TITLE, SUBTITLE or a heading level — so every paragraph carrying that style updates at once.
- Update paragraph styleDestructiveRestyle every paragraph that overlaps a range — heading level, alignment, spacing, indentation, pagination behaviour.
- Update section styleDestructiveRestyle every section a range overlaps — its own margins, column layout, content direction and header/footer choices.
- Update table cell styleDestructiveRestyle table cells — background colour, padding, vertical alignment, borders.
- Update table column propertiesDestructiveSet the width of table columns — either a fixed width in points or evenly distributed.
- Update table row styleDestructiveRestyle table rows — minimum height, header-row flag, and whether the row may break across pages.
- Update text styleDestructiveRestyle a range of text — bold, italic, colour, font, size, link.
Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.