Install required libraries
Shell
Set up your credentials
Sign up on the dashboard and create an API key. Export the keys as environment variables:Shell
Step 1 — Submit a run
The payload has three parts: thetarget to test, the risk_categories to test for
(with the attacks to use), and an optional context describing your system.
202 Accepted. Nothing has run yet — you have a handle to a queued job:
JSON
The
status_url, results_url and websocket_url values are returned as upstream
/v1/... paths. Call them on the public API under the /rt/ prefix — for example
GET https://api.enkryptai.com/rt/runs/{run_id}.Step 2 — Track the run
PollGET /rt/runs/{run_id} until it reports a terminal state. Its status values are
lowercase: queued, running, paused, completed, failed, cancelled. The
terminal three are completed, failed and cancelled — paused is not terminal, and a
paused run resumes.
JSON
error object carries the reason.
Step 3 — Read the results
JSON
overall_asr and every asr are percentages from 0 to 100. coverage reports the
fraction of the requested scope that actually ran.
Step 4 — Drill into individual results
The summary tells you what failed. The records tell you how.JSON
Next steps
Map to a compliance framework
GET /rt/runs/{run_id}/compliance/{framework_id} re-expresses the same run against
OWASP LLM Top 10, EU AI Act, NIST AI RMF, MITRE ATLAS, ISO 42001 or AIUC-1.Get remediation
POST /rt/risk-mitigation/system-prompt turns a run summary into a hardened system
prompt; /rt/risk-mitigation/guardrails-policy turns it into a Guardrails policy.Widen the attack surface
basic is only the baseline. Add evasion and adaptive jailbreak techniques.Check your target first
POST /rt/model-health verifies Enkrypt AI can reach and call your target before you
spend a run on it.
