Skip to main content

DESK API Reference

Module Information​

Service Files:

  • Private: service/private/desk.js

Available Services: 18 Documented Services: 13


desk.home​

Get paginated list of files and folders from user's home directory

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)
LoggingEnabled

Endpoint:

https://hostname/-/svc/desk.home

Parameters​

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination

Returns​

FieldTypeDescription
itemsarray<object>Array of media items (files and folders)
items[].idstringNode ID
items[].filenamestringFile or folder name
items[].categorystringNode type: file, folder, hub
items[].filesizenumberSize in bytes
items[].ranknumberSort order position

desk.get_env​

Get complete desk environment including filenames, privilege, and quota information

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.get_env

Returns​

FieldTypeDescription
filenamesarrayList of all filenames in user's workspace
privilegenumberUser privilege level (always 7 for owner)
quotaobjectUser quota limits
quota.storagenumberAvailable storage in bytes
quota.realnumberReal disk space available

desk.search​

Search files and folders by name pattern across user's workspace

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.search

Parameters​

ParameterTypeRequiredDefaultDescription
stringstring (min: 1)Yes-Search pattern (filename substring)
pagenumber (min: 1)No1Page number for pagination

Returns​

FieldTypeDescription
resultsarray<object>Array of matching media items
results[].idstringNode ID
results[].filenamestringMatched filename
results[].file_pathstringFull path to file
results[].categorystringNode type

desk.my_wallpapers​

Get combined list of user and system wallpapers with pagination

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.my_wallpapers

Parameters​

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination

Returns​

FieldTypeDescription
wallpapersarray<object>Combined list of user wallpapers (first) and system wallpapers (second)
wallpapers[].idstringWallpaper node ID
wallpapers[].filenamestringWallpaper filename
wallpapers[].categorystringimage
wallpapers[].sourcestringuser or system

desk.disk_usage​

Get disk usage statistics for user (owned files + owned hubs) with optional category filter

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.disk_usage

Parameters​

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination
categorystringNo"*"Filter by category: video, image, audio, document, or * for all
listbooleanNo-If true, return detailed file list instead of summary

Returns​

FieldTypeDescription
summaryobjectUsage summary by category (if list=false)
summary.total_sizenumberTotal bytes used
summary.file_countnumberTotal number of files
filesarray<object>Detailed file list (if list=true)

desk.create_hub​

Create a new hub (private, public, or share workspace)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)
Pre-checkcheck_quota (validation before execution)
LoggingEnabled

Endpoint:

https://hostname/-/svc/desk.create_hub

Parameters​

ParameterTypeRequiredDefaultDescription
filenamestring (min: 1, max: 255)Yes-Hub name (will be sanitized for hostname)
areastring (private, public, share)No"private"Hub visibility area
pidstringNo-Parent folder ID (defaults to home_id)

Returns​

FieldTypeDescription
hub_idstringNew hub ID
filenamestringActual filename used (may differ from input)
hostnamestringHub hostname
areastringHub area
home_idstringHub's home directory node ID
privilegenumberUser's privilege level (7 for owner)

Possible Errors​

Error CodeHTTP StatusDescription
QUOTA_EXCEEDED507Hub creation quota exceeded for this area
INVALID_FILENAME400Filename contains invalid characters
CREATION_FAILED500Hub creation failed

desk.limit​

Get current quota limits and available storage space

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.limit

Returns​

FieldTypeDescription
storagenumberAvailable storage in bytes
realnumberReal disk space available (or infinity if unlimited)

desk.create_wicket​

Create or retrieve wicket hub for external meeting handling (one per user)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.create_wicket

Returns​

FieldTypeDescription
wicket_idstringWicket hub ID
idstringHome directory node ID
filenamestringWicket folder name
categorystringhub

desk.set_mfa​

Set multi-factor authentication (MFA) for user account

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.set_mfa

Parameters​

ParameterTypeRequiredDefaultDescription
secretstringYes-MFA secret key (from QR code setup)
codestring (min: 6, max: 6)Yes-TOTP verification code from authenticator app
mfanumber (0, 1)No-Enable (1) or disable (0) MFA

Returns​

FieldTypeDescription
userobjectUpdated user profile with MFA status
user.idstringUser ID
user.mfanumberMFA status (0=disabled, 1=enabled)
user.otpnumberOne-time password status

Possible Errors​

Error CodeHTTP StatusDescription
INVALID_CODE401TOTP code verification failed
SECRET_NOT_FOUND404MFA secret not found or expired

desk.leave_hub​

Leave a shared hub (remove user membership from hub)

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (1)

Endpoint:

https://hostname/-/svc/desk.leave_hub

Parameters​

ParameterTypeRequiredDefaultDescription
nidstringNo-Hub ID to leave (optional, uses context hub if not provided)

Returns​

FieldTypeDescription
uidstringUser ID who left
hub_idstringHub ID that was left

Possible Errors​

Error CodeHTTP StatusDescription
HUB_ID_NOT_ALLOWED403Cannot leave your own hub

desk.reorder​

Reorder items in user's workspace by updating rank positions

PropertyValue
ScopeHub (requires hub context)
PermissionDelete (8)

Endpoint:

https://hostname/-/svc/desk.reorder

Parameters​

ParameterTypeRequiredDefaultDescription
listarray<object>Yes-Array of items to reorder

Returns​

FieldTypeDescription
listarray<object>Same list that was sent (confirmation)

desk.set_online_status​

Set user's online/offline status and broadcast to connected clients

PropertyValue
ScopeHub (requires hub context)
Permissionunknown

Endpoint:

https://hostname/-/svc/desk.set_online_status

Parameters​

No parameters

Returns​

FieldTypeDescription
hub_idstringUser's hub ID
user_idstringUser ID
statusnumberOnline status (0=offline, 1=online)

desk.backup​

Export contacts as VCF (vCard) file

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.backup

desk.create_external_room​

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.create_external_room

desk.get_alternate_account​

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.get_alternate_account

desk.get_workers​

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.get_workers

desk.quick_share​

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.quick_share

desk.recent_files​

Get recently modified files across all user hubs, sorted by modification time DESC

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/desk.recent_files

Parameters​

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination

Returns​

FieldTypeDescription
itemsarray<object>Recent files across all accessible hubs, sorted by mtime DESC
items[].nidstringNode ID
items[].hub_idstringHub the file belongs to
items[].filenamestringFile name
items[].filetypestringNode type (file, folder, etc.)
items[].filesizenumberFile size in bytes
items[].mtimenumberLast modified timestamp (unix)
items[].ctimenumberCreated timestamp (unix)
items[].vhoststringHub virtual hostname
items[].ownpathstringFile path within hub