Google Docs Custom icon

Google Docs Custom

Interact with Google Docs API with auto-refreshing token

Actions4

Document → Get

AI-generated

Summary

Retrieve a Google Document by its Document ID, optionally returning a simplified version of its content.

Inputs

  • Authentication (required) — Choose between using a Refresh Token (auto-refresh) or Bearer Token (manual) for authentication.
  • Document ID (required) — The ID of the Google Document to retrieve.
  • Options — Optional parameters including a custom refresh token (when using refresh token authentication) and whether to return a simplified response.

Output shape

a single item containing the document data

If 'Simplify' is true (default), returns an object with 'documentId', 'title', and a concatenated string 'content' representing the text in the document. Otherwise, returns the raw Google Docs API response. Errors appear as JSON objects with error messages if 'Continue on Fail' is enabled.

Examples

Example 1: Get document with simplified content

Set Document ID and leave the default 'Simplify' option to true. Use Refresh Token authentication or provide Bearer Token manually.

Example 2: Get document with raw response

Set Document ID and set 'Simplify' option to false to receive full details from Google Docs API.

Discussion