# RelayShield Secret Scan Text

> RelayShield Secret Scan Text is a paid API for AI agents from api.relayshield.net, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-13).

Scans text, code, or diffs for leaked secrets and sensitive credentials, returning structured findings with severity and recommendations

## Facts

- Endpoint: POST https://api.relayshield.net/v1/payg/secret-scan-text?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relayshield-secret-scan-text-fd8411bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v2P2Czj0cnS1XgNk0M3M-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability relayshield-secret-scan-text-fd8411bf -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

RelayShield Landing Site

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relayshield-secret-scan-text-fd8411bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relayshield.net](https://www.zero.xyz/host/api.relayshield.net/llms.txt)
