Overview
AccountList reads the manager's in-memory account keys, sorts them, and returns the names plus a count. It does not return cookies or other account credentials.
Usage
AccountList
With password protection enabled, send AUTH <password> | AccountList.
Complete Python example
import asyncio
import websockets
import json
URI = "ws://localhost:8765"
async def main():
async with websockets.connect(URI) as ws:
print("Connected to WebSocket server")
await ws.send("AccountList")
response = await ws.recv()
print(json.loads(response))
if __name__ == "__main__":
asyncio.run(main())
Example response
{
"ok": true,
"result": {
"action": "AccountList",
"accounts": ["Main", "Secondary"],
"count": 2
}
}