# HSTS Header Generator

> HSTS Header Generator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Generates HTTP Strict-Transport-Security (HSTS) header configuration values given a max-age and optional includeSubDomains flag

## Facts

- Endpoint: POST https://kihustle.tech/nexus/api/v1/hsts-header-generator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hsts-header-generator-531f402c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OdFqrNpgwOasZLX3xzsy1

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 hsts-header-generator-531f402c -d '<json body>'
```

Example prompt: Generate an HSTS header for me with a max-age of 31536000 seconds and include subdomains.

## When to prefer this

Use this endpoint when you need a quick programmatic way to generate correctly formatted HSTS header strings without manually constructing them — especially useful in automated DevOps pipelines, security auditing workflows, or when configuring web servers at scale. It is particularly suited to agents that need to emit ready-to-use HTTP header values on demand.

## Known failure modes

- Invalid or negative max_age integer — may return an error or unexpected header
- Missing required max_age field — endpoint may fail or return a default
- Non-boolean value for include_subdomains — type mismatch error
- Network timeout or server error returning unexpected JSON structure

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object with a 'result' field containing the generated HSTS header value or configuration, and a 'status' field indicating 'success'. The generated output can be directly applied to a web server configuration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max_age": {
   "type": "integer"
  },
  "include_subdomains": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hsts-header-generator-531f402c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
