GET /unified/documents/files/{id}
or POST /unified/documents/files/{id}/download
Provider | Picker Type | Navigation Model | Notes |
---|---|---|---|
SharePoint | Native | Site → Drive → Folder → File | Microsoft-native picker with StackOne-built site selection UI |
OneDrive | Native | Drive → Folder → File | Standard OneDrive picker scoped to user’s personal/business drive |
Google Drive | Native | Drive → Folder → File | Uses Google Picker SDK |
Confluence | Custom | Space → Page | Pages act as both folders and files based on content/children |
Notion (Coming Soon) | Custom | Workspace → Page | Pages/blocks behave similarly to Confluence in dual file/folder roles |
fileId
corresponds to a StackOne-normalized file object that can be accessed via API:
GET /unified/documents/files/{id}
– fetch file metadataPOST /unified/documents/files/{id}/download
– retrieve file contents (if supported)hasContent
, hasChildren
is providedGET /unified/documents/files/{id}
POST /unified/documents/files/{id}/download
Feature / Capability | SharePoint | OneDrive | Google Drive | Confluence | Notion (coming) |
---|---|---|---|---|---|
Picker Type | Native | Native | Native | Custom | Custom |
Tree Navigation | ✅ | ✅ | ✅ | ✅ | ✅ |
Multi-file Selection | ✅ | ✅ | ✅ | ✅ | ✅ |
Selectable File Types | Any document | Any document | Any document | Pages | Pages |
Folder Navigation | ✅ | ✅ | ✅ | ✅ | ✅ |
Dual-role Items | N/A | N/A | N/A | ✅ (pages) | ✅ (pages/blocks) |
Output (on select) | List of File objects | List of File objects | List of File objects | List of File objects | List of File objects |
Unified Fetch / Download | ✅ | ✅ | ✅ | ✅ | ✅ |
GET /unified/documents/files/{id}
POST /unified/documents/files/{id}/download
Files.Read.All
, Sites.Read.All
https://www.googleapis.com/auth/drive.readonly
onFilesPicked
callback receives different response formats depending on what was selected:
folderSelectionEnabled: true
is set, users can select entire folders. The response will include folder IDs in the selection. To retrieve all files within selected folders (including nested subfolders), use the List Files API with the folder_id
parameter and nested_files: true
option to automatically fetch all nested content.onFilesPicked
is typically required for document management use cases. Other callbacks (onOpen
, onClose
, onCancel
, onError
) are optional and depend on specific user actions or error conditions.