/api/v1/privacy/dsr/{id}/searchSearch for personal data linked to a DSR
Searches the org's data for the DSR subject. Both `subject_email` and `subject_id` are searched as aliases and results deduped (400 NO_TERM when the DSR has neither; 404 when the DSR does not exist). Internal coverage: traces (input/output ILIKE plus 6 metadata JSONB keys), eval_runs and security_scans and datasets (name), prompts (name + content), and audit_logs (metadata.subject_email). External coverage: every enabled `data_sources` connector (max 50), each walked for at most 200 objects / 60s with a 10kB sample per object; unimplemented or failing connectors are reported in `source_failures` rather than silently skipped. Side effects: when the search finds anything, the DSR's `dsr_request_items` are REPLACED with the findings; a zero-finding re-run leaves the previous items in place. Either way the DSR moves to status `in_review`. The response returns counts and provenance only — { found, summary, aliases_searched, sources_walked, source_failures, next } — not the finding rows, and results are unranked. Fetch the items themselves to review them.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.
Parameters
id in pathrequiredstringResponse
200 example
{
"success": true
}All status codes
Code samples
cURL
# {id} is shown with an EXAMPLE value — replace it with real values.
curl -X POST \
https://evalguard.ai/api/v1/privacy/dsr/00000000-0000-0000-0000-000000000000/search \
-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:
// {id} is shown with an EXAMPLE value — replace it with real values.
const res = await fetch("https://evalguard.ai/api/v1/privacy/dsr/00000000-0000-0000-0000-000000000000/search", {
method: "POST",
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:
# {id} is shown with an EXAMPLE value — replace it with real values.
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
response = requests.request("POST", "https://evalguard.ai/api/v1/privacy/dsr/00000000-0000-0000-0000-000000000000/search", headers=headers)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
)
// {id} is shown with an EXAMPLE value — replace it with real values.
func main() {
req, _ := http.NewRequestWithContext(context.Background(), "POST", "https://evalguard.ai/api/v1/privacy/dsr/00000000-0000-0000-0000-000000000000/search", 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)
}