How to get session id?

We run tests(TypeScript) on a remote machine, in Aerocube Moon. Some test download files there, and to get these files from there we need session id.