The public API uses API key authentication. It does not require browser login.
Base URL
All requests use this production base URL:Authenticate
Create an API key in the Lightsage dashboard:- Open Settings > API Keys.
- Click Create API key.
- Copy the key when it is shown.
X-Lightsage-Api-Key header:
Check API health
Verify that the public API is reachable:Explore endpoints
The sidebar groups endpoints by resource:- Status — health and authentication checks
- Prompts — Visibility prompt and topic workflows
- API Performance — eval runs, sources, targets, skills, and related resources
Create an eval simulation
POST /v2/evals stores a reusable simulation matrix. Prompts, judges, agents,
CLIs, and MCP servers are arrays. persona applies to every attempt, and runs
controls how many times each prompt-agent pair executes.
{"id": "<uuid>"} with
inline definitions. Eval definitions do not accept secret environment values.
Start an eval run
POST /v2/eval-runs accepts a saved eval or the same fields directly. This
example creates and queues eight attempts: