Google Docs

Integrate your application with the Google Docs API

🚀 Quickstart

Connect to Google Docs with Tenklo and see data flow in 2 minutes.

Create an integration

In Tenklo (free signup), go to Integrations -> Configure New Integration -> Google Docs.

Tenklo has credentials you can use for testing. Activate them in the dashboard.

Authorize Google Docs

Go to Connections -> Add Test Connection -> Authorize, then log in to Google Docs. Later, you'll let your users do the same directly from your app.

Call the Google Docs API

Let's make your first request to the Google Docs API (fetch a specific document). Replace the placeholders below with your Environment API key, integration ID, and connection ID:

curl "https://api.tenklo.dev/proxy/v1/documents/{documentId}" \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"

Or fetch credentials with the Node SDK or API.

The {documentId} in the URL represents the ID of the document to retrieve.

✅ You're connected! Check the Logs tab in Tenklo to inspect requests.

Implement Tenklo in your app

Follow our Auth implementation guide to integrate Tenklo in your app.

To obtain your own production credentials, follow the setup guide linked below.

📚 Google Docs Integration Guides

Tenklo maintained guides for common use cases.

Official docs: Google Docs API documentation

🧩 Pre-built syncs & actions for Google Docs

Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.

Others

Function nameDescriptionTypeSource code
add-document-tabAdd a new document tab to an existing Google Doc.Action🔗 Github
create-documentCreate a blank Google Doc with a titleAction🔗 Github
create-footerCreate a footer in a document sectionAction🔗 Github
create-footnoteInsert a footnote at a body location.Action🔗 Github
create-headerCreate a header in a document section.Action🔗 Github
create-named-rangeCreate a named range over a text range.Action🔗 Github
create-paragraph-bulletsApply a bullet or numbered list preset to paragraphs in a range.Action🔗 Github
delete-content-rangeDelete text or other removable content from a range in a Google Doc. The range must be structurally valid: it cannot span table cells, section breaks, or the final newline of a segment (body, header, or footer).Action🔗 Github
delete-document-tabDelete a document tab by tab ID.Action🔗 Github
delete-footerDelete a footer by footer ID.Action🔗 Github
delete-headerDelete a header by header ID.Action🔗 Github
delete-named-rangeDelete a named range by ID or by name.Action🔗 Github
delete-paragraph-bulletsRemove bullets or numbering from paragraphs in a range.Action🔗 Github
delete-table-columnDelete a table column using a reference cell.Action🔗 Github
delete-table-rowDelete a table row using a reference cell.Action🔗 Github
export-documentExport a Google Doc to PDF, DOCX, HTML, or plain text.Action🔗 Github
insert-inline-imageInsert an inline image from a public URL.Action🔗 Github
insert-page-breakInsert a page break in the document body.Action🔗 Github
insert-section-breakInsert a section break in the document body.Action🔗 Github
insert-table-columnInsert a table column to the left or right of a reference cell.Action🔗 Github
insert-table-rowInsert a table row above or below a reference cell.Action🔗 Github
insert-tableInsert a table with a given row and column count.Action🔗 Github
insert-textInsert text at an index or at the end of a segment.Action🔗 Github
list-revisionsList the revision history for a Google Doc.Action🔗 Github
merge-table-cellsMerge a rectangular range of table cells in a Google DocAction🔗 Github
pin-table-header-rowsPin or unpin a number of rows as frozen headers in a table.Action🔗 Github
replace-all-textReplace all matches of a string or regex in a document.Action🔗 Github
replace-imageReplace an existing inline or positioned image with a new image from a URL.Action🔗 Github
replace-named-range-contentReplace the contents of a named range in a Google Doc.Action🔗 Github
unmerge-table-cellsUnmerge previously merged table cells in a Google Doc.Action🔗 Github
update-document-styleUpdate document-level page and margin styling.Action🔗 Github
update-document-tab-propertiesRename or move a document tab.Action🔗 Github
update-paragraph-styleUpdate alignment, heading, spacing, or indentation for paragraphs in a range.Action🔗 Github
update-section-styleUpdate section-level layout settings.Action🔗 Github
update-table-cell-styleUpdate background, borders, padding, or alignment for table cells.Action🔗 Github
update-table-column-propertiesUpdate widths for one or more table columns.Action🔗 Github
update-table-row-styleUpdate minimum height or related row styling for table rows.Action🔗 Github
update-text-styleUpdate bold, italic, links, colors, font, or size for text in a range.Action🔗 Github
document-content-by-idSync full document structure and content for document IDs supplied in connection metadataSync🔗 Github
documents-from-drive-foldersDiscover Google Docs files under folder IDs from metadata, then hydrate each document through the Docs API.Sync🔗 Github
documents-from-drive-queryDiscover Google Docs files with a Drive search query, then sync each document contentSync🔗 Github
documents-from-shared-drivesDiscover Google Docs files across shared drives and hydrate each document through the Docs APISync🔗 Github
recent-documentsSync recently modified Google Docs files from Drive and fetch current document content for each changed file.Sync🔗 Github

On this page