/api/v1/regression-testsList regression tests
Lists individual promoted regression cases from the `promoted_regression_tests` view — `dataset_cases` that were promoted from a vulnerability source, i.e. a red-team `security_finding` or a `simulation_turn`, so a fixed jailbreak stays pinned as an (input, expected_output) case. Read-only: this endpoint executes nothing and is not tied to a model-deploy hook. `projectId` is required (400 MISSING_PROJECT_ID); optional `datasetId` narrows to one golden suite and `sourceKind` must be 'security_finding' or 'simulation_turn' (400 BAD_SOURCE_KIND). `limit` is 1..500, default 100. Returns `{regressionTests, total, truncated}` newest-first by promoted_at, each row carrying dataset_id, input, expected_output, source_kind/source_id, attack_type and severity. The view is security_invoker, so it inherits dataset_cases RLS.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.
Response
200 example
{
"success": true
}All status codes
Code samples
cURL
curl -X GET \ https://evalguard.ai/api/v1/regression-tests \ -H "Authorization: Bearer $EVALGUARD_API_KEY"
TypeScript
// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
const res = await fetch("https://evalguard.ai/api/v1/regression-tests", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());Python
# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
response = requests.request("GET", "https://evalguard.ai/api/v1/regression-tests", headers=headers)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequestWithContext(context.Background(), "GET", "https://evalguard.ai/api/v1/regression-tests", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}