Lodol Docs

Google Docs

API actions for the Google Docs integration.

Google Docs

Create and edit documents in Google Docs.


Add bulleted list

Add a bulleted list at the end of a Google Docs document.

Parameters

ParameterTypeRequiredDescription
document_idstringYesThe ID of the document
itemsarrayYesList of strings to add as bullet points

Response

[
  70,
  120
]

Append text

Append text to the end of a Google Docs document.

Parameters

ParameterTypeRequiredDescription
document_idstringYesThe ID of the document
textstringYesText to append to the document

Response

42

Clear document

Clear all content from a Google Docs document.

Parameters

ParameterTypeRequiredDescription
document_idstringYesThe ID of the document to clear

Response

true

Create document

Create a new Google Docs document with a given title.

Parameters

ParameterTypeRequiredDescription
titlestringYesTitle of the new document

Response

"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"

Get document text

Retrieve the plain text content of a Google Docs document.

Parameters

ParameterTypeRequiredDescription
document_idstringYesThe ID of the document

Response

"This is the document content.\n\nIt has multiple paragraphs."

Insert heading

Insert a heading at the end of a Google Docs document.

Parameters

ParameterTypeRequiredDescription
document_idstringYesThe ID of the document
heading_textstringYesText for the heading
levelstringNoHeading level (HEADING_1, HEADING_2, HEADING_3, HEADING_4)

Response

[
  50,
  65
]

Replace text

Replace all occurrences of a string in a Google Docs document.

Parameters

ParameterTypeRequiredDescription
document_idstringYesThe ID of the document
find_textstringYesText to find in the document
replace_textstringYesText to replace with

Response

3

On this page