Download backup zip via wget

Ill try with restore an new Linux Client.
Ill create a lttle script that download the client.
But in the client the tokens not included.
Ill try to download per wget and authkey, but i need an ses.
But how i get an session in terminal?
How can i get an backup zip via wget?
my link example
wget -O tokens.zip “http://xxx.xxx.xxx.xxx:55414/x?a=backups&lang=de&sa=zipdl&clientid=1&authkey=mysecretauthkey&backupid=173&path=%2F%2Frootfs%2Fusr%2Flocal%2Fvar%2Furbackup%2Ftokens

Only i add ses=7G4E88PWvq90XKP7sryciRLyw8HXXX
Then it works, but to get an ses i must click download button on website.
If i restore an machine, ive got no x-window.
Plain terminal. Also no Webbrowser

Thank you!
Sincerely Bonkersdeluxe

When you add new client at the UrBackup server after client added you got link for use in the terminal:
example:

TF=mktemp && wget "https://urb1.yourserver.com:55416/x?a=download_client&lang=en&clientid=24&authkey=DYCt5mJifh&os=linux" -O $TF && sudo sh $TF; rm -f $TF

Thank you!
Thats for the Client, but i would download a backup like this
wget -O tokens.zip “http://ip:55414/x?a=backups&ses=7G4E88PWvq90XKP7sryciRLyw8HYDL&lang=de&sa=zipdl&clientid=1&backupid=173&path=%2F%2Frootfs%2Fusr%2Flocal%2Fvar%2Furbackup%2Ftokens

I would download from a backup /usr/local/var/urbackup/tokens as tokens.zip
But i dont know, how i get an session (ses) over the terminal.
Thank you!
Sincerely Bonkersdeluxe