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

# List Custom Harnesses

> List custom harnesses for the specified team with pagination and filtering.

Returns paginated list of harnesses owned by the specified team.
Supports filtering by status.

Requires agent:read permission.



## OpenAPI

````yaml /openapi/api.json get /v1/custom-harnesses/
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/custom-harnesses/:
    get:
      tags:
        - Diamond
        - custom-harnesses
      summary: List Custom Harnesses
      description: >-
        List custom harnesses for the specified team with pagination and
        filtering.


        Returns paginated list of harnesses owned by the specified team.

        Supports filtering by status.


        Requires agent:read permission.
      operationId: list_custom_harnesses_v1_custom_harnesses__get
      parameters:
        - name: team_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: Team ID (required)
            title: Team Id
          description: Team ID (required)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Maximum number of results (default 10)
            default: 10
            title: Limit
          description: Maximum number of results (default 10)
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Number of results to skip for paging
            default: 0
            title: Offset
          description: Number of results to skip for paging
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/CustomHarnessStatus'
              - type: 'null'
            description: Filter by status
            title: Status
          description: Filter by status
        - name: agent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: Filter by agent ID
            title: Agent Id
          description: Filter by agent ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomHarnessListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CustomHarnessStatus:
      type: string
      enum:
        - draft
        - active
        - archived
        - failed
      title: CustomHarnessStatus
      description: Status values for custom harnesses.
    CustomHarnessListResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/CustomHarnessListItem'
          type: array
          title: Results
        total:
          type: integer
          title: Total
      type: object
      required:
        - results
        - total
      title: CustomHarnessListResponse
      description: Response model for paginated list of custom harnesses.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomHarnessListItem:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        status:
          $ref: '#/components/schemas/CustomHarnessStatus'
        created_at:
          type: integer
          title: Created At
        updated_at:
          type: integer
          title: Updated At
        agent_id:
          type: string
          format: uuid
          title: Agent Id
        agent_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Name
        policy_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Policy Ids
        persona_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Persona Ids
      type: object
      required:
        - id
        - name
        - status
        - created_at
        - updated_at
        - agent_id
      title: CustomHarnessListItem
      description: >-
        List-item model for a custom harness (id, name, status, timestamps,
        agent, policies, personas).


        Returned by the list endpoint; full details are available via get by id.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````