# WritersLogic HTTP Redirect Credential Leak Analyzer

> WritersLogic HTTP Redirect Credential Leak Analyzer is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Analyzes a supplied HTTP redirect chain to report per-hop credential header stripping, method changes, origin/scheme crossings, HTTPS downgrades, loops, and Fetch Standard limit violations — without making any real network requests.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/redirect-credential-check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-http-redirect-credential-leak-analyzer-302052ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bs9d2BYHijRxkFrv7lj82

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 writerslogic-http-redirect-credential-leak-analyzer-302052ff -d '<json body>'
```

Example prompt: I have a redirect chain starting at https://api.example.com/login — it goes 302 to https://auth.otherdomain.com/sso, then 301 to https://app.otherdomain.com/dashboard. I'm sending Authorization and Cookie headers. Can you check whether those headers get stripped at each hop and whether the POST method changes to GET anywhere?

## When to prefer this

Use this endpoint when you need to audit an HTTP redirect chain for credential leakage, method mutation, or security downgrade risks without executing any real HTTP requests. It is ideal for pre-flight analysis of OAuth flows, API proxy chains, CDN redirect rules, or any multi-hop redirect sequence where you want to know exactly which headers survive each hop according to the Fetch Standard. Prefer this over manual tracing when the chain has multiple hops, crosses origins, or involves mixed HTTP/HTTPS schemes.

## Known failure modes

- Hops array empty or missing required status/location fields — validation error returned
- Location value is a relative reference with no resolvable base URL — cannot compute origin crossing
- Status code outside allowed enum (301,302,303,307,308) — rejected with schema error
- More than 25 hops supplied — rejected at maxItems limit
- Header name values (not names) accidentally sent — service processes names only, values are not evaluated
- Public suffix list edge cases for exotic TLDs if not supplied via publicSuffixes — registrable-domain decisions may be incorrect

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A per-hop breakdown of the redirect chain, including: which header names (Authorization, Cookie, Proxy-Authorization, API-key-like, Referer) are stripped or forwarded at each hop; the HTTP method after the hop (accounting for 301/302 POST→GET collapse, 303, 307/308 preservation); whether each hop crosses an origin, scheme, or registrable domain boundary; whether an HTTPS→HTTP downgrade occurs; whether a redirect loop is detected; and whether the Fetch Standard 20-redirect limit is exceeded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hops": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "status",
     "location"
    ],
    "properties": {
     "status": {
      "enum": [
       301,
       302,
       303,
       307,
       308
      ],
      "type": "integer"
     },
     "location": {
      "type": "string",
      "maxLength": 2048,
      "description": "Location header value; relative references resolve against the previous URL."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 25,
   "minItems": 1
  },
  "method": {
   "enum": [
    "GET",
    "HEAD",
    "POST",
    "PUT",
    "PATCH",
    "DELETE"
   ],
   "type": "string",
   "description": "Initial request method. Default GET."
  },
  "requestUrl": {
   "type": "string",
   "maxLength": 2048,
   "description": "Initial absolute URL."
  },
  "publicSuffixes": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 100
   },
   "maxItems": 200,
   "description": "Extra public suffixes for registrable-domain decisions."
  },
  "requestHeaderNames": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 100
   },
   "maxItems": 40,
   "description": "Names of headers on the initial request. Never send values."
  },
  "clientStripsOnCrossOrigin": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 100
   },
   "maxItems": 40,
   "description": "Header names your client deletes on an origin change. Default: [\"authorization\"], the Fetch Standard rule."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-http-redirect-credential-leak-analyzer-302052ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
