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

> Returns built-in templates and enabled saved Git repositories. Pass an item's `id` directly as `repository` in a direct eval run. Public GitHub URLs are also accepted by eval runs but are not included in this list.



## OpenAPI

````yaml /openapi.json get /v2/repositories
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: Site Audits
    description: Review website audit results and page-level findings.
  - 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: 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/repositories:
    get:
      tags:
        - Repositories
      summary: List Repositories
      description: >-
        Returns built-in templates and enabled saved Git repositories. Pass an
        item's `id` directly as `repository` in a direct eval run. Public GitHub
        URLs are also accepted by eval runs but are not included in this list.
      operationId: v2_repositories_list
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2RepositoriesResponse'
      security:
        - LightsageApiKeyAuth: []
components:
  schemas:
    V2RepositoriesResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/V2Repository'
          type: array
          title: Data
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Contains `count`.
      type: object
      title: V2RepositoriesResponse
    V2Repository:
      properties:
        id:
          type: string
          title: Id
          description: >-
            Value to pass as `repository` in a direct eval run. Built-in
            templates use aliases such as `nextjs-starter`; saved repositories
            use their persisted IDs.
        kind:
          type: string
          enum:
            - template
            - saved
          title: Kind
          description: >-
            Whether the repository is a read-only built-in template or an
            organization-owned saved repository.
        name:
          type: string
          title: Name
        repo_url:
          type: string
          title: Repo Url
        ref:
          type: string
          title: Ref
        subdir:
          type: string
          title: Subdir
          default: ''
        install_steps:
          items:
            type: string
          type: array
          title: Install Steps
        framework:
          type: string
          enum:
            - fastify
            - nuxt
            - express
            - spa-js
            - angular
            - react
            - fastapi
            - vite
            - nextjs
            - custom
          title: Framework
          default: custom
        enabled:
          type: boolean
          title: Enabled
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - kind
        - name
        - repo_url
        - ref
        - enabled
      title: V2Repository
  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.