# Secret Redaction Preflight

> Secret Redaction Preflight is a paid API for AI agents from phion.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Detects and redacts common secret indicators (API keys, tokens, passwords, credentials) from a payload before it is transmitted to an external tool or service.

## Facts

- Endpoint: POST https://phion.systems/v1/paid/trust/secret-redaction-preflight
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/secret-redaction-preflight-054be188
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O-Gv-E-KKVmwO77NB2cQY

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 secret-redaction-preflight-054be188 -d '<json body>'
```

Example prompt: Before you send that payload to the external API, run a secret redaction preflight on it to detect and strip out any API keys, tokens, or passwords that might have ended up in the content.

## When to prefer this

Choose this endpoint when an AI agent is about to transmit data to an external tool, API, or logging service and needs a fast preflight check to ensure no credentials, API keys, tokens, or passwords are included in the outgoing payload. It is especially valuable in agentic pipelines where LLM-generated content may inadvertently echo secrets from system prompts or tool responses. Prefer this over manual pattern matching or generic data-egress filters when you need a lightweight, low-latency, per-call check focused specifically on secret indicators rather than broad data classification.

## Known failure modes

- Malformed or empty input payload returns a validation error
- Unknown or unsupported secret pattern formats may not be detected
- Very large payloads may exceed size limits or increase latency
- Encoded or obfuscated secrets (e.g. base64-encoded keys) may evade pattern matching
- Service unreachable returns a 402 or 5xx error requiring retry

## How this service works

Detect and redact common secret indicators before transmission

## Output

Returns the original payload with any detected secret indicators redacted or masked, along with a report of what was found (e.g. types of secrets detected, number of occurrences, redaction locations), enabling the caller to safely proceed with transmission or halt if necessary.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/secret-redaction-preflight-054be188/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phion.systems](https://www.zero.xyz/host/phion.systems/llms.txt)
