跳到主要内容

ONLYOFFICE DocSpace Settings API

The browsable version of this reference, with a request builder and code samples, is published at https://api.onlyoffice.com/docspace/api-backend/usage-api/.

All URIs are relative to https://yourportal.onlyoffice.com, where the host is the address of your DocSpace instance.

Access to DevTools​

MethodHTTP requestDescription
getTenantAccessDevToolsSettingsGET /api/2.0/settings/devtoolsaccessGet the Developer Tools access settings

Authorization​

MethodHTTP requestDescription
getAuthServicesGET /api/2.0/settings/authserviceGet the authorization services
saveAuthKeysPOST /api/2.0/settings/authserviceSave the authorization keys
testExternalDatabaseConnectionPOST /api/2.0/settings/authservice/externaldb/testTest external database connection

Banners visibility​

MethodHTTP requestDescription
getTenantBannerSettingsGET /api/2.0/settings/bannerGet the banners visibility

Common settings​

MethodHTTP requestDescription
closeAdminHelperPUT /api/2.0/settings/closeadminhelperClose the admin helper
completeWizardPUT /api/2.0/settings/wizard/completeComplete the Wizard settings
configureDeepLinkPOST /api/2.0/settings/deeplinkConfigure the deep link settings
deletePortalColorThemeDELETE /api/2.0/settings/colorthemeDelete a color theme
getDeepLinkSettingsGET /api/2.0/settings/deeplinkGet the deep link settings
getPaymentSettingsGET /api/2.0/settings/paymentGet the payment settings
getPortalColorThemeGET /api/2.0/settings/colorthemeGet a color theme
getPortalHostnameGET /api/2.0/settings/machineGet the portal hostname
getPortalLogoGET /api/2.0/settings/logoGet a portal logo
getPortalSettingsGET /api/2.0/settingsGet the portal settings
getSocketSettingsGET /api/2.0/settings/socketGet the socket settings
getSupportedCulturesGET /api/2.0/settings/culturesGet supported languages
getTenantAiAccessSettingsGET /api/2.0/settings/ai-accessGet the AI access settings
getTenantUserInvitationSettingsGET /api/2.0/settings/invitationsettingsGet the user invitation settings
getTimeZonesGET /api/2.0/settings/timezonesGet time zones
saveDefaultFolderPUT /api/2.0/settings/defaultfolderSet the default folder
saveDnsSettingsPUT /api/2.0/settings/dnsSave the DNS settings
saveMailDomainSettingsPOST /api/2.0/settings/maildomainsettingsSave the mail domain settings
savePortalColorThemePUT /api/2.0/settings/colorthemeSave a color theme
setTenantAiAccessSettingsPOST /api/2.0/settings/ai-accessSet the AI access settings
updateEmailActivationSettingsPUT /api/2.0/settings/emailactivationUpdate the email activation settings
updateInvitationSettingsPUT /api/2.0/settings/invitationsettingsUpdate the user invitation settings

Cookies​

MethodHTTP requestDescription
getCookieSettingsGET /api/2.0/settings/cookiesettingsGet the cookie lifetime settings
updateCookieSettingsPUT /api/2.0/settings/cookiesettingsUpdate the cookie lifetime settings

DocsCloud​

MethodHTTP requestDescription
calculateDevPackPOST /api/2.0/settings/docscloud/calculatedevpackCalculate the Docs Connect Dev Pack switch cost
createTenantQuotaReportPOST /api/2.0/settings/docscloud/tenant/quota/reportStart the Docs Connect quota report
getTenantGET /api/2.0/settings/docscloud/tenantGet the Docs Connect tenant
getTenantConfigGET /api/2.0/settings/docscloud/tenant/configGet the Docs Connect tenant configuration
getTenantInfoGET /api/2.0/settings/docscloud/tenant/infoGet the Docs Connect tenant information
getTenantQuotaGET /api/2.0/settings/docscloud/tenant/quotaGet the Docs Connect tenant quota
getTenantQuotaReportGET /api/2.0/settings/docscloud/tenant/quota/reportGet the Docs Connect quota report status
getTenantUsageGET /api/2.0/settings/docscloud/tenant/usageGet the Docs Connect tenant usage
startDocsCloudTrialPOST /api/2.0/settings/docscloud/trialStart the Docs Connect trial
switchToDevPackPOST /api/2.0/settings/docscloud/switchtodevpackSwitch Docs Connect to Docs Connect Dev Pack
terminateTenantQuotaReportDELETE /api/2.0/settings/docscloud/tenant/quota/reportTerminate the Docs Connect quota report
updateTenantConfigPUT /api/2.0/settings/docscloud/tenant/configUpdate the Docs Connect tenant configuration

