Get Last Activity Of User
🕵️ Retrieve Last User Activity (Command: 26)
📘 Description
This endpoint returns how many seconds ago the user was last active, along with the exact timestamp of their last activity.
It is useful for tracking session inactivity, determining auto-logouts, or monitoring engagement.
📜Sample JSON Request (from your server to the RGS-CWS server)
{ "command": "26", "login": "demoaccount", "pass": "123456" , "apiusername": "123456" , "apipass": "123456" }🔐 Note: The input must be sent to the API URL, similarly to all the other commands. All field names and values are case-sensitive.
📥 Input Parameters (from your server to the RGS-CWS server)
*You must provide either
loginoruserid— not both.
📃Sample JSON Response (returned by CWS-RGS)
{ "seconds_ago": 121, "last_activity": "2025-07-04 14:45:39" }