---
title: "List Sources"
method: GET
path: "/v1/api-performance/sources"
tags: ["Eval Setup"]
---

# List Sources

`GET /v1/api-performance/sources`

## Request

- Base URL: `https://api.lightsage.com`
- URL: `https://api.lightsage.com/v1/api-performance/sources`
- Auth: API key in header `X-Lightsage-Api-Key`

Returns the configured API Performance sources and their evaluation targets. Set `include_system` to include Lightsage-managed sources.

## Query parameters

- `include_system` boolean

## Response `200`

Successful Response

- PublicApiPerformanceSourcesResponse
  - `data` PublicApiPerformanceSource[], required
    - `id` string, required
    - `type` string, required: The source type: `rest_api`, `python_sdk`, `node_sdk`, or `cli`.
    - `label` string, required
    - `metadata` PublicApiPerformanceSourceMetadata
      - `api_base_url` string, nullable
      - `docs_url` string, nullable: Given to agents in the eval prompt.
      - `default_env_profile_id` string, nullable
      - `env_var_keys` string[]: Environment variable names; values are never returned.
      - `env_profiles` PublicEvalEnvProfileSummary[]
        - `id` string, required
        - `name` string, required
        - `env_var_keys` string[]: Environment variable names; values are never returned.
        - `updated_at` string, nullable: When this environment's name or variables last changed; null if unchanged since this field was introduced.
      - `models` string[]: Legacy model selection superseded by `targets`.
      - `eval_types` string[]
    - `targets` PublicApiEvalTarget[]
      - `id` string, nullable: The saved target ID, or null for targets derived from the legacy model selection.
      - `source_id` string, nullable: Source ID from GET /v1/api-performance/sources.
      - `target_type` 'text' | 'agent', required
      - `agent_id` string, nullable: Coding agent ID from GET /v1/api-performance/targets; required only for agent targets.
      - `model_id` string, required: text_models[].id for text targets, or an id from the agent's models list, both from GET /v1/api-performance/targets.
      - `frequency` 'daily' | 'every_other_day' | 'weekly' | 'manual': The run schedule. `manual` keeps the target available without scheduling it.
      - `enabled` boolean
      - `next_run_at` string, nullable
      - `last_run_at` string, nullable
      - `last_skipped_at` string, nullable
      - `skip_reason` string, nullable
      - `created_at` string, nullable
      - `updated_at` string, nullable
    - `operation_count` integer
    - `created_at` string, nullable
  - `meta` object: Response metadata containing `count`.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usesapient/apis/sapient-public-api.md) - [All operations](https://skmtc.dev/usesapient/apis/sapient-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usesapient/apis/sapient-public-api/revisions/14890dfe867e?raw)
