{"uid":"cap_kwhJr_styhSETbpuUYbAs","slug":"api-the402-ai-6ef0294d","name":"the402.ai Secret Detection in Code","description":"Purchase: Secret Detection in Code","url":"https://api.the402.ai/v1/services/svc_f993cb1df9ff43f5/purchase","method":"POST","headers":{},"bodySchema":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.105","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.105/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.105","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.105","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xqv2rpUBqI72M5MVg3Ys8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.105","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans source code to detect secrets, credentials, API keys, and sensitive tokens that should not be committed or exposed","exampleAgentPrompt":"Scan this code snippet for any hardcoded secrets, API keys, or credentials that shouldn't be there: 'const DB_PASSWORD = \"mysecretpassword123\"; const API_KEY = \"sk-abc123xyz\";'","exampleUseCases":null,"resultDescription":"Returns a list of detected secrets found in the submitted code, including the type of secret (e.g. API key, password, token), its location or context within the code, and severity or confidence level for each finding","failureModes":["Empty or malformed code input returns error","Obfuscated or minified code may reduce detection accuracy","No secrets found returns empty results list","Payment failure prevents execution","Very large code files may be truncated or rejected"],"whenToPreferThis":"Use this endpoint when you need to detect hardcoded secrets, API keys, tokens, passwords, or other credentials in source code snippets or files — especially as a pre-commit check or code review step. Prefer this over generic static analysis tools when the specific goal is credential and secret leakage detection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T11:28:49.254Z","isFirstParty":false}