---
title: "Get Agent Sessions"
method: GET
path: "/admin/agent-sessions"
tags: ["admin"]
---

# Get Agent Sessions

`GET /admin/agent-sessions`

Get all agent sessions, with optional filtering and pagination.
Only accessible by admin users.

## Query parameters

- `status` string, nullable — Filter by session status (active, completed, failed)
- `agent_type` string, nullable — Filter by agent type
- `skip` integer — Number of records to skip
- `limit` integer — Maximum number of records to return
- `sort_by` 'start_time' | 'end_time' — Field to sort by
- `sort_order` 'asc' | 'desc' — Sort order
- `start_date` string, nullable — Filter sessions starting from this date (ISO format)
- `end_date` string, nullable — Filter sessions until this date (ISO format)

## Response `200`

Successful Response

- AgentSessionResponse[]
  - `id` string, required
  - `user_id` string, required
  - `user_email` string, nullable
  - `room_name` string, required
  - `start_time` string, date-time, required
  - `end_time` string, date-time, nullable
  - `status` string, required
  - `agent_type` string, nullable
  - `session_id` string, nullable
  - `agent_data` object, nullable
  - `transcript` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
