PhoneTrack: Get active Session(s) via API

Is it somehow possible to get the active phonetrack session(s) via an api call?

Background:
I want to write a script that forwards data to the phonetrack app, but without copying the token manually from the webinterface to the script, each time a new session is started.
This script needs to know the token/url to forward the data to a proper http endpoint.

This must be somehow possible, because the PhoneTrack Android App also has the feature Get session from the server that i found in the docs: