Skip to main content
POST

Authorizations

X-Lightsage-Api-Key
string
header
required

Body

application/json

Start an eval run using one of two flat request forms. Saved runs require eval_id and use saved simulation defaults unless the request replaces them. Direct create-and-run requests require prompts, judges, and agent. No separate mode field is required.

eval_id
string

Saved-run form only. Existing eval definition to run. Omit this field to use the direct create-and-run form.

Minimum string length: 1
configuration_id
string

Saved-run form only. Optional saved repository, environment, skills, and legacy tool configuration.

Minimum string length: 1
name
string

Direct create-and-run form only. Display name for the durable eval. Defaults to the first prompt.

Required string length: 1 - 160
prompts
string[] | null

Task prompts. Required in direct mode; in saved mode, replaces saved prompts for this launch. CLI clients expose repeatable --prompt.

Required array length: 1 - 20 elements
judges
string[] | null

Success criteria. Required in direct mode; in saved mode, replaces saved judges for this launch. CLI clients expose repeatable --judge.

Required array length: 1 - 20 elements
agent
string[] | null

Runnable agents from GET /v2/agents. Required unless the saved eval already has agents. CLI clients expose repeatable --agent.

Required array length: 1 - 10 elements
persona
string

Optional perspective for every attempt in this launch. It does not modify prompts or add a fan-out dimension.

Maximum string length: 160
clis
string[] | null

Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from GET /v2/clis; every other value is run as an installation command. In saved mode, an explicit empty array disables saved CLIs for this launch. CLI clients expose repeatable --cli.

Maximum array length: 20
mcps
(V2SavedMcpReference · object | V2InlineMcpDefinition · object)[] | null

Saved MCP references or inline portable definitions. In saved mode, an explicit empty array disables saved MCPs for this launch.

Maximum array length: 20
setup_commands
string[] | null

Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable --setup-command.

Maximum array length: 20
cleanup_commands
string[] | null

Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. In saved mode, an explicit empty array disables saved cleanup commands for this launch. CLI clients expose repeatable --cleanup-command.

Maximum array length: 20
runs
integer

Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run.

Required range: 1 <= x <= 20
tags
string[]

Direct create-and-run form only. Optional labels saved on the created eval. CLI clients may expose this string array as a repeatable --tag flag.

Maximum array length: 20
repository
string

Direct create-and-run form only. A saved repository ID, built-in alias such as nextjs-starter, or a public GitHub HTTPS URL.

Minimum string length: 1
env
Env · object
write-only

Write-only environment variables for this launch. Values are stored only in the queued job's private configuration.

skills
string[]

Additional public skill packages to install before the agent starts in either request form, using GitHub owner/repository references such as resend/resend-skills. CLI clients may expose this string array as a repeatable --skill flag.

Maximum array length: 20
skill_ids
string[]

Direct create-and-run form only. Reusable skill IDs from GET /v2/skills to install before the agent starts.

Maximum array length: 20
search_grounding
enum<string> | null

Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to default.

Available options:
disabled,
enabled,
default

Response

Successful Response

id
string
required

Run ID to use when polling eval-run status.

job_id
string
required

Alias of id for the durable parent job.

status
string
required

Terminal values: completed, failed, and cancelled. Recoverable interruptions are reported as running with stage retrying.

eval_id
string | null

Saved eval definition ID, including one created by a direct run.

eval_name
string | null

Display name captured for the eval when the run was created.

configuration_id
string | null
persona
string | null

Perspective applied to every attempt in this simulation.

agent
string[]

Runnable agents selected for this simulation.

prompt_count
integer
default:1

Number of prompts included in the simulation.

Required range: x >= 1
runs
integer
default:1

Independent attempts requested for every prompt-agent pair.

Required range: x >= 1
attempt_count
integer
default:1

Total concrete attempts after all fan-out dimensions.

Required range: x >= 1
stage
string | null
dispatch_id
string | null
progress
PublicEvalRunProgress · object
estimated_cost
number | null
error
string | null
created_at
string | null
started_at
string | null
completed_at
string | null