Downloads a file with a specified ID.
File retrieved.
Resource moved.
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
const file = await api.files.download({id: 'my-file-id'}); // access the file ArrayBuffer to view the content console.log(file.data);
"string"