API to just get the document