document cloud api wrapper