Secrets and non-human identity

Scan supplied text or a diff for secrets

Pattern-scans content you send, with no external lookups. Built for pre-commit hooks and CI: send a unified diff and only added lines are scanned, so pre-existing secrets in a file do not block every commit that touches it. Priced well below secret-scan because this fires on every commit.

Billing. $0.05 per successful call. Failed calls are never billed. Charged against prepaid credits when the balance covers it, otherwise metered to your card. Threat Intelligence subscribers and AWS Marketplace bundle customers call this at no extra charge.

Note. The scanned content never reaches RelayShield's logs: only pattern names and counts are logged. Findings carry a fingerprint rather than the matched value.

post/v1/metered/secret-scan-text

Request

  • Base URL: https://api.relayshield.net
  • URL: https://api.relayshield.net/v1/metered/secret-scan-text
  • Auth: one of:
    • API key in header X-RS-API-KEY
    • HTTP bearer

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

Success. ok is true and data holds the result.

oktrue required

Changes

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