Encryption​

MethodHTTP requestDescription
getStorageEncryptionProgressGET /api/2.0/settings/encryption/progressGet the storage encryption progress
getStorageEncryptionSettingsGET /api/2.0/settings/encryption/settingsGet the storage encryption settings
startStorageEncryptionPOST /api/2.0/settings/encryption/startStart the storage encryption

Greeting settings​

MethodHTTP requestDescription
getGreetingSettingsGET /api/2.0/settings/greetingsettingsGet greeting settings
getIsDefaultGreetingSettingsGET /api/2.0/settings/greetingsettings/isdefaultCheck the default greeting settings
restoreGreetingSettingsPOST /api/2.0/settings/greetingsettings/restoreRestore the greeting settings
saveGreetingSettingsPOST /api/2.0/settings/greetingsettingsSave the greeting settings

IP restrictions​

MethodHTTP requestDescription
getIpRestrictionsGET /api/2.0/settings/iprestrictionsGet IP restrictions
readIpRestrictionsSettingsGET /api/2.0/settings/iprestrictions/settingsGet IP restriction settings
saveIpRestrictionsPUT /api/2.0/settings/iprestrictionsSave IP restrictions
updateIpRestrictionsSettingsPUT /api/2.0/settings/iprestrictions/settingsUpdate IP restriction settings

License​

MethodHTTP requestDescription
acceptLicensePOST /api/2.0/settings/license/acceptActivate a license
getIsLicenseRequiredGET /api/2.0/settings/license/requiredCheck if a license is required
refreshLicenseGET /api/2.0/settings/license/refreshRefresh the license
uploadLicensePOST /api/2.0/settings/licenseUpload a license

Login settings​

MethodHTTP requestDescription
getLoginSettingsGET /api/2.0/settings/security/loginsettingsGet login settings
setDefaultLoginSettingsDELETE /api/2.0/settings/security/loginsettingsReset login settings
updateLoginSettingsPUT /api/2.0/settings/security/loginsettingsUpdate login settings

Messages​

MethodHTTP requestDescription
enableAdminMessageSettingsPOST /api/2.0/settings/messagesettingsEnable or disable administrator messages
sendAdminMailPOST /api/2.0/settings/sendadmmailSend a message to the administrator
sendJoinInviteMailPOST /api/2.0/settings/sendjoininviteSend an invitation email

Notifications​

MethodHTTP requestDescription
getNotificationChannelsGET /api/2.0/settings/notification/channelsGet notification channels
getNotificationSettingsGET /api/2.0/settings/notification/{type}Check notification availability
getRoomsNotificationSettingsGET /api/2.0/settings/notification/roomsGet muted rooms
setNotificationSettingsPOST /api/2.0/settings/notificationSet notification status
setRoomsNotificationStatusPOST /api/2.0/settings/notification/roomsMute or unmute a room

Owner​

MethodHTTP requestDescription
sendOwnerChangeInstructionsPOST /api/2.0/settings/ownerStart the portal owner change
updatePortalOwnerPUT /api/2.0/settings/ownerConfirm the portal owner change

Quota​

MethodHTTP requestDescription
getUserQuotaSettingsGET /api/2.0/settings/userquotasettingsGet the user quota settings
saveAiAgentQuotaSettingsPOST /api/2.0/settings/aiagentquotasettingsSave the AI Agent quota settings
saveRoomQuotaSettingsPOST /api/2.0/settings/roomquotasettingsSave the room quota settings
setTenantQuotaSettingsPUT /api/2.0/settings/tenantquotasettingsSave the tenant quota settings

