Use wide Google Docs API integration

With Ants & Apps platform you can connect Google Docs API with more than 30 available apps, 600+ functional formulas to boost your productivity

Reference

  • documents

    • Get the latest version of the specified document

      This action gets the latest version of the specified document.

      GETDocsDocumentsGet

      Request parameters

      • documentId*string

        The ID of the document to retrieve.

      • suggestionsViewModestring

        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.

    • Create a blank document using the title given in the request

      This action creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.

      POSTDocsDocumentsCreate

      Request body

      • gcsContentUristring

        The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.

      • languagestring

        The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.
        [Language Support](/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned.

      • typestring

        Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.

      • contentstring

        The content of the input in string format. Cloud audit logging exempt since it is based on user data.

      • bodyobject

        Output only. The main body of the document.

      • revisionIdstring

        Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the document has not changed. Conversely, a changed ID (for the same document and user) usually means the document has been updated; however, a changed ID can also be due to internal factors such as ID format changes.

      • headersobject

        Output only. The headers in the document, keyed by header ID.

      • documentIdstring

        Output only. The ID of the document.

      • footnotesobject

        Output only. The footnotes in the document, keyed by footnote ID.

      • inlineObjectsobject

        Output only. The inline objects in the document, keyed by object ID.

      • suggestedNamedStylesChangesobject

        Output only. The suggested changes to the named styles of the document, keyed by suggestion ID.

      • titlestring

        The title of the document.

      • suggestionsViewModestring

        Output only. The suggestions view mode applied to the document. Note: When editing a document, changes must be based on a document with SUGGESTIONS_INLINE.

      • documentStyleobject

        Output only. The style of the document.

      • namedStylesobject

        Output only. The named styles of the document.

      • suggestedDocumentStyleChangesobject

        Output only. The suggested changes to the style of the document, keyed by suggestion ID.

      • positionedObjectsobject

        Output only. The positioned objects in the document, keyed by object ID.

      • namedRangesobject

        Output only. The named ranges in the document, keyed by name.

      • footersobject

        Output only. The footers in the document, keyed by footer ID.

      • listsobject

        Output only. The lists in the document, keyed by list ID.

    • Apply one or more updates to the document

      This action applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.

      POSTDocsDocumentsBatchUpdate

      Request parameters

      • documentId*string

        The ID of the document to update.

      Request body

      • writeControlobject

        Provides control over how write requests are executed.

      • requestsarray

        A list of updates to apply to the document.