While Galaxy's main use case is via an easy-to-use web interface, it also provides a REST API for programmatic access. There are interfaces provided in several languages, for example, Python support is available from BioBlend (https://bioblend.readthedocs.io).
Here, we are going to develop a script that will load a BED file into Galaxy and call a tool to convert it to GFF format. We will load the file via Galaxy's FTP server.