Scorecards API
Explicit results, runtime analytics, dashboards, provider pricing, and Value created.
Base URL:
https://lakeshark.dev/api/scorecards
Reads require scorecards.read. Writes require scorecards.write.
Runtime analytics
| Method | Path |
|---|---|
| GET | /v1/metrics/providers |
| GET | /v1/metrics/answer-sets |
| GET | /v1/metrics/configs?answer_set_id={id} |
| GET | /v1/metrics/scores |
| GET | /v1/metrics/scores?answer_set_id={id} |
| GET | /v1/answer-runs?answer_set_id={id}&limit=50 |
Runtime analytics cover requests, provider calls/failures, Knowledge hits, latency, scores, and token usage.
Explicit results
POST /v1/scorecards
GET /v1/scorecards
Example:
{
"model": "provider-model-name",
"metric": "accuracy",
"score": 0.94,
"config_version": "optional-version"
}
Normal AnswerSet Question API traffic records its runtime evidence automatically. Explicit Scorecards are useful for additional application or evaluation measurements.
Dashboards
| Method | Path |
|---|---|
| GET | /v1/dashboards/catalog |
| GET | /v1/dashboards |
| POST | /v1/dashboards |
| PUT | /v1/dashboards/{dashboard_id} |
| DELETE | /v1/dashboards/{dashboard_id} |
| GET | /v1/dashboards/{dashboard_id}/data |
The dashboard catalog defines the current supported metrics, visualizations, widths, colors, time ranges, and maximum panel count.
See Dashboards.
Provider pricing
GET /v1/provider-prices
POST /v1/provider-prices
DELETE /v1/provider-prices/{provider_connection_id}?model={model}
LakeShark uses automatic public model pricing where available. Workspace pricing overrides can represent negotiated or custom rates.
Value created
GET /v1/savings
Value reporting includes provider calls avoided, estimated provider spend, estimated spend avoided, and pricing coverage.
Coverage fields distinguish partial estimates from fully valued traffic.
See Value created.