# Delx Commerce HSTS Policy Check

> Delx Commerce HSTS Policy Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Validates an HTTP Strict-Transport-Security (HSTS) response header against configurable policy requirements, returning pass/fail with parsed max-age and subdomain details.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/hsts-policy-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-hsts-policy-check-5a076477
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a105f1ye-oXpaqJ07hZjX

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 delx-commerce-hsts-policy-check-5a076477 -d '<json body>'
```

Example prompt: Check this HSTS header to see if it passes policy with a minimum max-age of 31536000 seconds and subdomains required: 'max-age=31536000; includeSubDomains; preload'

## When to prefer this

Use this endpoint when you need a deterministic, auditable, no-signup HSTS header policy check paid per-call in USDC without storing your data. Prefer it over rolling your own parser when you need a verifiable evidence trail (input hash, zero external calls, no retention) or when running inside an autonomous agent workflow that needs a lightweight, pay-as-you-go security validation step.

## Known failure modes

- Header string missing or empty — validation cannot proceed
- max-age value in header is below the specified minimum_seconds threshold — returns passed:false
- includeSubDomains directive absent when require_subdomains is true — returns passed:false
- Malformed or unparseable HSTS header string — may return an error or failed parse result
- Header exceeds 8192 character limit — rejected by schema validation

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object with a top-level pass/fail status, the parsed max_age_seconds, whether includeSubDomains is present, a SHA-256 hash of the input for auditability, a confirmation that no data was retained and no external calls were made, and the operation identifier 'web_reliability:hsts_policy_check'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to HSTS Policy Check; used only for this bounded calculation and processed in memory without retention."
  },
  "minimum_seconds": {
   "type": "integer",
   "description": "Minimum Seconds supplied to HSTS Policy Check; used only for this bounded calculation and processed in memory without retention."
  },
  "require_subdomains": {
   "type": "boolean",
   "description": "Require Subdomains supplied to HSTS Policy Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "passed": true,
   "max_age_seconds": 31536000,
   "include_subdomains": true
  },
  "schema": "delx/util-hsts-policy-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f91d8b16767bb6c1225e616e67c4c99626e188225729eb1a7745334aa6398a81",
   "external_calls": 0
  },
  "operation": "web_reliability:hsts_policy_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-hsts-policy-check-5a076477/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
