> ## 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.

# Get Custom Harness Prompts

> Return taxonomy prompts from ``harness_prompts.jsonl`` for a custom harness.

Served by service-diamond; loads JSONL from the team custom-harness S3 path.
Does not read Trust Score ``prompt.jsonl``.

Returns an empty list if the file is missing or empty (e.g. harness still in DRAFT).

Requires agent:read permission.



## OpenAPI

````yaml /openapi/api.json get /v1/custom-harnesses/{harness_id}/prompts
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/{harness_id}/prompts:
    get:
      tags:
        - Diamond
        - custom-harnesses
      summary: Get Custom Harness Prompts
      description: >-
        Return taxonomy prompts from ``harness_prompts.jsonl`` for a custom
        harness.


        Served by service-diamond; loads JSONL from the team custom-harness S3
        path.

        Does not read Trust Score ``prompt.jsonl``.


        Returns an empty list if the file is missing or empty (e.g. harness
        still in DRAFT).


        Requires agent:read permission.
      operationId: get_custom_harness_prompts_v1_custom_harnesses__harness_id__prompts_get
      parameters:
        - name: harness_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Harness Id
        - 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)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HarnessPromptsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HarnessPromptsResponse:
      properties:
        prompts:
          items:
            $ref: '#/components/schemas/CustomHarnessPrompt'
          type: array
          title: Prompts
        count:
          type: integer
          title: Count
      type: object
      required:
        - count
      title: HarnessPromptsResponse
      description: >-
        Response model for taxonomy prompts from ``harness_prompts.jsonl`` (not
        ``prompt.jsonl``).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomHarnessPrompt:
      properties:
        dimension_name:
          type: string
          title: Dimension Name
        prompt_text:
          type: string
          title: Prompt Text
        pass_criteria:
          type: string
          title: Pass Criteria
        lineage:
          $ref: '#/components/schemas/CustomHarnessLineage'
      type: object
      required:
        - dimension_name
        - prompt_text
        - pass_criteria
        - lineage
      title: CustomHarnessPrompt
      description: >-
        A row from ``harness_prompts.jsonl`` (taxonomy / rich prompts for custom
        harnesses).
    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
    CustomHarnessLineage:
      properties:
        principle:
          type: string
          title: Principle
          default: ''
        theme:
          type: string
          title: Theme
          default: ''
        policy_section:
          type: string
          title: Policy Section
          default: ''
        persona:
          type: string
          title: Persona
          default: ''
        diagnostic_hooks:
          items:
            type: string
          type: array
          title: Diagnostic Hooks
      type: object
      title: CustomHarnessLineage
      description: >-
        Structured lineage for a custom-harness taxonomy prompt
        (``harness_prompts.jsonl``).

````