Motion detection via http command?

In one of the cammands above the result was a session and a permanent token. The permanent token would survive a reboot.
-Henrik