Conversion API
The Conversion API documentation provides comprehensive details on how to handle document conversion tasks. Explore the following pages to understand the request and response structures, error codes, and supported conversion formats.
📄️ Request
For the interaction with the document conversion service the POST requests are used. The request parameters are entered in JSON format in the request body. The requests are sent to the https://documentserver/converter address where documentserver is the name of the server with the ONLYOFFICE Docs installed.
📄️ Response
The request result is returned in XML format. To receive a response in JSON format you need to specify the Accept header with the application/json value in the HTTP request (available from version 4.3). When forming the link to the resulting file, the same server name is used which was made the conversion request to.
📄️ Conversion tables
Below you can find tables with formats that are available for conversion in different types of editors.
📄️ Error codes
An error can occur during the conversion. Below you can find possible error codes and their description.