Basic conceptsONLYOFFICE Hosted Solutionv12.1
The ONLYOFFICE Hosted Solution is implemented as REST over HTTP using GET/POST. All the resources, like client creation, portal registration, etc, have their own URLs and are designed to be manipulated in isolation.
Authentication in the ONLYOFFICE Hosted Solution is managed via the HTTP authentication, i.e. every request must include the Authorization HTTP header. For information and examples please visit the Authentication section.
To identify the request and response format please make sure that both the Content-Type and Accept headers are set to application/json. The API methods are called without stating the format for the response and are returned in JSON format.
If a request succeeds, it will return a status code in the 200 range and a JSON-formatted response. Note that, in general, if a request causes a new record to be created, the response will use the 201 Created status. Any other successful operation will return a 200 status code.
If a request fails, a non-200 status code will be returned in JSON format, containing the error code and additional error information (if available) as the response content.
Possible error codes and their description
If you have any questions or feature requests about ONLYOFFICE Hosted Solution, please visit ONLYOFFICE forum (registration required).