integrations

Authorize Google Drive integration

Start Google Drive OAuth that connects a Google account as a new installation.

Every call creates an installation, also for an account the organization already connected, e.g. the same mailbox feeding a second store; the same account in another organization is that organization's own. To refresh an existing installation's credentials, reconnect it through GET /v1/integrations/google_drive/installations/{installation_id}/oauth/authorize instead.

After consent the browser returns to the organization's return URL with status, installation_id or error, and reference. error is store_in_use when another installation of the account already feeds the store, store_exists when new_store names a store that exists by then, store_change_on_refresh or reconnect_account_mismatch for the deprecated installation_id, and otherwise the provider's error (such as access_denied), invalid_state, token_exchange_failed or callback_failed.

get/v1/integrations/google_drive/oauth/authorize

Query parameters

store_namestring nullable

Ingestion store name. A store that already exists is shared: every data source connected to it ingests into it, except another installation of the same account, which would ingest every item again. Without it, the account's default store, numbered past a store another installation of the account feeds. Rejected with 422 when the connect refreshes an existing installation and names a store other than its own.

Ingestion store name. A store that already exists is shared: every data source connected to it ingests into it, except another installation of the same account, which would ingest every item again. Without it, the account's default store, numbered past a store another installation of the account feeds. Rejected with 422 when the connect refreshes an existing installation and names a store other than its own.

new_storeboolean

Ingest into a store created for this connection: the connect fails with 409 when store_name names a store that already exists, and without store_name the default name is numbered past existing stores. Rejected with 422 when the connect refreshes an existing installation, which keeps its store.

Ingest into a store created for this connection: the connect fails with 409 when store_name names a store that already exists, and without store_name the default name is numbered past existing stores. Rejected with 422 when the connect refreshes an existing installation, which keeps its store.

installation_idstring uuid nullable

Google Drive installation ID when reconnecting an existing installation. Deprecated: use GET /v1/integrations/google_drive/installations/{installation_id}/oauth/authorize.

Google Drive installation ID when reconnecting an existing installation. Deprecated: use GET /v1/integrations/google_drive/installations/{installation_id}/oauth/authorize.

referencestring nullable

Opaque value echoed back as reference on the return URL, so your app can match the outcome to the user who started the flow

Opaque value echoed back as reference on the return URL, so your app can match the outcome to the user who started the flow

metadata_contextualizationboolean

Contextualize chunks with the connector's curated metadata fields

Contextualize chunks with the connector's curated metadata fields

file_contextualizationboolean

Generate an LLM context for each chunk situating it within the full document

Generate an LLM context for each chunk situating it within the full document

ingestion_mode'fast' | 'high_quality'

Strategy for adding a file to a store.

Parsing strategy for imported files

Changes

Changed in 3 of the 30 revisions of this API.217

  • 9c6c72afde2d16See the full diff
    • ●

      removed the optional property from the response with the status

      response-optional-property-removed

    • ○

      added the new optional query request parameter installation_id

      new-optional-request-parameter

    • ○

      added the new optional query request parameter new_store

      new-optional-request-parameter

    • ○

      added the non-success response with the status

      response-non-success-status-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the new optional query request parameter reference

      new-optional-request-parameter

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ▲

      for the query request parameter file_contextualization, default value was changed from false to true

      request-parameter-default-value-changed

    • ▲

      for the query request parameter ingestion_mode, default value was changed from fast to high_quality

      request-parameter-default-value-changed