BMC Software Interview Question

How do you transfer files via sftp using selenium. Can you automate API using selenium?