Getting token for a live stream

then how do they get the token if not through the API?
I totally need any help or info