DorkOS
ApiSessionsRunning

See every running chat

GET
/api/sessions/running

Every chat running right now, per agent, spin-offs, room turns and scheduled runs included: its title, a ready markdown link, whether it is working or waiting on an answer, and who started it. Every registered agent is listed, zero included, so you can see who is free. total is the live count for this server. A person’s own chat is counted in privateCount and never named. Use the link, never the id, when you tell a person about a chat.

Response Body

application/json

curl -X GET "https://example.com/api/sessions/running"
{  "total": 0,  "agents": [    {      "agentId": "string",      "name": "string",      "projectPath": "string",      "count": 0,      "privateCount": 0,      "chats": [        {          "id": "string",          "title": "string",          "link": "string",          "state": "running",          "spinOff": true,          "startedBy": {            "id": "string",            "title": "string"          }        }      ]    }  ],  "unassigned": {    "count": 0,    "privateCount": 0,    "chats": [      {        "id": "string",        "title": "string",        "link": "string",        "state": "running",        "spinOff": true,        "startedBy": {          "id": "string",          "title": "string"        }      }    ]  }}