{"uid":"cap_5fkM4j8ZpJAHuwWEMGJx-","slug":"agent-security-gateway-batch-security-scan-b9d29408","name":"Agent Security Gateway - Batch Security Scan","description":"Pay-per-request security APIs for autonomous AI agents using x402. Detect Japanese prompt injection, validate content, scan for threats, and perform pre-payment security checks. Built for USDC/Base payments.","url":"https://agent-security-gateway.onrender.com/api/security/batch","method":"POST","headers":{},"bodySchema":{"type":"object","required":["contents"],"properties":{"contents":{"type":"array"},"content_type":{"type":"string"}}},"responseSchema":{"type":"object","title":"BatchScanResponse","required":["results","summary","next_recommended"],"properties":{"results":{"type":"array","items":{"type":"object","title":"SecurityScanResponse","required":["risk_score","risk_level","threats_detected","safe_to_use","recommendations","sanitized_content","next_recommended"],"properties":{"risk_level":{"type":"string","title":"Risk Level"},"risk_score":{"type":"integer","title":"Risk Score"},"safe_to_use":{"type":"boolean","title":"Safe To Use"},"recommendations":{"type":"array","items":{"type":"string"},"title":"Recommendations"},"next_recommended":{"type":"object","title":"NextRecommendation","required":["api_name","url","reason","expected_improvement","price_usdc"],"properties":{"url":{"type":"string","title":"Url"},"reason":{"type":"string","title":"Reason"},"api_name":{"type":"string","title":"Api Name"},"price_usdc":{"type":"number","title":"Price Usdc"},"expected_improvement":{"type":"string","title":"Expected Improvement"}}},"threats_detected":{"type":"array","items":{"type":"string"},"title":"Threats Detected"},"sanitized_content":{"type":"string","title":"Sanitized Content"}}},"title":"Results"},"summary":{"type":"object","title":"Summary","additionalProperties":true},"next_recommended":{"type":"object","title":"NextRecommendation","required":["api_name","url","reason","expected_improvement","price_usdc"],"properties":{"url":{"type":"string","title":"Url"},"reason":{"type":"string","title":"Reason"},"api_name":{"type":"string","title":"Api Name"},"price_usdc":{"type":"number","title":"Price Usdc"},"expected_improvement":{"type":"string","title":"Expected Improvement"}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y_S3QOyJ8bilAcWxiaLRo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Batch-scans multiple content items for security threats including prompt injection, validates content safety, and returns risk scores with sanitized output for AI agents.","exampleAgentPrompt":"Before I process these 3 user messages, run a batch security scan on them to detect any prompt injection or threats — especially Japanese prompt injection — and tell me which ones are safe to use and what the risk scores are.","exampleUseCases":null,"resultDescription":"Returns an array of per-item security scan results each containing a risk_score (integer), risk_level (string), threats_detected (list), safe_to_use (boolean), sanitized_content, and recommendations; plus a batch summary and a next_recommended API suggestion for further security analysis.","failureModes":["Empty or malformed contents array returns validation error","Unsupported content_type may produce unexpected scan behavior","Payment failure via x402/USDC halts the request before scanning","Network timeout on large batches from Render.com cold starts","False negatives on novel prompt injection patterns not yet in detection rules"],"whenToPreferThis":"Use this endpoint when you need to security-check multiple content items in a single paid call rather than scanning one at a time; ideal for AI agents that receive batches of user inputs and need pre-processing threat assessment before acting on them, particularly when Japanese prompt injection is a concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:46.069Z","isFirstParty":false}