Get content of selected shape in powerpoint format

documentserver developer edition: docker 8.2.1.38

does any api in presentation section that allow me get the entire text content of selected shape like “This is a pen. This is a pen” will be returned when using it