# Delx Commerce — Age Header Validate

> Delx Commerce — Age Header Validate 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 Age header value against a maximum age threshold to determine if cached content is still within its freshness window

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/age-header-validate?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-age-header-validate-ce257117
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O1cmjoD6-gm7rE1OKvmoM

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-age-header-validate-ce257117 -d '<json body>'
```

Example prompt: Check if an HTTP Age header value of '120' is still fresh given a max age of 300 seconds.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, auditable HTTP Age header freshness check with verifiable evidence of no data retention and no external calls — ideal for AI agents that need to validate cache freshness within a web reliability pipeline without setting up dedicated infrastructure.

## Known failure modes

- Invalid or non-numeric Age header string may cause parsing errors
- Missing required fields (age or max_age_seconds) may result in a 400 error
- Age value exceeding string length limits (8192 chars) will be rejected
- Non-integer max_age_seconds will fail 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

Returns a JSON object with the parsed age in seconds, a boolean indicating whether the content is within the freshness window, a status field ('pass' or 'fail'), and an evidence object confirming no data retention and zero external calls — suitable for verifiable, auditable cache validation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "age": {
   "type": "string",
   "maxLength": 8192,
   "description": "Age supplied to Age Header Validate; used only for this bounded calculation and processed in memory without retention."
  },
  "max_age_seconds": {
   "type": "integer",
   "description": "Max Age Seconds supplied to Age Header Validate; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "age_seconds": 120,
   "within_freshness": true
  },
  "schema": "delx/util-age-header-validate/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f51799fd712f3514d51db5985cf250b2e699f3081571f017224fd7838e380cc7",
   "external_calls": 0
  },
  "operation": "web_reliability:age_header_validate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-age-header-validate-ce257117/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)
