API reference
Base URL: https://agentlasso.dev/api/v1 (self-hosted: your own origin + /api/v1).
Authentication
Every request carries your project's API key (from Settings), as either header:
Missing or invalid key: 401 with { "error": "…" }. All errors are JSON with an error message.
POST /telemetry
Send a production trace, as flat JSON or OpenTelemetry (OTLP/HTTP JSON), auto-detected. Fields, response and status codes: Send traces.
POST /eval-runs
Start a run of a golden dataset. You get back the test cases to send through your agent.
Request
Response 201
checks is the normalized list of what will be graded (see Checks reference). Use it to tell which test cases need the agent's reply and which only need its tool calls.
POST /eval-run-results
Report what your agent did for each test case. AgentLasso grades every check and returns the result. Results can be reported once per run.
Request
Response 200
ci_passis what your pipeline should act on: exit non-zero when it'sfalse.pass_rateis over graded test cases only. It'snull, andci_passisfalse, when nothing in the run had checks;ci_fail_reasonthen says so.judge_reasoningis a one-line summary of the checks. Despite the name, it doesn't involve an AI judge: AI judge checks aren't graded in CI yet and come back as not graded (see AI judge checks).
A complete example script and GitHub Actions workflow: Run golden tests in CI.
POST /sync-cluster (self-hosting)
The background classification job. A scheduler calls it with a shared secret (Authorization: Bearer <LOVABLE_CRON_SECRET>), not a project key. See Self-hosting.