Current JWT secret (auto-generated if TOR_JWT_SECRET not set):
Set TOR_JWT_SECRET environment variable to use a custom secret
curl -X POST http://your-server/admin/api.php?action=login \
-d "username=admin&password=yourpass"
curl -H "Authorization: Bearer YOUR_TOKEN" \
http://your-server/admin/api.php?action=status
Get status of all services
Get system statistics
Get list of hidden services
Control services (start/stop/restart)
POST data: service=tor-server&command=restart
Get authentication token
POST data: username=admin&password=yourpass