curl --request POST \
--url https://api.lightsage.com/v2/prompts/runs \
--header 'Content-Type: application/json' \
--header 'X-Lightsage-Api-Key: <api-key>' \
--data '
{
"prompt_ids": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
'{
"id": "<string>",
"job_id": "<string>",
"type": "prompts",
"source_type": "prompts",
"status": "pending",
"stage": "<string>",
"dispatch_id": "<string>",
"progress": {
"total": 0,
"queued": 0,
"running": 0,
"completed": 0,
"failed": 0,
"cancelled": 0,
"retrying": 0,
"interrupted": 0,
"percent": 0
},
"estimated_cost": 123,
"eval_count": 123,
"model_count": 123,
"error": "<string>",
"created_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>"
}{
"detail": "No configured prompt targets were found for this organization. Configure prompt targets first or choose targets for this run."
}{
"detail": {
"error": "Insufficient credits",
"required": 123,
"balance": 123
}
}{
"detail": "Your current plan does not include: cursor"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Background queue is not available"
}Run Prompts
Queue saved prompts on answer engines and coding agents.
Provide prompt_ids to run selected prompts, or omit them to run all active
prompts. By default the run uses the organization’s configured targets,
listed by GET /v2/prompts/targets.
Provide agent with IDs from GET /v2/agents to run the prompts on
specific coding-agent harnesses and models instead, for example to compare
how several coding tools answer the same developer question. Results
include mentions and citations. Saved prompt run settings apply to
coding-agent targets. The response returns a run ID to poll with
GET /v2/prompts/runs/{run_id}/status.
curl --request POST \
--url https://api.lightsage.com/v2/prompts/runs \
--header 'Content-Type: application/json' \
--header 'X-Lightsage-Api-Key: <api-key>' \
--data '
{
"prompt_ids": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
'{
"id": "<string>",
"job_id": "<string>",
"type": "prompts",
"source_type": "prompts",
"status": "pending",
"stage": "<string>",
"dispatch_id": "<string>",
"progress": {
"total": 0,
"queued": 0,
"running": 0,
"completed": 0,
"failed": 0,
"cancelled": 0,
"retrying": 0,
"interrupted": 0,
"percent": 0
},
"estimated_cost": 123,
"eval_count": 123,
"model_count": 123,
"error": "<string>",
"created_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>"
}{
"detail": "No configured prompt targets were found for this organization. Configure prompt targets first or choose targets for this run."
}{
"detail": {
"error": "Insufficient credits",
"required": 123,
"balance": 123
}
}{
"detail": "Your current plan does not include: cursor"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Background queue is not available"
}Body
Runnable agents from GET /v2/agents, each a coding-agent harness and model such as claude-code:claude-opus-5-5. Every selected prompt runs once on each agent, so you can compare how several coding tools and models answer the same question. When set, this run uses only these agents instead of the organization's configured targets, including answer engines, and saves nothing. Omit it to use the configured targets; change those with PUT /v2/prompts/targets. CLI clients expose repeatable --agent.
1 - 10 elementsResponse
Successful Response