POST Validate input for security threats
Analyze specific input for security threats including SQL injection, XSS, path traversal, and other common attack vectors
Analyze specific input for security threats including SQL injection, XSS, path traversal, and other common attack vectors
Authorization
BearerAuth AuthorizationBearer <token>
Send API keys and access tokens as Authorization: Bearer .
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/security/audit" \ -H "Content-Type: application/json" \ -d '{ "input": "Example input", "type": "example_type", "options": { "maxLength": 1, "required": true, "sanitize": true, "allowedChars": "Example allowedchars" } }'{ "data": { "validation_passed": true, "input_sanitized": true, "sanitized_value": "string", "threats_detected": true, "validation_errors": [ "string" ], "threats": [ { "type": "string", "severity": "low", "description": "string", "source": "string", "recommended_action": "string" } ], "security_recommendation": "string" }, "meta": { "validation_type": "string", "input_type": "string", "threats_found": 0, "highest_threat_severity": "low" }}{ "error": "string", "code": "string", "message": "string"}{ "error": "string", "code": "string", "message": "string"}{ "error": "string", "code": "string", "message": "string"}{ "error": "string", "code": "string", "message": "string"}