---
title: "Retrieve Eval Config"
method: GET
path: "/v1/api-performance/config"
tags: ["Eval Setup"]
---

# Retrieve Eval Config

`GET /v1/api-performance/config`

## Request

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

Returns the saved evaluation configuration. Secret values are never returned; environment variables appear by name only.

## Query parameters

- `source_id` string

## Response `200`

Successful Response

- PublicEvalConfigResponse
  - `models` string[], required: Legacy model selection superseded by `targets`.
  - `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_ids` string[], required
  - `custom_eval_ids` string[]
  - `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.
  - `default_env_profile_id` string, nullable
  - `source_id` string, nullable
  - `api_base_url` string, nullable
  - `can_configure_per_model_schedules` boolean

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