x402 pay-per-call

Scan supplied text or a diff for secrets

Scan raw text content or a unified diff for exposed API keys, tokens and credentials, matched against the same pattern set used across RelayShield's corpus. Runs entirely locally with no external API call. Call before a commit, PR or pasted config ships with a live secret in it.

Billing. $0.05 in USDC per call over x402, on Base or Solana. No API key, no signup and no subscription. Send the request with no payment header, take the 402 challenge that comes back, pay it, and repeat the request. Only successful calls are charged.

post/v1/payg/secret-scan-text

Request

  • Base URL: https://api.relayshield.net
  • URL: https://api.relayshield.net/v1/payg/secret-scan-text
  • Auth: none required

Request body

contentstring

Raw file content to scan. Mutually exclusive with diff.

diffstring

Unified diff. Only added lines are scanned. Mutually exclusive with content.

filenamestring

Optional filename, echoed on each finding as file. Used with content.

Response

Payment settled and the check ran. ok is true and data holds the result.

oktrue required
dataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.