Google Docs
Create Google Doc From Content
Create a new Google Doc from a title and body text.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| titlestring · required | string | required | Name for the new document. |
| contentstring · optional | string | optional | Body of the document. |
| contentFormatstring · optional | string | optional | Plain text inserts the content as written. HTML lets Google convert the markup into real formatting. One of: Default: |
| folderIdstring · optional | string | optional | Where to put the document. Leave blank for My Drive root. |
| ifTitleExistsstring · optional | string | optional | Reuse keeps a retried run from leaving a second copy behind. One of: Default: |
Response schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Open in Google Docs"
},
"title": {
"type": "string"
},
"created": {
"type": "boolean",
"description": "False when an existing document was reused"
},
"folderId": {
"type": "string"
},
"documentId": {
"type": "string"
}
}
}