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" }