Download API endpoint