Google Docs
Integrate your application with the Google Docs API
🚀 Quickstart
Connect to Google Docs with Tenklo and see data flow in 2 minutes.
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.
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.
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.
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.
-
How to register your own Google Docs OAuth app
Register an OAuth app with Google Docs and obtain credentials to connect it to Tenklo -
Google App & Security Review Pass Google's OAuth app verification to go to production
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 name | Description | Type | Source code |
|---|---|---|---|
add-document-tab | Add a new document tab to an existing Google Doc. | Action | 🔗 Github |
create-document | Create a blank Google Doc with a title | Action | 🔗 Github |
create-footer | Create a footer in a document section | Action | 🔗 Github |
create-footnote | Insert a footnote at a body location. | Action | 🔗 Github |
create-header | Create a header in a document section. | Action | 🔗 Github |
create-named-range | Create a named range over a text range. | Action | 🔗 Github |
create-paragraph-bullets | Apply a bullet or numbered list preset to paragraphs in a range. | Action | 🔗 Github |
delete-content-range | Delete 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-tab | Delete a document tab by tab ID. | Action | 🔗 Github |
delete-footer | Delete a footer by footer ID. | Action | 🔗 Github |
delete-header | Delete a header by header ID. | Action | 🔗 Github |
delete-named-range | Delete a named range by ID or by name. | Action | 🔗 Github |
delete-paragraph-bullets | Remove bullets or numbering from paragraphs in a range. | Action | 🔗 Github |
delete-table-column | Delete a table column using a reference cell. | Action | 🔗 Github |
delete-table-row | Delete a table row using a reference cell. | Action | 🔗 Github |
export-document | Export a Google Doc to PDF, DOCX, HTML, or plain text. | Action | 🔗 Github |
insert-inline-image | Insert an inline image from a public URL. | Action | 🔗 Github |
insert-page-break | Insert a page break in the document body. | Action | 🔗 Github |
insert-section-break | Insert a section break in the document body. | Action | 🔗 Github |
insert-table-column | Insert a table column to the left or right of a reference cell. | Action | 🔗 Github |
insert-table-row | Insert a table row above or below a reference cell. | Action | 🔗 Github |
insert-table | Insert a table with a given row and column count. | Action | 🔗 Github |
insert-text | Insert text at an index or at the end of a segment. | Action | 🔗 Github |
list-revisions | List the revision history for a Google Doc. | Action | 🔗 Github |
merge-table-cells | Merge a rectangular range of table cells in a Google Doc | Action | 🔗 Github |
pin-table-header-rows | Pin or unpin a number of rows as frozen headers in a table. | Action | 🔗 Github |
replace-all-text | Replace all matches of a string or regex in a document. | Action | 🔗 Github |
replace-image | Replace an existing inline or positioned image with a new image from a URL. | Action | 🔗 Github |
replace-named-range-content | Replace the contents of a named range in a Google Doc. | Action | 🔗 Github |
unmerge-table-cells | Unmerge previously merged table cells in a Google Doc. | Action | 🔗 Github |
update-document-style | Update document-level page and margin styling. | Action | 🔗 Github |
update-document-tab-properties | Rename or move a document tab. | Action | 🔗 Github |
update-paragraph-style | Update alignment, heading, spacing, or indentation for paragraphs in a range. | Action | 🔗 Github |
update-section-style | Update section-level layout settings. | Action | 🔗 Github |
update-table-cell-style | Update background, borders, padding, or alignment for table cells. | Action | 🔗 Github |
update-table-column-properties | Update widths for one or more table columns. | Action | 🔗 Github |
update-table-row-style | Update minimum height or related row styling for table rows. | Action | 🔗 Github |
update-text-style | Update bold, italic, links, colors, font, or size for text in a range. | Action | 🔗 Github |
document-content-by-id | Sync full document structure and content for document IDs supplied in connection metadata | Sync | 🔗 Github |
documents-from-drive-folders | Discover Google Docs files under folder IDs from metadata, then hydrate each document through the Docs API. | Sync | 🔗 Github |
documents-from-drive-query | Discover Google Docs files with a Drive search query, then sync each document content | Sync | 🔗 Github |
documents-from-shared-drives | Discover Google Docs files across shared drives and hydrate each document through the Docs API | Sync | 🔗 Github |
recent-documents | Sync recently modified Google Docs files from Drive and fetch current document content for each changed file. | Sync | 🔗 Github |