# 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-09-14).

Generates an HTTP Strict-Transport-Security (HSTS) header value given a max-age duration and optional subdomain inclusion flag

## Facts

- Endpoint: POST https://kihustle.tech/bot-bazaar/api/v1/hsts-header-generator
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hsts-header-generator-367da5b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EqoAeZQ9CI_pdRTw-T2vb

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-367da5b6 -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

Choose this endpoint when you need a programmatically generated, correctly formatted HSTS header string on demand — especially useful in automated deployment pipelines, security audits, or CI/CD workflows where headers need to be dynamically configured per environment without manual string construction.

## Known failure modes

- Invalid max_age type (non-integer) causing a 400 error
- Negative or zero max_age value rejected by validation
- Malformed request body returning an error response
- Payment failure via x402 protocol returning a 402 status
- Timeout or server unavailability returning a 5xx error

## 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 and a 'status' field indicating success, which can be directly inserted into a web server or CDN 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-367da5b6/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)
