# CodePulse API – Hash Check (Security)

> CodePulse API – Hash Check (Security) 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 a given hash value against known threat intelligence databases and returns a clean/malicious verdict with confidence score and warnings.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/security/hash-check
- 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-hash-check-security-67418eaa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ASLdqT0mmehoIzr61JzEI

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-hash-check-security-67418eaa -d '<json body>'
```

Example prompt: Can you check if this hash is clean or associated with any known malware? Hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) no-API-key hash reputation check against threat intelligence, especially in an automated agent pipeline using x402 micropayments on Base. Prefer over full AV scanning services when you already have a hash and only need a reputation verdict rather than scanning a file directly.

## Known failure modes

- Unsupported hash format or length returns supported:false
- Unknown or novel hash not yet in threat databases may return low confidence
- Malformed POST body returns an error
- Hash from very recent malware may not yet be indexed, returning clean with low confidence
- Network timeout on the workers.dev edge function

## How this service works

Verifies file MD5/SHA256 threat signatures against open vulnerability directories.

## Output

Returns a JSON object containing the hash value, a boolean 'clean' flag indicating whether the hash is safe, an array of warnings if any threats are detected, a 'supported' flag indicating if the hash type is recognized, a confidence level (e.g. 'high'), and a data_as_of date indicating how current the threat intelligence is.

## 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": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "description": "MD5, SHA-1, or SHA-256 signature hash"
      }
     }
    },
    "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": {
   "hash": "e3b0c442...",
   "clean": 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-hash-check-security-67418eaa/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)
