{"endpoint":"/api/dev/secrets-scan","method":"POST","service_trust":"https://defi-shield-hazel.vercel.app/api/trust-signal","free_check":{"endpoint":"https://defi-shield-hazel.vercel.app/api/free/token-check","method":"POST","price":"FREE","note":"Try before you buy — free basic token safety check with risk math."},"also_available_on":{"virtuals_acp":{"agent":"Authensor","agent_id":18805,"offerings":["pre_trade_safety","token_deep_scan","wallet_report","batch_seal"],"marketplace":"https://app.virtuals.io/acp/scan/agents","note":"Same service, accessible to 18,000+ autonomous agents on Virtuals Protocol."},"mcp_server":{"package":"devsecure-mcp","install":"npx devsecure-mcp","tools":67,"note":"Install as MCP server in Claude, Cursor, or any MCP-compatible client for direct tool access."},"bazaar":"https://defi-shield-hazel.vercel.app/.well-known/x402","agent_card":"https://defi-shield-hazel.vercel.app/.well-known/agent-card.json"},"powered_by":"DeFi Shield by Authensor","price":"$0.02","description":"Scan code or text for leaked secrets — AWS keys, GitHub tokens, Stripe keys, OpenAI keys, private keys (PEM/hex), JWTs, database URIs, Slack tokens, Google API keys, Twilio keys, SendGrid keys, passwords in URLs, and hardcoded credentials.","llm_usage_prompt":"Call this endpoint BEFORE committing code, sharing snippets, or processing user-submitted code. Provide the text/code in the 'code' field. Returns secrets_detected (boolean), total_found (count), and detailed findings with type, severity, line_number, and redacted_match. Detects 20+ secret patterns across AWS, GitHub, Stripe, OpenAI, crypto wallets, databases, and more. Costs $0.02.","params":{"code":"string (required) - Code or text to scan for secrets"},"exampleRequest":{"code":"const key = 'AKIA1234567890ABCDEF';\nconst db = 'mongodb://user:pass@host/db';"},"exampleResponse":{"secrets_detected":true,"total_found":2,"findings":[{"type":"aws_access_key","severity":"critical","line_number":1,"redacted_match":"AKIA12***DEF"},{"type":"mongodb_uri","severity":"critical","line_number":2,"redacted_match":"mongod***/db"}],"severity_summary":{"critical":2,"high":0,"medium":0},"lines_scanned":2,"patterns_checked":20,"response_time_ms":3}}