{"uid":"cap_yJhs8aT5cMM76FTz_TgS7","slug":"api-the402-ai-69e5baec","name":"Secret Detection in Code","description":"Purchase: Secret Detection in Code","url":"https://api.the402.ai/v1/services/svc_315eae8e88b74f50/purchase","method":"POST","headers":{},"bodySchema":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.263","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.263/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.263","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.263","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O61lNozPruBMW4U26ZFsi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.263","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans source code or text for exposed secrets, API keys, credentials, and sensitive tokens","exampleAgentPrompt":"Scan this code snippet for any exposed secrets, API keys, passwords, or credentials: `AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` and tell me what was found and how severe it is.","exampleUseCases":null,"resultDescription":"Returns a report of detected secrets found in the submitted code, including the type of secret (e.g. AWS key, GitHub token, password), its location or context within the code, and severity or confidence level of each finding.","failureModes":["Empty or missing code input returns an error","Overly large code payloads may be rejected or time out","Payment of $0.263 USDC not provided or insufficient funds causes 402 error","Malformed request body results in 400 error","False negatives: obfuscated or encoded secrets may not be detected"],"whenToPreferThis":"Use this endpoint when you need to detect hardcoded secrets, API keys, tokens, or credentials in source code or text snippets before committing, deploying, or sharing. Prefer this over general code analysis tools when the specific goal is security-focused secret scanning. Useful in CI/CD pipelines, pre-commit hooks automation, or agent-driven security audits.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T08:28:58.363Z","isFirstParty":false}