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

# Retrieve Summary

> Start here for any question about how evals are doing. Returns, in one call, totals for the last `days` days and the same number of days before: for every eval and every agent (harness and model), the attempts, pass rate, average agent time and average tool calls, and how the pass rate changed. Answers which evals got worse and which agents fail most without retrieving runs one at a time. To see the individual results behind these figures and the judge's reasons, use `GET /v2/eval-results`.



## OpenAPI

````yaml /openapi.json get /v2/eval-results/summary
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/summary:
    get:
      tags:
        - Evals
      summary: Retrieve Summary
      description: >-
        Start here for any question about how evals are doing. Returns, in one
        call, totals for the last `days` days and the same number of days
        before: for every eval and every agent (harness and model), the
        attempts, pass rate, average agent time and average tool calls, and how
        the pass rate changed. Answers which evals got worse and which agents
        fail most without retrieving runs one at a time. To see the individual
        results behind these figures and the judge's reasons, use `GET
        /v2/eval-results`.
      operationId: v2_eval_results_summary_retrieve
      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. The response also covers the same
            number of days before.
        - name: eval_id
          in: query
          required: false
          schema:
            type: string
            title: Eval Id
          description: Only this eval. Leave out for every eval.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EvalResultsSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - LightsageApiKeyAuth: []
components:
  schemas:
    V2EvalResultsSummary:
      properties:
        range:
          $ref: '#/components/schemas/V2EvalResultsSummaryRange'
        results:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Every eval in the response together, for the range.
        previous:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Every eval in the response together, for the range before.
        agents:
          items:
            $ref: '#/components/schemas/V2EvalResultsSummaryAgent'
          type: array
          title: Agents
          description: >-
            Each agent across every eval in the response, lowest pass rate
            first.
        evals:
          items:
            $ref: '#/components/schemas/V2EvalResultsSummaryEval'
          type: array
          title: Evals
          description: >-
            Each eval with attempts in either range, lowest pass rate first
            (evals with nothing graded last).
      type: object
      required:
        - range
        - results
        - previous
      title: V2EvalResultsSummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    V2EvalResultsSummaryRange:
      properties:
        start:
          type: string
          title: Start
          description: First day of the range (UTC), `YYYY-MM-DD`.
        end:
          type: string
          title: End
          description: Last day of the range (UTC), today.
        days:
          type: integer
          title: Days
        previous_start:
          type: string
          title: Previous Start
          description: First day of the range of the same length just before.
        previous_end:
          type: string
          title: Previous End
      type: object
      required:
        - start
        - end
        - days
        - previous_start
        - previous_end
      title: V2EvalResultsSummaryRange
    V2EvalResultsSummaryFigures:
      properties:
        runs:
          type: integer
          title: Runs
          description: Attempts in the range, graded or not.
        graded:
          type: integer
          title: Graded
          description: 'Attempts the judge graded: `runs` minus `errored`.'
        passed:
          type: integer
          title: Passed
          description: Graded attempts that passed.
        errored:
          type: integer
          title: Errored
          description: >-
            Attempts that never reached the judge (the agent crashed or the run
            could not start). They are left out of every rate and average.
        pass_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Pass Rate
          description: '`passed / graded` from 0 to 1. Null when nothing was graded.'
        time_ms_per_run:
          anyOf:
            - type: number
            - type: 'null'
          title: Time Ms Per Run
          description: Average agent time per graded attempt, in milliseconds.
        tool_calls_per_run:
          anyOf:
            - type: number
            - type: 'null'
          title: Tool Calls Per Run
          description: Average tool calls per graded attempt.
      type: object
      required:
        - runs
        - graded
        - passed
        - errored
      title: V2EvalResultsSummaryFigures
    V2EvalResultsSummaryAgent:
      properties:
        agent:
          type: string
          title: Agent
          description: >-
            Agent ID (`harness:model`). Pass it as `agent` to `GET
            /v2/eval-results`.
        results:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Figures for the range.
        previous:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Figures for the range before.
      type: object
      required:
        - agent
        - results
        - previous
      title: V2EvalResultsSummaryAgent
    V2EvalResultsSummaryEval:
      properties:
        eval_id:
          type: string
          title: Eval Id
        eval_name:
          type: string
          title: Eval Name
        results:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Figures for the range.
        previous:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Figures for the range before.
        pass_rate_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Pass Rate Change
          description: >-
            `results.pass_rate - previous.pass_rate`. Negative means the eval
            got worse. Null unless both ranges have at least 5 graded attempts.
        agents:
          items:
            $ref: '#/components/schemas/V2EvalResultsSummaryEvalAgent'
          type: array
          title: Agents
          description: This eval's figures for each agent, lowest pass rate first.
      type: object
      required:
        - eval_id
        - eval_name
        - results
        - previous
      title: V2EvalResultsSummaryEval
    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
    V2EvalResultsSummaryEvalAgent:
      properties:
        agent:
          type: string
          title: Agent
          description: Agent ID (`harness:model`).
        results:
          $ref: '#/components/schemas/V2EvalResultsSummaryFigures'
          description: Figures for the range.
        previous_pass_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Previous Pass Rate
          description: Pass rate in the range before. Null when nothing was graded.
      type: object
      required:
        - agent
        - results
      title: V2EvalResultsSummaryEvalAgent
  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.