---
title: "List Watchtower Agent Sessions"
method: GET
path: "/watchtower/monitor/agents/{agent_id}/sessions"
tags: ["watchtower"]
---

# List Watchtower Agent Sessions

`GET /watchtower/monitor/agents/{agent_id}/sessions`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/watchtower/monitor/agents/{agent_id}/sessions`
- Auth: API key in cookie `fastapiusersauth`

## Path parameters

- `agent_id` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string, nullable
- `workspace_id` string, uuid, nullable
- `state` string, nullable

## Response `200`

Successful Response

- WatchtowerAgentSessionListResponse: Paginated response for Watchtower sessions.
  - `items` WatchtowerAgentSessionRead[], required
    - `id` string, uuid, required
    - `organization_id` string, uuid, required
    - `agent_id` string, uuid, nullable, required
    - `session_state` string, required
    - `auth_transaction_id` string, nullable, required
    - `auth_client_id` string, nullable, required
    - `oauth_callback_seen_at` string, date-time, nullable, required
    - `agent_session_id` string, nullable, required
    - `initialize_seen_at` string, date-time, nullable, required
    - `user_id` string, uuid, nullable, required
    - `user_email` string, nullable, required
    - `user_name` string, nullable, required
    - `workspace_id` string, uuid, nullable, required
    - `first_seen_at` string, date-time, required
    - `last_seen_at` string, date-time, required
    - `revoked_at` string, date-time, nullable, required
    - `revoked_reason` string, nullable, required
    - `status` 'active' | 'idle' | 'revoked', required: Derived status for Watchtower agent sessions in monitor APIs.
  - `next_cursor` string, nullable
  - `has_more` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
