api return list of documents