Back to docs
API Reference
POST /intercept/prompt
POST
/api/v1/intercept/promptScans an LLM prompt for hardcoded secrets, PII, database credentials, private keys, and other policy violations.
Request
{
"prompt": string // Required. The full prompt text to scan.
}Response
{
"allowed": boolean,
"risk_score": number, // 0–100
"risk_rating": string, // "Low" | "Medium" | "High" | "Critical"
"treatment_strategy": string,// "Accept" | "Mitigate" | "Avoid"
"findings": [{
"rule_name": string,
"match_text": string,
"description": string
}],
"latency_ms": number
}