API methods to download files