Skip to main content
GET
Browse a Google Drive connection's folders
Returns the subfolders under parentId. Leave parentId out to start at My Drive plus shared drives. Use the results to fill driveFolders in a grant. See Agent access. The subfolders of parentId on the connected Drive (no parentId = My Drive’s top level plus shared drives), for picking driveFolders in a grant’s resource scope.
Availability: Cloud · Enterprise (self-hosted). Not available on the Community edition: a self-hosted deployment needs ENTERPRISE_ENABLED=true, otherwise the endpoint answers 403 with error.type: "enterprise_license_required".

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Query Parameters

connectionId
string
required
parentId
string

Response

Subfolders

id
string
name
string