> ## 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 Scores For Trace

> Get the latest score per metric for a specific trace.

Returns one score per metric name, deduplicated by most recent
``created_at`` regardless of status. The dashboard uses this to
display a score overview panel for the trace.

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



## OpenAPI

````yaml /openapi.json get /evaluations/trace-scores/{trace_id}
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-scores/{trace_id}:
    get:
      tags:
        - evaluations
      summary: Get Scores For Trace
      description: |-
        Get the latest score per metric for a specific trace.

        Returns one score per metric name, deduplicated by most recent
        ``created_at`` regardless of status. The dashboard uses this to
        display a score overview panel for the trace.

        Auth: ``Bearer`` + ``X-Project-ID`` | ``X-API-Key`` + ``X-Project-Name``
      operationId: get_scores_for_trace_evaluations_trace_scores__trace_id__get
      parameters:
        - name: trace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Trace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TraceScoreResponse'
                title: >-
                  Response Get Scores For Trace Evaluations Trace Scores  Trace
                  Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - ApiKey: []
        - ProjectID: []
        - ProjectName: []
components:
  schemas:
    TraceScoreResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        trace_id:
          type: string
          format: uuid
          title: Trace Id
        name:
          type: string
          title: Name
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        status:
          $ref: '#/components/schemas/ScoreStatus'
        source:
          $ref: '#/components/schemas/ScoreSource'
        created_at:
          type: string
          title: Created At
        project_id:
          type: string
          format: uuid
          title: Project Id
        data_type:
          $ref: '#/components/schemas/ScoreDataType'
        eval_run_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Eval Run Id
        author_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Author User Id
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        environment:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment
        config_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Config Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        updated_at:
          type: string
          title: Updated At
      type: object
      required:
        - id
        - trace_id
        - name
        - value
        - status
        - source
        - created_at
        - project_id
        - data_type
        - eval_run_id
        - author_user_id
        - reason
        - environment
        - config_id
        - metadata
        - updated_at
      title: TraceScoreResponse
      description: Full trace score representation used by both list and detail endpoints.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScoreStatus:
      type: string
      enum:
        - SUCCESS
        - FAILED
        - PENDING
      title: ScoreStatus
      description: Outcome of a trace score evaluation attempt.
    ScoreSource:
      type: string
      enum:
        - AUTOMATED
        - ANNOTATION
        - PROGRAMMATIC
      title: ScoreSource
      description: |-
        Who produced the score judgment (not how it arrived).

        AUTOMATED -- the eval system's LLM judge produced this score
        ANNOTATION -- a human assigned this score manually
        PROGRAMMATIC -- external code submitted this score via API/SDK
    ScoreDataType:
      type: string
      enum:
        - NUMERIC
        - BOOLEAN
        - CATEGORICAL
      title: ScoreDataType
      description: Data type for a trace score value.
    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:
    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

````