# Security Posture Checker

> Security Posture Checker is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.025/call, status unknown (last checked 2026-09-15).

Analyzes the security posture of a public HTTPS URL, returning a grade, score, TLS details, HTTP security headers, and findings.

## Facts

- Endpoint: GET https://api.bakhour.ca/security/posture
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/security-posture-checker-e2975e9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OoP5TKH9XxbPH8EoJxnfR

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 security-posture-checker-e2975e9d
```

Example prompt: Can you check the security posture of https://example.com and give me a grade, score, and any security header or TLS issues you find?

## When to prefer this

Use this endpoint when you need a quick, deterministic, per-URL security posture assessment including TLS and HTTP header analysis for any publicly accessible HTTPS endpoint. Prefer it over manual audits or heavyweight scanners when you need a scored, structured result suitable for automated workflows or agent pipelines.

## Known failure modes

- Non-HTTPS or non-public URL provided — request rejected or returns error
- Target URL is unreachable or times out — scan fails with connection error
- Malformed URL input — schema validation error
- URL returns unexpected content type — partial or empty findings
- Payment not included or insufficient — 402 Payment Required response

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

A JSON object containing the analyzed URL, an overall security grade (e.g. 'B'), a numeric score (e.g. 80), TLS configuration details, HTTP security header analysis, and a list of specific security findings or issues detected.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public HTTPS URL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tls": {},
  "url": "https://example.com",
  "grade": "B",
  "score": 80,
  "headers": {},
  "findings": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/security-posture-checker-e2975e9d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
