| GET | /api/sessions |
| GET | /api/sessions/active |
| GET | /api/sessions/:id |
| GET | /api/sessions/:id/recording |
| POST | /api/sessions/:id/terminate |
List org sessions
GET/api/sessions
Operator+; list with filters.
Authentication: bearer token.
Permission: sessions.view_all.
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
userId | string | No | |
serverId | string | No | |
status | string | No | |
page | number | No | Default 1. At least 1. |
limit | number | No | Default 25. 1–100. |
bash
curl -X GET "https://shellius.example.com/api/sessions" \
-H "Authorization: Bearer $SHELLIUS_TOKEN"200 OK
json
{ "success": true, "data": { … } }Active sessions
GET/api/sessions/active
Operator+; all currently active sessions.
Authentication: bearer token.
Permission: sessions.view_all.
bash
curl -X GET "https://shellius.example.com/api/sessions/active" \
-H "Authorization: Bearer $SHELLIUS_TOKEN"200 OK
json
{ "success": true, "data": { … } }Session detail
GET/api/sessions/:id
Operator+; session detail.
Authentication: bearer token.
Permission: sessions.view_all.
Path parameters
| Name | Type | Notes |
|---|---|---|
id | string |
bash
curl -X GET "https://shellius.example.com/api/sessions/{id}" \
-H "Authorization: Bearer $SHELLIUS_TOKEN"200 OK
json
{ "success": true, "data": { … } }Download/decrypt session recording
GET/api/sessions/:id/recording
Operator+; stream the .cast file.
Authentication: bearer token.
Permission: sessions.view_recordings.
Path parameters
| Name | Type | Notes |
|---|---|---|
id | string |
bash
curl -X GET "https://shellius.example.com/api/sessions/{id}/recording" \
-H "Authorization: Bearer $SHELLIUS_TOKEN"200 OK
json
{ "success": true, "data": { … } }Force-terminate session
POST/api/sessions/:id/terminate
Force disconnect.
Authentication: bearer token.
Permission: sessions.terminate.
Path parameters
| Name | Type | Notes |
|---|---|---|
id | string |
bash
curl -X POST "https://shellius.example.com/api/sessions/{id}/terminate" \
-H "Authorization: Bearer $SHELLIUS_TOKEN"200 OK
json
{ "success": true, "data": { … } }