Docs

Get Folder Tree

GET /drives/{eventId}/partitions/{partitionId}/tree

GET/drives/{eventId}/partitions/{partitionId}/tree

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Returns the complete folder hierarchy for a partition. Use this to build a navigation tree for the drive. Each folder includes the user's applicable permissions for that path.

The partitionId is a partition id returned by Get Partitions — it will be the event ID, a collaborator ID, or an area ID depending on partition type.

Path Parameters

FieldTypeRequiredDescription
driveIdGuidRequiredThe event ID.
partitionIdGuidRequiredThe partition ID (event ID, collaborator ID, or area ID).

Example Response

[
  {
    "id": "019700aa-0001-7000-0000-000000000001",
    "name": "Documents",
    "fullPath": "/019700aa-0001-7000-0000-000000000001",
    "permissions": ["File.*"]
  },
  {
    "id": "019700aa-0001-7000-0000-000000000002",
    "name": "Contracts",
    "fullPath": "/019700aa-0001-7000-0000-000000000001/019700aa-0001-7000-0000-000000000002",
    "permissions": ["File.Read"]
  }
]

Response Fields

FieldTypeDescription
idGuidThe folder's unique ID.
namestringThe folder's display name.
fullPathstringID-based path to this folder (e.g., `/{folderId}` or `/{parentId}/{folderId}`).
permissionsarrayThe current user's permissions on this folder. See **File Permissions** below.

File Permissions

ValueDescription
File.*Admin — full access including sharing and deletion.
File.ReadRead-only access.
File.EditCan upload new content and edit metadata.
File.DeleteCan delete files and folders.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token, or no access to this partition.
NOT_FOUND404Drive or partition not found.