Create rest API using drupal VIEW to download the file/get binary

How can we create an API to download the protected files from Drupal. I have tried with Drupal View and getting the URL of the file but I couldn’t download the file without cookie header. We cannot use cookie header in the Mobile and just want to download using only the Base Auth.