Skip to main content

DRUMATE API Reference

Module Information

Service Files:

  • Private: service/private/drumate.js
  • Public: service/yp.js

Available Services: 43 Documented Services: 20


drumate.get_profile

Get current user's complete profile information

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.get_profile

Returns

FieldTypeDescription
idstringUser ID
emailstringUser email address
firstnamestringFirst name
lastnamestringLast name
fullnamestringFull name
profileobjectExtended profile information (JSON)

drumate.update_profile

Update user profile information (may require OTP verification for sensitive fields)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.update_profile

Parameters

ParameterTypeRequiredDefaultDescription
profileobjectYes-Profile fields to update (firstname, lastname, mobile, address, etc.)
secretstringNo-OTP secret (required if OTP verification needed)
codestringNo-OTP code (required if OTP verification needed)

Returns

FieldTypeDescription
profileobjectUpdated profile information

Possible Errors

Error CodeHTTP StatusDescription
WRONG_PASSWORD401OTP code is incorrect

drumate.change_password

Change user password with old password verification

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.change_password

Parameters

ParameterTypeRequiredDefaultDescription
old_passwordstringYes-Current password for verification
new_passwordstring (min: 8)Yes-New password (minimum 8 characters)

Returns

FieldTypeDescription
statusstringsuccess or error code
errorstringError code if failed: wrong_password or uncompliant_password

Possible Errors

Error CodeHTTP StatusDescription
wrong_password401Current password is incorrect
uncompliant_password400New password does not meet requirements (minimum 8 characters)

drumate.change_email

Change user email address (must be unique and valid format)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.change_email

Parameters

ParameterTypeRequiredDefaultDescription
emailstring (pattern: ^[^@]+@[^@]+.[^@]+$)Yes-New email address

Returns

FieldTypeDescription
emailstringUpdated email address

Possible Errors

Error CodeHTTP StatusDescription
INVALID_EMAIL_FORMAT400Email format is invalid
EMAIL_ALREADY_EXIST409Email address is already in use

drumate.data_usage

Get current disk usage and quota information for user

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.data_usage

Returns

FieldTypeDescription
usagenumberCurrent disk usage in bytes
quotaobjectQuota limits
quota.storagenumberTotal storage quota in bytes
quota.realnumberReal available space

drumate.notification_center

Get list of all notifications for current user

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.notification_center

Returns

FieldTypeDescription
notificationsarray<object>Array of notification objects
notifications[].idstringNotification ID
notifications[].entity_idstringRelated entity (hub or user) ID
notifications[].typestringNotification type
notifications[].countnumberUnread count

drumate.logout

Logout user and cleanup session

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)
LoggingEnabled

Endpoint:

https://hostname/-/svc/drumate.logout

Parameters

ParameterTypeRequiredDefaultDescription
device_idstringNo-Device ID to unregister (for mobile devices)

Returns

FieldTypeDescription
session_idstringTerminated session ID

drumate.get_otp

Generate and send One-Time Password via SMS or email

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.get_otp

Returns

FieldTypeDescription
secretstringOTP secret token for verification
expirynumberOTP expiration timestamp
tipsstringHint showing where OTP was sent (last 4 digits of phone or email domain)
errorstringError message if OTP could not be sent

Possible Errors

Error CodeHTTP StatusDescription
OTP_NOT_AVAILABLE503OTP service is not enabled
INVALID_PROFILE400No valid phone or email in profile

drumate.set_avatar

Set user avatar using a media file from MFS

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.set_avatar

Parameters

ParameterTypeRequiredDefaultDescription
referencestringYes-Node ID of image file in MFS to use as avatar

Returns

FieldTypeDescription
idstringUser ID
avatarstringAvatar URL

Possible Errors

Error CodeHTTP StatusDescription
no_avatar404Avatar file not found or not accessible

drumate.remove_avatar

Remove user avatar and restore default

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.remove_avatar

Returns

FieldTypeDescription
idstringUser ID
avatarstringDefault avatar URL

drumate.my_hubs

Get paginated list of hubs that user owns

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.my_hubs

Parameters

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination

Returns

FieldTypeDescription
hubsarray<object>Array of hub objects
hubs[].idstringHub ID
hubs[].namestringHub name
hubs[].areastringHub area: private, public, or share
hubs[].owner_idstringOwner user ID

drumate.disk_space

Get detailed MFS manifest showing all files and folders with sizes

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.disk_space

Returns

FieldTypeDescription
manifestarray<object>Array of all media items with detailed metadata
manifest[].idstringNode ID
manifest[].filenamestringFile or folder name
manifest[].filesizenumberSize in bytes
manifest[].categorystringNode category

drumate.show_login_log

Get paginated login history with device and location information

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.show_login_log

Parameters

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination

Returns

