Skip to main content

Hosted Solutions

The ONLYOFFICE Hosted Solution exposes a REST API over HTTP for registering portals, listing and suspending them, and reading or changing their pricing plans.

Requests go to the Hosted Solution host, https://{host}:{port}, where the API listens on port 8092 by default. Every request must carry an Authorization header — see Authentication for the token format and for examples of generating one.

Set both the Content-Type and the Accept header to application/json. Responses are JSON; a failed request returns a non-200 status code and an error code in the body, listed in Errors.

Portal​

OperationMethodPath
List portalsGET/api/portal/get
Register a new portalPOST/api/portal/register
Delete a portalDELETE/api/portal/remove
Change portal activation statusPUT/api/portal/status
Validate portal namePOST/api/portal/validateportalname

Billing​

OperationMethodPath
Get tariffGET/api/tariff/get
Set tariffPUT/api/tariff/set

Objects​

ObjectDescription
TenantThe portal description.
TariffThe portal pricing plan.