Skip to main content

DROPBOX API Reference

Module Information

Service Files:

  • Private: service/private/dropbox.js

Available Services: 3 Documented Services: 3


dropbox.list_files

List files and folders at a given path in the connected Dropbox account. Calls the Dropbox files/list_folder API with a limit of 100 entries. Requires a valid OAuth access token retrieved via the dropbox provider.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/dropbox.list_files

Parameters

ParameterTypeRequiredDefaultDescription
pathstringNo""Dropbox folder path to list. Defaults to the root folder (empty string) when not provided.

Returns

FieldTypeDescription
successbooleanAlways true on a successful Dropbox API response
filesarray<object>Array of Dropbox file and folder entry objects returned by the files/list_folder API

Possible Errors

Error CodeHTTP StatusDescription
UNAUTHORIZED401OAuth token is invalid or expired. Please re-authenticate.
INTERNAL_ERROR500Failed to list Dropbox files

dropbox.import_file

Import a single file from Dropbox into a Drumee MFS destination folder. Retrieves a temporary download link from the Dropbox files/get_temporary_link API, resolves the destination folder via mfs_node_attr, and imports the file using the internal ExtImport file import mechanism.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/dropbox.import_file

Parameters

ParameterTypeRequiredDefaultDescription
file_idstringYes-Dropbox file path or ID passed to the files/get_temporary_link API to obtain a download URL
nidstringYes-Destination MFS node ID (folder) in Drumee where the imported file will be stored. Resolved via mfs_node_attr.

Returns

FieldTypeDescription
successbooleanAlways true on successful import
nodeobjectThe newly created MFS node record for the imported file, as returned by the internal import mechanism

Possible Errors

Error CodeHTTP StatusDescription
MISSING_PARAM400Missing file_id or nid (destination folder ID) parameter
INTERNAL_ERROR500Failed to get Dropbox file metadata or temporary download link
INVALID_DESTINATION400Invalid destination folder ID (nid)

dropbox.import_directory

Recursively import an entire Dropbox folder and its contents into a Drumee MFS destination folder. Lists all items via the Dropbox files/list_folder API with cursor-based pagination (limit 2000), creates matching folder structures in Drumee, and imports each file using temporary download links. Returns import statistics including counts of folders created, files imported, items skipped, and any per-item errors.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/dropbox.import_directory

Parameters

ParameterTypeRequiredDefaultDescription
folder_pathstringYes-Dropbox folder path to import recursively (e.g. /Documents/Project). Passed to the files/list_folder API.
nidstringYes-Destination MFS node ID (folder) in Drumee where the imported directory tree will be created. Resolved via mfs_node_attr.

Returns

FieldTypeDescription
successbooleanAlways true when the top-level import completes without a fatal error
foldersnumberTotal number of folders created in Drumee during the recursive import
filesnumberTotal number of files successfully imported into Drumee
skippednumberTotal number of items skipped during the import
errorsarray<object>List of per-item error records for files or folders that failed to import. Does not cause the overall operation to fail.
errors[].filestringFile name that failed (present for file-level errors)
errors[].itemstringItem name that failed (present for item-level errors)
errors[].errorstringError message describing the failure

Possible Errors

Error CodeHTTP StatusDescription
MISSING_PARAM400Missing folder_path or nid (destination folder ID) parameter
INVALID_DESTINATION400Invalid destination folder ID (nid)
INTERNAL_ERROR500Failed to import directory from Dropbox

  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes