EndpointsIntegrations
Authorize Google Drive
GET/v1/integrations/google_drive/oauth/authorize
Authorization
Authorizationstringrequired
Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
Query Parameters
store_namestring
Optional ingestion store name
metadata_contextualizationbooleandefault:
trueContextualize chunks with the connector's curated metadata fields
file_contextualizationbooleandefault:
trueGenerate an LLM context for each chunk situating it within the full document
ingestion_modeenumdefault:
high_qualityParsing strategy for imported files
Possible values
fasthigh_qualityResponse
307 with Location set to the provider's consent page. After consent the browser is redirected to the return URL registered on the organization's app, with these query parameters appended:
providerstringrequired
The connector: google_drive
statusenumrequired
installation_idstring
The installation that was created or reconnected. Present when `status` is `connected`.
errorenum
Why consent failed. Present when `status` is `error`. Provider errors such as `access_denied` are passed through.
Possible values
access_deniedmissing_codeaccount_already_connectedinvalid_statetoken_exchange_failedcallback_failedRequest
cURL
GET/v1/integrations/google_drive/oauth/authorize
curl -s -o /dev/null -w '%{redirect_url}' \
'https://api.mixedbread.com/v1/integrations/google_drive/oauth/authorize?store_name=drive-olivia' \
-H 'Authorization: Bearer YOUR_API_KEY'Redirects
cURL
# Location header of the 307: send the browser here
https://accounts.google.com/o/oauth2/v2/auth?client_id=…&redirect_uri=…&scope=…&access_type=offline&state=…
# Return URL after consent
https://platform.example.com/connected?provider=google_drive&status=connected&installation_id=2f1c9a8e-6b4d-4e3a-9c1f-7d8e5b6a4c21
# Return URL when consent fails
https://platform.example.com/connected?provider=google_drive&status=error&error=account_already_connected