> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Watchtower Agents



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /watchtower/monitor/agents
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /watchtower/monitor/agents:
    get:
      tags:
        - watchtower
      summary: List Watchtower Agents
      operationId: watchtower-list_watchtower_agents
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 20
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - name: agent_type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/WatchtowerAgentType'
              - type: 'null'
            title: Agent Type
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/WatchtowerAgentStatus'
              - type: 'null'
            title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WatchtowerAgentListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
components:
  schemas:
    WatchtowerAgentType:
      type: string
      enum:
        - claude_code
        - codex
        - cursor
        - windsurf
        - opencode
        - openclaw
        - unknown
      title: WatchtowerAgentType
      description: Normalized local-agent classifications stored by Watchtower.
    WatchtowerAgentStatus:
      type: string
      enum:
        - active
        - idle
        - blocked
      title: WatchtowerAgentStatus
      description: Derived status for Watchtower agents in monitor APIs.
    WatchtowerAgentListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/WatchtowerAgentRead'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
          default: false
      type: object
      required:
        - items
      title: WatchtowerAgentListResponse
      description: Paginated response for Watchtower agents.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WatchtowerAgentRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        fingerprint_hash:
          type: string
          title: Fingerprint Hash
        agent_type:
          $ref: '#/components/schemas/WatchtowerAgentType'
        agent_source:
          type: string
          title: Agent Source
        agent_icon_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Icon Key
        raw_user_agent:
          anyOf:
            - type: string
            - type: 'null'
          title: Raw User Agent
        raw_client_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Raw Client Info
        auth_client_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Auth Client Id
        last_user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Last User Id
        last_user_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Last User Email
        last_user_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last User Name
        first_seen_at:
          type: string
          format: date-time
          title: First Seen At
        last_seen_at:
          type: string
          format: date-time
          title: Last Seen At
        blocked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Blocked At
        blocked_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Blocked Reason
        status:
          $ref: '#/components/schemas/WatchtowerAgentStatus'
        active_session_count:
          type: integer
          title: Active Session Count
          default: 0
        inactive_session_count:
          type: integer
          title: Inactive Session Count
          default: 0
      type: object
      required:
        - id
        - organization_id
        - fingerprint_hash
        - agent_type
        - agent_source
        - agent_icon_key
        - raw_user_agent
        - raw_client_info
        - auth_client_id
        - last_user_id
        - last_user_email
        - last_user_name
        - first_seen_at
        - last_seen_at
        - blocked_at
        - blocked_reason
        - status
      title: WatchtowerAgentRead
      description: Watchtower agent row for monitor list views.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth

````