# CodePulse API – Pwned Password Checker

> CodePulse API – Pwned Password Checker is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks whether a given password has appeared in known data breaches, returning a breach count and pwned status

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/security/pwned-password
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-pwned-password-checker-b797fb9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pNk4JQR5ATXcPEa1P9IFT

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 codepulse-api-pwned-password-checker-b797fb9b -d '<json body>'
```

Example prompt: Can you check if the password 'Summer2023!' has ever appeared in a known data breach and tell me how many times it's been exposed?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call breach check without managing API keys or subscriptions. Ideal for agents that need on-demand credential validation at low volume ($0.01/call). Prefer this over HIBP direct API when you want x402 micropayment-based billing on Base with no registration required.

## Known failure modes

- Missing 'password' field in request body returns a validation error
- Empty string password may return unsupported or zero results
- Network timeout if upstream breach database is unavailable
- Unsupported password encoding or extremely long strings may fail
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Securly audits passwords against HaveIBeenPwned database leaks using k-Anonymity hashing locally.

## Output

Returns a JSON object indicating whether the password is pwned (boolean), how many times it has appeared in breach datasets (count), a confidence level ('high'), a data freshness date (e.g. '2026-06'), any warnings, and a disclaimer. Example: {result: {count: 839482, pwned: true}, confidence: 'high', data_as_of: '2026-06'}.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "password"
     ],
     "properties": {
      "password": {
       "type": "string",
       "description": "Password to verify"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "count": 839482,
   "pwned": true
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-pwned-password-checker-b797fb9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
