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
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The ID of the document |
items | array | Yes | List of strings to add as bullet points |
Response
[
70,
120
]Append text
Append text to the end of a Google Docs document.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The ID of the document |
text | string | Yes | Text to append to the document |
Response
42Clear document
Clear all content from a Google Docs document.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The ID of the document to clear |
Response
trueCreate document
Create a new Google Docs document with a given title.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title of the new document |
Response
"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"Get document text
Retrieve the plain text content of a Google Docs document.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The 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
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The ID of the document |
heading_text | string | Yes | Text for the heading |
level | string | No | Heading 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
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The ID of the document |
find_text | string | Yes | Text to find in the document |
replace_text | string | Yes | Text to replace with |
Response
3