REST API Convert DocX to text

Is there a call in the REST API that will return a DocX file as plain text? I'm currently working on an OnlyOffice plugin that would get content from Alfresco and paste it within the OnlyOffice Online Editor. I'm limited to html and js pages (one of each) so Im using the REST API.

Theoretically, it is possible.But it's according to your version.To know the available transformations, you have to query via JMX (Alfresco: Name = ContentTransformer, Type = Configuration, org.alfresco.repo.content.transform.TransformerConfigMBean, getTransformationByExtension ()) or via http://localhost:8080/alfresco/Service/mimetypes?mimetype=*