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

# List Results

> Lists eval results across runs, newest first: one per attempt by one agent, with the checks the judge failed and its reasons. Filter by `eval_id`, `agent` and `result` (use `result=failed` to see why evals fail). Each result has a `run_id` to pass to `GET /v2/eval-runs/{run_id}/trace` for the agent's step-by-step log. For totals across evals and agents, use `GET /v2/eval-results/summary` first.



## OpenAPI

````yaml /openapi.json get /v2/eval-results
openapi: 3.1.0
info:
  title: Lightsage Public API
  description: Public API for Lightsage CLI and external integrations.
  version: 1.0.0
servers:
  - url: https://api.lightsage.com
    description: Production
security: []
tags:
  - name: Status
    description: Check API availability and validate the calling API key.
  - name: Visibility
    description: >-
      Measure visibility, citations, competitors, and prompt performance across
      answer platforms.
  - name: Prompts
    description: Manage tracked prompts and topics, and inspect their stored runs.
  - name: Opportunities
    description: Review ranked opportunities computed from prompt visibility results.
  - name: Tasks
    description: Manage the persisted action queue and task lifecycle.
  - name: Library
    description: >-
      Track the pages you publish and the redirects you set up: their AI answer
      citations and agent visits per day, and whether each is helping.
  - name: Site Audits
    description: Review website audit results and page-level findings.
  - name: Agent Analytics
    description: >-
      See which coding agents, AI bots, and people visit your tracked sites,
      which pages they read, which pages return errors, and where the visits
      come from.
  - name: Evals
    description: Define eval tasks, judges, subjects, and saved configurations.
  - name: Eval Templates
    description: >-
      Select reusable judges, targets, schedules, metadata, and runtime settings
      with `POST /v2/eval-templates`, then copy only those settings into
      prompt-specific evals with `POST /v2/evals/batch`. Templates never contain
      prompts and remain independent from evals created from them.
  - name: Eval Runs
    description: Start eval runs and inspect their lifecycle state.
  - name: Eval Results
    description: Review completed eval outcomes and diagnostic details.
  - name: Agent Preference
    description: >-
      Compare your company head-to-head with a tracked competitor. Create a
      comparison with `POST /v2/agent-preference/evals`, run it with `POST
      /v2/eval-runs`, then read which company agents recommended.
  - name: Plugin Evals
    description: >-
      Download a day's ChatGPT plugin eval results: every run with and without
      the plugin, plus its insights report.
  - name: Agents
    description: List runnable coding-agent harness and model combinations.
  - name: Repositories
    description: Manage reusable Git repository workspaces.
  - name: Environments
    description: List reusable runtime environments without exposing secret values.
  - name: MCP Servers
    description: List reusable MCP server integrations without exposing credentials.
  - name: CLIs
    description: List reusable command-line interfaces without exposing setup commands.
  - name: Skills
    description: List reusable skills available to workflows and evals.
paths:
  /v2/eval-results:
    get:
      tags:
        - Evals
      summary: List Results
      description: >-
        Lists eval results across runs, newest first: one per attempt by one
        agent, with the checks the judge failed and its reasons. Filter by
        `eval_id`, `agent` and `result` (use `result=failed` to see why evals
        fail). Each result has a `run_id` to pass to `GET
        /v2/eval-runs/{run_id}/trace` for the agent's step-by-step log. For
        totals across evals and agents, use `GET /v2/eval-results/summary`
        first.
      operationId: v2_eval_results_list
      parameters:
        - name: days
          in: query
          required: false
          schema:
            type: integer
            maximum: 90
            minimum: 1
            default: 30
            title: Days
          description: Days up to today (UTC) to cover.
        - name: eval_id
          in: query
          required: false
          schema:
            type: string
            title: Eval Id
          description: Only this eval.
        - name: agent
          in: query
          required: false
          schema:
            type: string
            title: Agent
          description: >-
            Only this agent ID (`harness:model`), as `GET
            /v2/eval-results/summary` names it.
        - name: result
          in: query
          required: false
          schema:
            enum:
              - passed
              - failed
              - errored
            type: string
            title: Result
          description: >-
            `passed`, `failed` (graded and did not pass) or `errored` (never
            graded).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
          description: Results per page.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            title: Cursor
          description: '`next_cursor` from the previous page.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EvalResultsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - LightsageApiKeyAuth: []
components:
  schemas:
    V2EvalResultsListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/V2EvalResultsListItem'
          type: array
          title: Data
        count:
          type: integer
          title: Count
          description: The number of items in `data`.
        has_more:
          type: boolean
          title: Has More
          description: Whether more results match.
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Pass as `cursor` to get the next page.
      type: object
      required:
        - count
        - has_more
      title: V2EvalResultsListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    V2EvalResultsListItem:
      properties:
        id:
          type: string
          title: Id
          description: 'Result ID: one attempt by one agent.'
        eval_id:
          type: string
          title: Eval Id
        eval_name:
          type: string
          title: Eval Name
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
          description: >-
            The eval run the result belongs to. Pass it to `GET
            /v2/eval-runs/{run_id}/trace` for the agent's step-by-step log. Null
            for a result with no run on record.
        agent:
          type: string
          title: Agent
          description: Agent ID (`harness:model`).
        result:
          type: string
          enum:
            - passed
            - failed
            - errored
          title: Result
          description: >-
            `passed`, `failed` (graded and did not pass) or `errored` (never
            graded; see `error`).
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Why an errored attempt never ran.
        failed_checks:
          items:
            $ref: '#/components/schemas/V2EvalResultsFailedCheck'
          type: array
          title: Failed Checks
          description: The judge's checks this attempt failed, with the reasons.
        time_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Time Ms
          description: Agent time, in milliseconds.
        tool_calls:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tool Calls
        created_at:
          type: string
          title: Created At
      type: object
      required:
        - id
        - eval_id
        - eval_name
        - agent
        - result
        - created_at
      title: V2EvalResultsListItem
    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
    V2EvalResultsFailedCheck:
      properties:
        name:
          type: string
          title: Name
          description: The judge's check.
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        details:
          anyOf:
            - type: string
            - type: 'null'
          title: Details
          description: The judge's reason.
        deductions:
          items:
            type: string
          type: array
          title: Deductions
          description: What the judge took points off for.
      type: object
      required:
        - name
      title: V2EvalResultsFailedCheck
  securitySchemes:
    LightsageApiKeyAuth:
      type: apiKey
      in: header
      name: X-Lightsage-Api-Key

````

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