# CodePulse Security HTTP Headers Checker

> CodePulse Security HTTP Headers 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).

Analyzes a URL's HTTP security headers and returns a security score with details on CSP, HSTS, and other header configurations.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/security/http-headers
- 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-security-http-headers-checker-1c112d39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7knkvFCMIkqxqB2x7aNc6

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-security-http-headers-checker-1c112d39 -d '<json body>'
```

Example prompt: Can you check the HTTP security headers on https://example.com and tell me if they have HSTS and CSP set up properly, and what the overall security score is?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call HTTP security header analysis without setting up API keys. It's ideal for spot-checking individual URLs for CSP, HSTS, and other security headers with a scored output. Prefer this over manual header inspection tools when you need machine-readable results with confidence ratings inside an automated agent workflow.

## Known failure modes

- Invalid or unreachable URL returns an error or unsupported flag
- URL with unusual schemes (non-HTTP/HTTPS) may not be supported
- Rate limiting or payment failure via x402 results in 402 response
- Ambiguous or redirect-heavy URLs may reduce confidence rating
- Temporary network issues at the target site may cause incomplete header reads

## How this service works

Queries target URL headers to score security configurations (HSTS, CSP, X-Frame-Options).

## Output

Returns a JSON object with a numeric security score (0-100), a breakdown of specific header statuses (e.g. csp: false, hsts: true), a list of warnings for missing or misconfigured headers, a 'supported' boolean, and a confidence level (e.g. 'high') along with a data freshness date.

## 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": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to parse"
      }
     }
    },
    "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": {
   "score": 80,
   "headers": {
    "csp": false,
    "hsts": 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-security-http-headers-checker-1c112d39/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)