Rebranding​

MethodHTTP requestDescription
deleteAdditionalWhiteLabelSettingsDELETE /api/2.0/settings/rebranding/additionalDelete the additional white label settings
deleteCompanyWhiteLabelSettingsDELETE /api/2.0/settings/rebranding/companyDelete the company white label settings
getAdditionalWhiteLabelSettingsGET /api/2.0/settings/rebranding/additionalGet the additional white label settings
getCompanyWhiteLabelSettingsGET /api/2.0/settings/rebranding/companyGet the company white label settings
getEnableWhitelabelGET /api/2.0/settings/enablewhitelabelCheck the white label availability
getIsDefaultWhiteLabelLogoTextGET /api/2.0/settings/whitelabel/logotext/isdefaultCheck the default logo text
getIsDefaultWhiteLabelLogosGET /api/2.0/settings/whitelabel/logos/isdefaultCheck the default white label logos
getLicensorDataGET /api/2.0/settings/companywhitelabelGet the licensor data
getWhiteLabelLogoTextGET /api/2.0/settings/whitelabel/logotextGet the white label logo text
getWhiteLabelLogosGET /api/2.0/settings/whitelabel/logosGet the white label logos
restoreWhiteLabelLogoTextPUT /api/2.0/settings/whitelabel/logotext/restoreRestore the white label logo text
restoreWhiteLabelLogosPUT /api/2.0/settings/whitelabel/logos/restoreRestore the white label logos
saveAdditionalWhiteLabelSettingsPOST /api/2.0/settings/rebranding/additionalSave the additional white label settings
saveCompanyWhiteLabelSettingsPOST /api/2.0/settings/rebranding/companySave the company white label settings
saveWhiteLabelLogoTextPOST /api/2.0/settings/whitelabel/logotext/saveSave the white label logo text
saveWhiteLabelSettingsPOST /api/2.0/settings/whitelabel/logos/saveSave the white label logos
saveWhiteLabelSettingsFromFilesPOST /api/2.0/settings/whitelabel/logos/savefromfilesSave the logos from files

SSO​

MethodHTTP requestDescription
getDefaultSsoSettingsV2GET /api/2.0/settings/ssov2/defaultGet the default SSO settings
getSsoSettingsV2GET /api/2.0/settings/ssov2Get the SSO settings
getSsoSettingsV2ConstantsGET /api/2.0/settings/ssov2/constantsGet the SSO settings constants
resetSsoSettingsV2DELETE /api/2.0/settings/ssov2Reset the SSO settings
saveSsoSettingsV2POST /api/2.0/settings/ssov2Save the SSO settings

Security​

MethodHTTP requestDescription
getEnabledModulesGET /api/2.0/settings/security/modulesGet enabled modules
getIsProductAdministratorGET /api/2.0/settings/security/administratorCheck product administrator
getPasswordSettingsGET /api/2.0/settings/security/passwordGet password settings
getProductAdministratorsGET /api/2.0/settings/security/administrator/{productId}Get product administrators
getWebItemSecurityInfoGET /api/2.0/settings/security/{id}Check module availability
getWebItemSettingsSecurityInfoGET /api/2.0/settings/securityGet module access settings
setAccessToWebItemsPUT /api/2.0/settings/security/accessSet access to modules in bulk
setProductAdministratorPUT /api/2.0/settings/security/administratorSet product administrator
setWebItemSecurityPUT /api/2.0/settings/securitySet module access
updatePasswordSettingsPUT /api/2.0/settings/security/passwordUpdate password settings

Statistics​

MethodHTTP requestDescription
getSpaceUsageStatisticsGET /api/2.0/settings/statistics/spaceusage/{id}Get the space usage statistics

Storage​

