# Agent Secret Redactor

> Agent Secret Redactor is a paid API for AI agents from agent-product-normalizer.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-18).

Redacts common API keys, tokens, and private-key patterns from text before logging or agent handoff

## Facts

- Endpoint: GET https://agent-product-normalizer.vercel.app/api/v1/redact-secrets
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-secret-redactor-05633d57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FYx-fHt_zP3G4EOXNOeUc

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 agent-secret-redactor-05633d57
```

Example prompt: Before you hand off this context to the next agent, scrub it for any API keys, auth tokens, or private keys — here's the text: 'Authorization: Bearer sk-abc123xyz, AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'

## When to prefer this

Use this endpoint when an agent needs to sanitize text of credentials before logging, storing, or passing to another agent or LLM. Prefer this over manual regex when you need a fast, pre-built pattern library covering common formats like AWS keys, GitHub tokens, OpenAI keys, JWTs, and private keys without maintaining your own detection logic.

## Known failure modes

- Text exceeds 20,000 character limit — request will be rejected
- Novel or proprietary secret formats not covered by regex patterns may not be detected
- False positives may redact legitimate non-secret strings that match credential patterns
- GET method with long text may hit URL length limits — very long payloads should be chunked

## How this service works

Redact common API keys, tokens and private-key patterns before logging or handoff

## Output

Returns the input text with all detected API keys, bearer tokens, private keys, and other secret patterns replaced with redacted placeholders, preserving the surrounding text structure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 20000,
       "description": "Text to redact common credentials and secret-token patterns from"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-secret-redactor-05633d57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-product-normalizer.vercel.app](https://www.zero.xyz/host/agent-product-normalizer.vercel.app/llms.txt)
