{"uid":"cap_v2P2Czj0cnS1XgNk0M3M-","slug":"relayshield-secret-scan-text-fd8411bf","name":"RelayShield Secret Scan Text","description":"RelayShield Landing Site","url":"https://api.relayshield.net/v1/payg/secret-scan-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"diff":{"type":"string","description":"Optional: unified diff to scan instead of raw text"},"content":{"type":"string","description":"Text or code to scan for leaked secrets"},"filename":{"type":"string","description":"Optional: filename for context in findings"}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"found":false,"findings":[],"checked_at":"2026-09-25T12:00:00+00:00","bytes_scanned":40,"findings_count":0,"recommendation":"No secrets detected.","severity_counts":{},"highest_severity":null}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dOOmk6fTm__Sv6Q_Yekkd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans text, code, or diffs for leaked secrets and sensitive credentials, returning structured findings with severity and recommendations","exampleAgentPrompt":"Scan this code snippet for any leaked secrets or hardcoded credentials: 'const apiKey = \"sk-abc123xyz\"; const dbPassword = \"hunter2\";' — and tell me what you find and how severe it is.","exampleUseCases":[{"title":"Pre-commit credential leak check","prompt":"Before I commit this diff, can you scan it for any accidentally included API keys, passwords, or tokens? Here's the unified diff output from my git staging area."},{"title":"CI pipeline secret detection","prompt":"Scan this Python source file for any hardcoded secrets or credentials — it's called config.py — and let me know if anything looks dangerous before we ship it."},{"title":"Reviewing third-party code for secrets","prompt":"I just received some code from a vendor. Can you check this text for any leaked secrets, credentials, or sensitive tokens they may have accidentally left in?"}],"resultDescription":"Returns a JSON object indicating whether secrets were found (found: boolean), an array of findings with details, severity counts by level, the highest severity found, total bytes scanned, timestamp of the check, and a plain-language recommendation.","failureModes":["Empty content field returns an error or zero findings with no useful signal","Very large payloads may be truncated or rejected","Obfuscated or encoded secrets may not be detected","False positives on placeholder values like 'your-api-key-here'","Non-standard secret formats from niche providers may be missed"],"whenToPreferThis":"Choose this endpoint when you need a fast, per-call secret scanning check against raw text, code, or diffs without standing up a full static analysis pipeline. It is ideal for agent workflows that intercept code before commit, review, or deployment, and need lightweight pay-per-use secret detection without managing a self-hosted scanner.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:45:32.420Z","isFirstParty":false,"canonicalSlug":"relayshield-secret-scan-text-fd8411bf"}