MethodHTTP requestDescription
getAllBackupStoragesGET /api/2.0/settings/storage/backupGet the backup storages
getAllCdnStoragesGET /api/2.0/settings/storage/cdnGet the CDN storages
getAllStoragesGET /api/2.0/settings/storageGet the portal storages
getAmazonS3RegionsGET /api/2.0/settings/storage/s3/regionsGet the Amazon S3 regions
getStorageProgressGET /api/2.0/settings/storage/progressGet the storage migration progress
resetCdnToDefaultDELETE /api/2.0/settings/storage/cdnReset the CDN storage settings
resetStorageToDefaultDELETE /api/2.0/settings/storageReset the storage settings
updateCdnStoragePUT /api/2.0/settings/storage/cdnUpdate the CDN storage
updateStoragePUT /api/2.0/settings/storageSwitch the portal storage

TFA settings​

MethodHTTP requestDescription
getTfaAppCodesGET /api/2.0/settings/tfaappcodesGet the TFA backup codes
getTfaConfirmDataGET /api/2.0/settings/tfaapp/confirmGet TFA confirmation data
getTfaSettingsGET /api/2.0/settings/tfaappGet the TFA settings
tfaAppGenerateSetupCodeGET /api/2.0/settings/tfaapp/setupGenerate the TFA setup code
tfaValidateAuthCodePOST /api/2.0/settings/tfaapp/validateValidate the TFA code
unlinkTfaAppPUT /api/2.0/settings/tfaappnewappUnlink the TFA application
updateTfaAppCodesPUT /api/2.0/settings/tfaappnewcodesRegenerate the TFA backup codes
updateTfaSettingsPUT /api/2.0/settings/tfaappUpdate the TFA settings
updateTfaSettingsLinkPUT /api/2.0/settings/tfaappwithlinkUpdate TFA settings with a link

Telegram​

MethodHTTP requestDescription
checkTelegramGET /api/2.0/settings/telegram/checkCheck the Telegram connection
linkTelegramGET /api/2.0/settings/telegram/linkGet the Telegram link
unlinkTelegramDELETE /api/2.0/settings/telegram/linkUnlink Telegram

Webhooks​

MethodHTTP requestDescription
createWebhookPOST /api/2.0/settings/webhookCreate a webhook
enableWebhookPUT /api/2.0/settings/webhook/enableSwitch a webhook on or off
getTenantWebhooksGET /api/2.0/settings/webhookGet the portal webhooks
getWebhookTriggersGET /api/2.0/settings/webhook/triggersGet the webhook triggers
getWebhooksLogsGET /api/2.0/settings/webhooks/logGet the webhook delivery log
removeWebhookDELETE /api/2.0/settings/webhook/{id}Remove a webhook
retryWebhookPUT /api/2.0/settings/webhook/{id}/retryRetry a webhook delivery
retryWebhooksPUT /api/2.0/settings/webhook/retryRetry webhook deliveries
updateWebhookPUT /api/2.0/settings/webhookUpdate a webhook

Webplugins​

MethodHTTP requestDescription
addWebPluginFromFilePOST /api/2.0/settings/webpluginsAdd a web plugin
deleteWebPluginDELETE /api/2.0/settings/webplugins/{name}Delete a web plugin
getWebPluginGET /api/2.0/settings/webplugins/{name}Get a web plugin by name
getWebPluginsGET /api/2.0/settings/webpluginsGet web plugins
updateWebPluginPUT /api/2.0/settings/webplugins/{name}Update a web plugin

Authorization​

cookieAuth​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

bearerAuth​

  • Type: HTTP Bearer Token authentication

asc_auth_key​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

Basic​

  • Type: HTTP basic authentication

Bearer​

  • Type: HTTP Bearer Token authentication (JWT)

ApiKeyBearer​

  • Type: API key
  • API key parameter name: ApiKeyBearer
  • Location: HTTP header

OAuth2​

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL:
  • Scopes:
    • read: Read access to protected resources
    • write: Write access to protected resources

OpenId​

x-signature​

  • Type: API key
  • API key parameter name: x-signature
  • Location: