API file transfer

Is it possible to transfer files to/from router like FTP, but with API?

Ekkas
PS:Is ‘scripting’ the correct group for API questions?