Sessions
List and inspect AI sessions for your tenant, including per-message details.
GET /dashboard/sessions
Returns a paginated list of AI sessions for your tenant, ordered by most recent activity.
Query parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
domain | string | — | Filter by domain (e.g. hiring) |
limit | integer | 20 | Results per page — max 100 |
offset | integer | 0 | Pagination offset |
Response:
Session status values:
| Status | Description |
|---|---|
active | Session is open and accepting messages |
ended | Session was explicitly closed |
expired | Session expired due to inactivity |
GET /dashboard/sessions/:sessionId
Returns the full session record including all messages.
Response:
Sessions are tenant-scoped — attempting to fetch a session belonging to another tenant returns 403 FORBIDDEN.
Message roles:
| Role | Description |
|---|---|
user | Input submitted by your end user |
assistant | Response generated by Liya Engine |
system | Internal context messages (rarely surfaced) |
Message content may contain [REDACTED] markers if PII auto-redaction is enabled. See Data Retention for redaction configuration.