return only the subdir and hash for the document path in api calls