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

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.

# Read run results

> Every dataset row of a run with what the target predicted, plus one entry per evaluator per row. Runs older than the status cache need `experimentSlug` as well, since a run id is only unique within its experiment.



## OpenAPI

````yaml GET /api/v1/experiments/runs/{runId}/results
openapi: 3.1.0
info:
  title: LangWatch API
  description: LangWatch openapi spec
  version: 1.0.0
servers:
  - url: https://app.langwatch.ai
security:
  - project_api_key: []
paths:
  /api/v1/experiments/runs/{runId}/results:
    get:
      tags:
        - Experiments
      summary: Read run results
      description: >-
        Every dataset row of a run with what the target predicted, plus one
        entry per evaluator per row. Runs older than the status cache need
        `experimentSlug` as well, since a run id is only unique within its
        experiment.
      operationId: getApiExperimentsRunsByRunIdResults
      parameters:
        - in: path
          name: runId
          schema:
            type: string
            minLength: 1
          required: true
        - in: query
          name: experimentSlug
          schema:
            type: string
          description: >-
            Owning experiment. Required once the run has aged out of the status
            cache.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  experimentId:
                    type: string
                  runId:
                    type: string
                  projectId:
                    type: string
                  workflowVersionId:
                    type:
                      - string
                      - 'null'
                  progress:
                    type:
                      - number
                      - 'null'
                  total:
                    type:
                      - number
                      - 'null'
                  targets:
                    description: >-
                      Resolves the targetId each dataset row and evaluation
                      carries
                    anyOf:
                      - type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            type:
                              type: string
                            promptId:
                              type:
                                - string
                                - 'null'
                            promptVersion:
                              type:
                                - number
                                - 'null'
                            agentId:
                              type:
                                - string
                                - 'null'
                            evaluatorId:
                              type:
                                - string
                                - 'null'
                            model:
                              type:
                                - string
                                - 'null'
                            metadata:
                              anyOf:
                                - type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties:
                                    type:
                                      - string
                                      - number
                                      - boolean
                                - type: 'null'
                          required:
                            - id
                            - name
                            - type
                          additionalProperties: false
                      - type: 'null'
                  dataset:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: number
                        targetId:
                          type:
                            - string
                            - 'null'
                        entry:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties: {}
                        predicted:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties: {}
                        cost:
                          type:
                            - number
                            - 'null'
                        duration:
                          type:
                            - number
                            - 'null'
                        error:
                          description: >-
                            The engine's own string. Prefer domainError.code to
                            branch on
                          type:
                            - string
                            - 'null'
                        domainError:
                          description: >-
                            Set on rows written since failures started carrying
                            codes
                          type: object
                          properties:
                            code:
                              type: string
                              description: Stable failure code; branch on this
                            kind:
                              type: string
                              description: Deprecated alias of code, for older clients
                            message:
                              type: string
                            meta:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                            httpStatus:
                              type: number
                            fault:
                              description: >-
                                Who the failure is attributable to: customer,
                                platform, presumed_platform, provider
                              type: string
                            traceId:
                              type: string
                            spanId:
                              type: string
                            traceUrl:
                              type: string
                            retryable:
                              type: boolean
                            tips:
                              readOnly: true
                              type: array
                              items:
                                type: string
                            docsUrl:
                              type: string
                            reasons:
                              type: array
                              items: {}
                          required:
                            - code
                            - kind
                          additionalProperties: false
                        traceId:
                          type:
                            - string
                            - 'null'
                      required:
                        - index
                        - entry
                      additionalProperties: false
                    description: One row per dataset entry, with what the target predicted
                  evaluations:
                    type: array
                    items:
                      type: object
                      properties:
                        evaluator:
                          type: string
                        name:
                          type:
                            - string
                            - 'null'
                        targetId:
                          type:
                            - string
                            - 'null'
                        status:
                          type: string
                          enum:
                            - processed
                            - skipped
                            - error
                        index:
                          type: number
                        score:
                          type:
                            - number
                            - 'null'
                        label:
                          type:
                            - string
                            - 'null'
                        passed:
                          type:
                            - boolean
                            - 'null'
                        details:
                          type:
                            - string
                            - 'null'
                        cost:
                          type:
                            - number
                            - 'null'
                        duration:
                          type:
                            - number
                            - 'null'
                        inputs:
                          anyOf:
                            - type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                            - type: 'null'
                      required:
                        - evaluator
                        - status
                        - index
                      additionalProperties: false
                    description: One row per evaluator per dataset entry
                  timestamps:
                    type: object
                    properties:
                      createdAt:
                        type: number
                      updatedAt:
                        type: number
                      finishedAt:
                        type:
                          - number
                          - 'null'
                      stoppedAt:
                        type:
                          - number
                          - 'null'
                    required:
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                  completeness:
                    type: object
                    properties:
                      complete:
                        type: boolean
                      dataset:
                        type: object
                        properties:
                          received:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          expected:
                            anyOf:
                              - type: integer
                                minimum: 0
                                maximum: 9007199254740991
                              - type: 'null'
                        required:
                          - received
                          - expected
                        additionalProperties: false
                      evaluations:
                        type: object
                        properties:
                          received:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          expected:
                            anyOf:
                              - type: integer
                                minimum: 0
                                maximum: 9007199254740991
                              - type: 'null'
                        required:
                          - received
                          - expected
                        additionalProperties: false
                    required:
                      - complete
                      - dataset
                      - evaluations
                    additionalProperties: false
                    description: >-
                      What is stored against what the run reported. Results are
                      stored after they are reported, so a read can hold part of
                      a run: `complete` is false until the run has ended and
                      every reported row and evaluation is stored. `expected` is
                      null when the run reported no counts
                required:
                  - experimentId
                  - runId
                  - projectId
                  - dataset
                  - evaluations
                  - timestamps
                  - completeness
                additionalProperties: false
        '401':
          description: Missing or invalid API key, or the key lacks the permission
          content: {}
        '404':
          description: No such run in this project
          content: {}
      security:
        - project_api_key: []
components:
  securitySchemes:
    project_api_key:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: >-
        Project API key for sending traces and accessing project-scoped
        resources. Format: sk-lw-... (no underscore). Obtain one by creating a
        project via the Admin API or the LangWatch UI.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.