---
title: "List agent sessions"
method: GET
path: "/api/v1/sessions"
tags: ["Sessions"]
---

# List agent sessions

`GET /api/v1/sessions`

## Request

- Base URL: `https://dashboard.sealgate.ai`
- URL: `https://dashboard.sealgate.ai/api/v1/sessions`
- Auth: HTTP bearer

List agent sessions the caller may see, with pagination, filtering, sorting, and full-text search.

## Query parameters

- `page` integer
- `per_page` integer
- `user_id` string
- `agent_name` string
- `status` string
- `sort_by` 'created_at' | 'last_activity_at' | 'duration_ms' | 'tool_call_count'
- `sort_order` 'asc' | 'desc'
- `q` string
- `risk` string

## Response `200`

A page of session summaries

- SessionSummaryPage
  - `items` SessionSummary[], required
    - `id` string, required: Session identifier
    - `correlation_id` string, required: Correlation ID linking related events
    - `session_token` string, nullable: Session token for token-based sessions; null otherwise
    - `user_id` string, required: Authenticated user ID
    - `user_email` string, required: User email address
    - `agent_name` string, required: Name of the AI agent
    - `agent_type` string, required: Type/category of the agent
    - `created_at` string, date-time, required: Session start timestamp
    - `last_activity_at` string, date-time, nullable: Timestamp of the last tool call activity
    - `duration_ms` integer, nullable: Total session duration in milliseconds
    - `tool_call_count` integer, required: Number of tool calls in this session
    - `status` string, required: Session status (active, completed, error)
    - `trifecta_flags` string[], required: Trifecta security flags triggered
    - `trifecta_disposition` string: Worst outcome of any trifecta write gated for approval: none, pending, approved, expired, denied
    - `trifecta_block_count` integer: Number of trifecta writes gated for approval this session
    - `block_severity` string: Severity of trifecta blocks: none, low, medium, high
    - `acl_level` string: Highest ACL level (PUBLIC, PRIVATE, SECRET)
    - `tool_names` string[]: Distinct tool names invoked in this session
  - `total` integer, required
  - `page` integer, required
  - `per_page` integer, required
  - `total_pages` integer, required

## Other responses

- `401`: Missing or invalid API key
- `422`: Request validation failed

---

[API](https://skmtc.dev/sealgate/apis/sealgate-management-api.md) · [All operations](https://skmtc.dev/sealgate/apis/sealgate-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sealgate/apis/sealgate-management-api/revisions/c9ca2e599065?raw)
