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

# Get Eval Run Template

> Return a pre-filled eval run template for a single metric.

Auth: ``Bearer`` + ``X-Project-ID`` | ``X-API-Key`` + ``X-Project-Name``



## OpenAPI

````yaml /openapi.json get /evaluations/trace-runs/template
openapi: 3.1.0
info:
  title: PandaProbe API
  description: >-
    Open-source agent engineering platform — trace LLM calls, evaluate agent
    performance, and monitor AI pipelines.
  version: 0.1.0
  contact:
    name: PandaProbe
    url: https://www.pandaprobe.com
    email: support@pandaprobe.com
servers:
  - url: https://api.pandaprobe.com
    description: Production
security: []
tags:
  - name: health
    description: Service health and readiness probes.
  - name: user
    description: Authenticated user profile.
  - name: traces
    description: Trace ingestion, querying, updating, and analytics.
  - name: sessions
    description: Session-based trace aggregation and analytics.
  - name: evaluations
    description: Evaluation runs, scores, analytics, and monitoring.
  - name: organizations
    description: Organization management and membership.
  - name: projects
    description: Project CRUD within organizations.
  - name: api-keys
    description: API key lifecycle management.
paths:
  /evaluations/trace-runs/template:
    get:
      tags:
        - evaluations
      summary: Get Eval Run Template
      description: |-
        Return a pre-filled eval run template for a single metric.

        Auth: ``Bearer`` + ``X-Project-ID`` | ``X-API-Key`` + ``X-Project-Name``
      operationId: get_eval_run_template_evaluations_trace_runs_template_get
      parameters:
        - name: metric
          in: query
          required: true
          schema:
            type: string
            description: Metric name to build the template for
            title: Metric
          description: Metric name to build the template for
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvalRunTemplate'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - ApiKey: []
        - ProjectID: []
        - ProjectName: []
components:
  schemas:
    EvalRunTemplate:
      properties:
        metric:
          $ref: '#/components/schemas/MetricInfo'
        filters:
          $ref: '#/components/schemas/EvalRunFilters'
        sampling_rate:
          type: number
          title: Sampling Rate
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
      type: object
      required:
        - metric
        - filters
        - sampling_rate
        - model
      title: EvalRunTemplate
      description: Pre-filled template the dashboard renders as an editable form.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MetricInfo:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        category:
          type: string
          title: Category
        default_threshold:
          type: number
          title: Default Threshold
        prompt_preview:
          items:
            $ref: '#/components/schemas/PromptPreview'
          type: array
          title: Prompt Preview
      type: object
      required:
        - name
        - description
        - category
        - default_threshold
        - prompt_preview
      title: MetricInfo
      description: Full metric info including threshold and prompt previews.
    EvalRunFilters:
      properties:
        date_from:
          anyOf:
            - type: string
            - type: 'null'
          title: Date From
          description: >-
            ISO 8601 datetime string (e.g. '2025-01-15T00:00:00Z'). Include
            traces started on or after this time.
        date_to:
          anyOf:
            - type: string
            - type: 'null'
          title: Date To
          description: >-
            ISO 8601 datetime string (e.g. '2025-02-01T00:00:00Z'). Include
            traces started before this time (exclusive).
        status:
          anyOf:
            - $ref: '#/components/schemas/TraceStatus'
            - type: 'null'
          description: 'Trace status: PENDING, RUNNING, COMPLETED, or ERROR.'
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
          description: Exact session ID string. Only traces belonging to this session.
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: Exact user ID string. Only traces from this user.
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
          description: >-
            List of tag strings (e.g. ['production', 'v2']). Traces matching ANY
            of these tags are included.
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: >-
            Substring match on trace name (case-insensitive). E.g. 'booking'
            matches 'Flight Booking Agent'.
      type: object
      title: EvalRunFilters
      description: |-
        Trace filters for a filtered eval run.

        These mirror the GET /traces query parameters so the frontend can
        reuse the same filter UI components.
    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
    PromptPreview:
      properties:
        stage:
          type: string
          title: Stage
        prompt:
          type: string
          title: Prompt
      type: object
      required:
        - stage
        - prompt
      title: PromptPreview
      description: >-
        Actual LLM prompt text for one evaluation stage, rendered with sample
        data.
    TraceStatus:
      type: string
      enum:
        - PENDING
        - RUNNING
        - COMPLETED
        - ERROR
      title: TraceStatus
      description: High-level status of a trace.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
    ProjectID:
      type: apiKey
      in: header
      name: X-Project-ID
    ProjectName:
      type: apiKey
      in: header
      name: X-Project-Name

````