FieldTypeDescription
sessionsarray<object>Array of login session objects
sessions[].citystringLogin location city
sessions[].ipstringIP address
sessions[].intimenumberLogin timestamp
sessions[].outtimenumberLogout timestamp (null if still active)
sessions[].statusstringSession status
sessions[].deviceobjectParsed device information from user agent

drumate.update_settings

Update user settings (merged with existing settings)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.update_settings

Parameters

ParameterTypeRequiredDefaultDescription
settingsobjectYes-Settings object to merge with existing settings

Returns

FieldTypeDescription
settingsobjectUpdated complete settings object

drumate.notification_remove

Mark notifications as read/acknowledged for a specific entity (hub or user)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.notification_remove

Parameters

ParameterTypeRequiredDefaultDescription
entity_idstringNo-Entity ID (hub_id or user_id) to mark notifications as read. Empty to mark all.

Returns

FieldTypeDescription
oknumberSuccess indicator (1)

drumate.delete_account

Initiate account deletion process (requires OTP verification, returns deletion token)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)
LoggingEnabled

Endpoint:

https://hostname/-/svc/drumate.delete_account

Parameters

ParameterTypeRequiredDefaultDescription
secretstringYes-OTP secret from get_otp
codestring (min: 6, max: 6)Yes-OTP verification code

Returns

FieldTypeDescription
secretstringDeletion confirmation token (sent to email)

Possible Errors

Error CodeHTTP StatusDescription
_invalid_key401OTP verification failed

drumate.confirm_delete_account

Confirm and execute account deletion (freezes account, removes from hubs, sends reactivation link)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.confirm_delete_account

Parameters

ParameterTypeRequiredDefaultDescription
secretstringYes-Deletion confirmation token from delete_account

Returns

FieldTypeDescription
rejectednumber1 if deletion rejected (invalid secret)
reasonstringRejection reason code

Possible Errors

Error CodeHTTP StatusDescription
_invalid_secret401Deletion token is invalid or expired

drumate.update_ident

Change user's ident/username (must be unique within domain)

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.update_ident

Parameters

ParameterTypeRequiredDefaultDescription
identstringYes-New username/ident
idstringYes-User ID to update

Returns

FieldTypeDescription
idstringUser ID
identstringUpdated ident
usernamestringUpdated username

Possible Errors

Error CodeHTTP StatusDescription
_ident_already_exists409Username is already taken in this domain

drumate.hub_to_pro

Upgrade free user account to Pro account with custom domain and organization

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.hub_to_pro

Parameters

ParameterTypeRequiredDefaultDescription
identstringYes-Domain identifier (subdomain)
namestringYes-Organization name

Returns

FieldTypeDescription
idstringDomain ID
namestringDomain name (ident.drumee.com)
statusstringStatus code (PRO_USER, NAME_NOT_AVAILABLE, or URL_NOT_AVAILABLE if failed)

Possible Errors

Error CodeHTTP StatusDescription
PRO_USER400User is already a Pro account
NAME_NOT_AVAILABLE409Organization name is already taken
URL_NOT_AVAILABLE409Domain identifier is already taken

drumate.helpdesk

Get paginated helpdesk messages in user's language

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.helpdesk

Parameters

ParameterTypeRequiredDefaultDescription
XlangstringNo-Language code (defaults to user's language)
pagenumber (min: 1)No1Page number for pagination

Returns

FieldTypeDescription
messagesarray<object>Array of helpdesk message objects
messages[].idstringMessage ID
messages[].metadataobjectMessage metadata (parsed from JSON)

drumate.change_mobile

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.change_mobile

drumate.check_password

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.check_password

drumate.color_add

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.color_add

drumate.color_last

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.color_last

drumate.contacts

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.contacts

drumate.drumate_hubs

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.drumate_hubs

drumate.font_add

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.font_add

drumate.font_last

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.font_last

drumate.get_drumate_detail

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.get_drumate_detail

drumate.get_languages

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/drumate.get_languages

drumate.hubs

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.hubs

drumate.intro_acknowledged

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)
LoggingEnabled

Endpoint:

https://hostname/-/svc/drumate.intro_acknowledged

drumate.my_contacts

Alias for contacts


drumate.prepare_data_backup

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.prepare_data_backup

drumate.reset_forgot_password

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/drumate.reset_forgot_password

drumate.send_account_deletion_code

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.send_account_deletion_code

drumate.send_forgot_password_token

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/drumate.send_forgot_password_token

drumate.set_lang

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.set_lang

drumate.show_backup_log

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.show_backup_log

drumate.validate_account_deletion_code

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/drumate.validate_account_deletion_code

drumate.validate_forgot_password_token

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/drumate.validate_forgot_password_token

drumate.verify_email

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/drumate.verify_email

drumate.check_drumate_exist

No description provided

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/drumate.check_drumate_exist

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