How to get all document models programmatically

With which Java-API can I get a list of all Document Models inside Dataservices?

I looked through ModelsService.java but haven’t found something suitable.

Hi @stefan-grey-canyon,

please use ModelsService.getAllHeadersByType("document") to load all the model headers that are for document models. From there, you can load the models using DocumentModelReadRepository.readModel for cacheable non-secured access to those models. Or use DocumentModelLoader.loadModel for cacheable and secured model load