跳到主要内容

ONLYOFFICE DocSpace Portal 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.

Guests​

MethodHTTP requestDescription
getGuestSharingLinkGET /api/2.0/people/guests/{userId}/shareGet a guest sharing link

Payment​

MethodHTTP requestDescription
calculateWalletPaymentPUT /api/2.0/portal/payment/calculatewalletCalculate the wallet payment amount
changeTenantWalletServiceStatePOST /api/2.0/portal/payment/servicestateSwitch a wallet service
createCustomerMonthlyUsageReportPOST /api/2.0/portal/payment/customer/usage/monthly/reportStart the monthly usage report
createCustomerOperationsReportPOST /api/2.0/portal/payment/customer/operationsreportStart the operations report
createCustomerServiceUsageReportPOST /api/2.0/portal/payment/customer/usage/reportStart the service usage report
getAccountingServicePricesGET /api/2.0/portal/payment/accounting/prices/{serviceName}Get the service prices from the accounting service
getActiveServicesGET /api/2.0/portal/payment/activeservicesGet the active wallet services
getAiPricesGET /api/2.0/portal/payment/ai-pricesGet AI model prices
getCheckoutSetupUrlGET /api/2.0/portal/payment/checkoutsetupurlGet the checkout setup page URL
getCustomerBalanceGET /api/2.0/portal/payment/customer/balanceGet the customer balance
getCustomerInfoGET /api/2.0/portal/payment/customerinfoGet the customer information
getCustomerMonthlyUsageGET /api/2.0/portal/payment/customer/usage/monthlyGet the customer monthly usage
getCustomerMonthlyUsageReportGET /api/2.0/portal/payment/customer/usage/monthly/reportGet the monthly usage report status
getCustomerOperationsGET /api/2.0/portal/payment/customer/operationsGet the wallet operations
getCustomerOperationsReportGET /api/2.0/portal/payment/customer/operationsreportGet the operations report status
getCustomerServiceUsageGET /api/2.0/portal/payment/customer/usageGet the customer service usage
getCustomerServiceUsageReportGET /api/2.0/portal/payment/customer/usage/reportGet the service usage report status
getPaymentAccountGET /api/2.0/portal/payment/accountGet the billing account page
getPaymentCurrenciesGET /api/2.0/portal/payment/currenciesGet the billing currencies
getPaymentQuotasGET /api/2.0/portal/payment/quotasGet the purchasable quotas
getPaymentUrlPUT /api/2.0/portal/payment/urlGet the payment page URL
getPortalPricesGET /api/2.0/portal/payment/pricesGet the product prices
getQuotaPaymentInformationGET /api/2.0/portal/payment/quotaGet the current plan and limits
getRestrictedAiModelsGET /api/2.0/portal/payment/ai-model/restrictionsGet restricted AI models
getSubscriptionBalanceInfoGET /api/2.0/portal/payment/subscription/balanceGet the subscription balance information
getTenantWalletServiceSettingsGET /api/2.0/portal/payment/servicessettingsGet the wallet service settings
getTenantWalletSettingsGET /api/2.0/portal/payment/topupsettingsGet the auto top-up settings
getWalletServiceGET /api/2.0/portal/payment/walletserviceGet a wallet service
getWalletServicesGET /api/2.0/portal/payment/walletservicesGet wallet services
moveSubscriptionToWalletPOST /api/2.0/portal/payment/subscription/movetowalletMove the subscription to the wallet
sendPaymentRequestPOST /api/2.0/portal/payment/requestContact the sales team
setRestrictedAiModelsPUT /api/2.0/portal/payment/ai-model/restrictionsSet restricted AI models
setTenantWalletSettingsPOST /api/2.0/portal/payment/topupsettingsSet the auto top-up settings
terminateCustomerMonthlyUsageReportDELETE /api/2.0/portal/payment/customer/usage/monthly/reportTerminate the monthly usage report
terminateCustomerOperationsReportDELETE /api/2.0/portal/payment/customer/operationsreportTerminate the operations report
terminateCustomerServiceUsageReportDELETE /api/2.0/portal/payment/customer/usage/reportTerminate the service usage report
topUpDepositPOST /api/2.0/portal/payment/depositTop up the wallet
updatePaymentPUT /api/2.0/portal/payment/updateChange the subscription quantity
updateWalletPaymentPUT /api/2.0/portal/payment/updatewalletChange a wallet service quantity

Quota​

MethodHTTP requestDescription
getPortalQuotaGET /api/2.0/portal/quotaGet the portal quota
getPortalTariffGET /api/2.0/portal/tariffGet the portal tariff
getPortalUsedSpaceGET /api/2.0/portal/usedspaceGet the portal used space
getRightQuotaGET /api/2.0/portal/quota/rightGet the recommended quota
getUpcomingPaymentsGET /api/2.0/portal/tariff/upcomingGet upcoming payments

Settings​

MethodHTTP requestDescription
continuePortalPUT /api/2.0/portal/continueRestore a portal
deletePortalDELETE /api/2.0/portal/deleteDelete a portal
getPortalInformationGET /api/2.0/portalGet portal information
getPortalPathGET /api/2.0/portal/pathGet a path to the portal
sendDeleteInstructionsPOST /api/2.0/portal/deleteSend removal instructions
sendSuspendInstructionsPOST /api/2.0/portal/suspendSend suspension instructions
suspendPortalPUT /api/2.0/portal/suspendDeactivate a portal

Users​

MethodHTTP requestDescription
createInvitationLinkPOST /api/2.0/portal/users/invitationlinkCreate an invitation link
deleteInvitationLinkDELETE /api/2.0/portal/users/invitationlinkDelete an invitation link
getInvitationLinkGET /api/2.0/portal/users/invite/{employeeType}Get a legacy invitation link
getInvitationLinkByEmployeeTypeGET /api/2.0/portal/users/invitationlink/{employeeType}Get an invitation link by role
getPortalUsersCountGET /api/2.0/portal/userscountGet a number of portal users
getUserByIdGET /api/2.0/portal/users/{userId}Get a portal user
markGiftMessageAsReadPOST /api/2.0/portal/present/markMark a gift message as read
sendCongratulationsPOST /api/2.0/portal/sendcongratulationsSend congratulations
updateInvitationLinkPUT /api/2.0/portal/users/invitationlinkUpdate an invitation link

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: