CyberPanel automation with Python

So I’ve got a Linux server setup with cyber panel installed on it.
Now what i want to do is upload 1000 text files to the server via python on a Windows Operating System. Any ideas how i could establish a connection to cyber panel from Windows and create domains and sub-domains where files are to be stored. I would be extremely grateful for any hint or insight in this matter.

Note: I have already done an ssh access for basic file transfer using sftp to the Linux server in python using paramiko library. Now i have to it through Cyber panel so i can create domains and sub domains at run time