Token Capture
The bot logs in with the alt account's session Bearer token, read from the real client's own traffic. Every API call the bot makes is a grpc-web POST to https://api.rootapp.com carrying one header:
Authorization: Bearer <token>The token is the only thing the bot needs. How you read it is up to you: any setup that lets you inspect the official client's HTTPS requests on a machine where you are signed in as the alt account will work. This page describes the requirements, then gives one example recipe.
What is verified
These facts come from traffic captured during the framework's development, and they are the parts you can rely on:
- The client uses no certificate pinning, so a standard HTTPS intercepting proxy can read its API traffic once its CA is trusted.
- Every API request carries the
Authorization: Bearerheader, so any single captured request is enough. A voice join is a convenient trigger, not a requirement. - The token is not tied to the machine or IP that captured it. The bot uses it from a different host entirely.
- The client's API traffic ignores the Windows system proxy. A proxy configured only at OS level sees the updater and the login window, not the API calls. Whatever tooling you choose has to force the client process itself through the proxy.
Not yet verified: capture on macOS or Linux, and other Windows tooling. The recipe below is the one setup that has been run end to end, on a single Windows 11 machine. If you capture a token another way, the result is identical, because the bot only ever receives the token.
Example recipe: Windows, Proxifier, mitmproxy
You need a Windows PC with the Root client installed and signed in as the alt account (a saved session is enough, no re-login happens during the capture), plus mitmproxy and Proxifier.
Start mitmdump on
127.0.0.1:8080with an addon that logs requests toapi.rootapp.com(headers and bodies) to a file.Install the mitmproxy CA into the user Trusted Root store:
certutil -user -addstore Root mitmproxy-ca-cert.cerRemove it afterwards with:
certutil -user -delstore Root mitmproxyTurn the Windows system proxy OFF. In this setup the login leg (a browser window) follows the system proxy and fails through the intercepting proxy with a misleading "username or password wrong" error, on perfectly good credentials. The API traffic never used the system proxy anyway.
Configure Proxifier:
- Add a proxy server:
127.0.0.1:8080, type HTTPS. - Add a rule for the Root client executable (
Root.exe, under%LOCALAPPDATA%\Root\current\) pointing at that proxy. - Add a top rule sending
127.0.0.1targets Direct. Without it, Proxifier loops the proxy's own connections back into itself. - Leave the Default rule on Direct, so nothing else on the PC is intercepted.
- Add a proxy server:
Fully restart the Root client. Its API connections are long-lived sockets opened at startup, so arming the tap after the client is running captures nothing. No re-login is needed; the saved session sends the token on every request.
Use the client briefly (joining a voice channel for a few seconds is an easy trigger), then stop mitmdump.
Extract the token. In the capture, find any POST to
api.rootapp.comand copy theAuthorization: Bearer <token>value. That isROOT_TOKENfor.env. Treat it like a password: it is a full session credential for the alt account.
When the token dies
Token lifetime is unknown. The first captured token stayed valid for many hours of bot use, but it will eventually expire or be revoked. Logging out of the alt, changing its password, or "log out all devices" kills it immediately. The symptom is unmistakable: the bot's log fills with poll errors and every API call fails. The fix is to capture a fresh token and replace ROOT_TOKEN.
See also Troubleshooting.