{"info":{"title":"AgentGuard Prompt-Injection Scan API","version":"1.0.0","description":"Deterministic screening of untrusted text and tool output before an agent acts.","x-guidance":"Send untrusted UTF-8 text to POST /api/v1/scan before an autonomous agent acts on it. Complete the MPP HTTP 402 challenge, retry with the payment credential, then use risk_score and action to decide whether to allow, review, or block the content."},"openapi":"3.1.0","paths":{"/api/v1/scan":{"post":{"responses":{"200":{"description":"Structured risk verdict","content":{"application/json":{"schema":{"type":"object","properties":{"risk":{"type":"string","enum":["low","medium","high","critical"]},"risk_score":{"type":"integer","minimum":0,"maximum":100},"action":{"type":"string","enum":["allow","review","block"]},"findings":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"severity":{"type":"string"},"evidence":{"type":"string"},"explanation":{"type":"string"}},"required":["category","severity"]}}},"required":["risk","risk_score","action","findings"]}}}},"400":{"description":"Invalid JSON or missing text field"},"402":{"description":"Payment Required"},"413":{"description":"Request exceeds the 64 KB limit"}},"x-payment-info":{"offers":[{"amount":"10000","currency":"0x20c0000000000000000000000000000000000000","intent":"charge","method":"tempo","recipient":"0x11A4fDeb81008316a9166f1e832cccA1E72d21Ea"}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c0000000000000000000000000000000000000"}}]},"operationId":"scanPromptInjection","summary":"Scan untrusted text for prompt injection and secret exfiltration","tags":["Agent safety"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"text":{"type":"string","minLength":1,"maxLength":65536,"description":"Untrusted text, document content, message, or tool output to screen."}},"required":["text"]}}}}}}}}