Source: equa-server/modules/api/src/endpoints/google-drive-endpoints.ts
Google Drive Endpoints
Endpoints for connecting an organization’s data room with Google Drive. Supports OAuth connection, folder browsing, sync configuration, manual sync triggers, and sync history. All Google Drive endpoints require authentication.Connection
Get Auth URL
Get the Google OAuth URL to initiate the connection flow. Redirect the user to this URL to authorize Google Drive access.
Response:
Connect Google Drive
Complete the OAuth flow by exchanging the authorization code for tokens. If a connection already exists, the tokens are refreshed.
Request:
Disconnect Google Drive
Disconnect Google Drive from the organization. Deactivates the connection without deleting synced files.
Get Connection Status
Check whether Google Drive is connected and get sync configuration details.
Response (connected):
Folder Browsing
List Folders
Browse Google Drive folders. If
parentId is omitted, returns root-level folders.
Query parameters:
Sync Configuration
Create Sync Config
Create a folder sync configuration that maps a Google Drive folder to a data room path.
Request:
Update Sync Config
Update an existing sync configuration (enable/disable, change target path, toggle subfolder sync, update file type filter).
Delete Sync Config
Soft-delete a sync configuration.
Sync Operations
Trigger Sync
Manually trigger a sync operation. If
configurationId is provided, only that configuration is synced; otherwise all enabled configurations are synced.
Request:
Get Sync History
Get the sync history for the organization (last 50 entries). Optionally filter by
configurationId.
Query parameters:
Response: