How to Download Media file from Media Gallery

Hello,

I would like to know if there is any way to download a file from a Media Gallery, I have the file ID, gallery ID, content ID information, etc.

I was reading the REST API documentation and couldn't make it work.

Any help is appreciated.

Regards.