Sync a workspace to a Google Drive folder so any file added there is automatically ingested and indexed in LightOn. Files are kept in sync — additions, updates, and deletions in Drive flow through to the workspace on the next import. Synced workspaces are read-only: you cannot manually upload to or delete from them.Documentation Index
Fetch the complete documentation index at: https://developers.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
From the console
The fastest path is the console UI:- Create a new workspace from Workspaces → New.
- Open the workspace, then choose Sync from Google Drive in its settings.
- Paste the service account JSON, pick the folder, and trigger the first import.
From the API
Convert any manual workspace into a Google Drive-synced workspace by issuing aPATCH /api/v3/company/workspaces/{id} with a datasource object. Conversion is one-way — you cannot revert a synced workspace back to manual.
service_account_file— JSON-encoded string of your Google service account credentials. The service account needs read access to the target folder.
folder_id(required) — the Google Drive folder ID to sync fromrecursive(optional) — include subfolders
sync field returned by GET /api/v3/company/workspaces/{id}.
For the full request shape, see PATCH /api/v3/company/workspaces/{id} in the API reference.