{"uid":"cap_8U3HSwPfkyYKW7iMkpF5k","slug":"dopaminedesk-code-security-audit-api-d7635fa2","name":"DopamineDesk Code Security Audit API","description":"Scan supplied code with transparent deterministic rules for common secret, injection, shell, weak-hash, and Solidity risks. This is not a professional audit.","url":"https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/code_audit","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["code","language"],"properties":{"code":{"type":"string","description":"The source code snippet."},"language":{"type":"string","description":"Programming language (python, javascript, go, etc.)."}},"additionalProperties":true}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","engine","language","caveat","lines_scanned","findings_count","findings","marketplace_metadata"],"properties":{"caveat":{"type":"string"},"engine":{"type":"string"},"success":{"type":"boolean"},"findings":{"type":"array","items":{"type":"string"}},"language":{"type":"string"},"lines_scanned":{"type":"integer"},"findings_count":{"type":"integer"},"marketplace_metadata":{"type":"object","required":["data_mode","billable","availability","source"],"properties":{"source":{"type":"string"},"billable":{"type":"boolean"},"data_mode":{"type":"string"},"availability":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"caveat":"This is a fast heuristic scan, not a professional security audit.","engine":"deterministic_static_rules_v1","success":true,"findings":["[nested detail omitted from the challenge header; see the full example in /openapi.json]"],"language":"python","lines_scanned":2,"findings_count":1,"marketplace_metadata":{"source":"deterministic static rules","billable":true,"data_mode":"computed_service","availability":"operational"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6x_Xd943v-0K0-f95HkUR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes source code snippets for security vulnerabilities, SQL injection, secrets exposure, and risk level via pay-per-use USDC micropayment.","exampleAgentPrompt":"Can you audit this Python snippet for security vulnerabilities and tell me the risk level? Here's the code: `query = 'SELECT * FROM users WHERE id = ' + user_input`","exampleUseCases":[{"title":"Pre-deploy SQL injection check","prompt":"Before I push this to production, can you scan this Python database function for SQL injection vulnerabilities and tell me how severe they are?\n```python\ndef get_user(user_id):\n    query = 'SELECT * FROM users WHERE id = ' + str(user_id)\n    return db.execute(query)\n```"},{"title":"Detecting hardcoded secrets in code","prompt":"I inherited this JavaScript file and I'm worried someone hardcoded API keys or passwords in it — can you scan it for secrets and security risks and tell me what risk level it is?"},{"title":"Go service security audit before code review","prompt":"Can you run a security audit on this Go function before I submit my pull request? I want to know if there are any high-severity issues, what lines they're on, and what the overall risk level looks like."}],"resultDescription":"Returns a JSON object containing a list of identified issues (each with line number, vulnerability type, severity level, and description), an overall risk_level (e.g. 'high'), a list of any secrets_found, and a status field indicating completion.","failureModes":["Missing 'code' field returns validation error","Unsupported or misspelled language identifier may reduce detection accuracy","Very large code snippets may timeout or be truncated","Ambiguous or minified code may produce false positives or miss issues","Payment failure via x402 returns 402 response blocking execution"],"whenToPreferThis":"Choose this endpoint when you need fast, per-snippet static security analysis with pay-as-you-go USDC micropayment (no subscription), especially in agentic pipelines that need vulnerability classification with line-level detail and severity scoring for Python, JavaScript, Go, or other common languages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:34.718Z","isFirstParty":false}