Method: documents.get

Gets the latest version of the specified document.

HTTP request

GET https://docs.googleapis.com/v1/documents/{documentId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
documentId

string

The ID of the document to retrieve.

Query parameters

Parameters
suggestionsViewMode

enum (SuggestionsViewMode)

The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Document.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/documents
  • https://www.googleapis.com/auth/documents.readonly
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.readonly
  • https://www.googleapis.com/auth/drive.file

For more information, see the Authorization guide.