# Delx Commerce — Expires Header Validate

> Delx Commerce — Expires 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-02).

Validates an HTTP Expires header by computing whether a given expiry epoch is non-negative and calculating the lifetime in seconds relative to a reference date epoch.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/expires-header-validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-expires-header-validate-143d74ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B9VEQSo9yAfWE5lveycY6

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-expires-header-validate-143d74ff -d '<json body>'
```

Example prompt: Check if an HTTP Expires header is valid: the current date epoch is 1700000000 and the expires epoch is 1700000300 — tell me whether it's non-negative and how many seconds the lifetime is.

## When to prefer this

Use this endpoint when an AI agent needs a verifiable, auditable validation of an HTTP Expires header with cryptographic evidence of the inputs processed (SHA-256 hash) and a guarantee of no data retention or external calls. Prefer it over manual time arithmetic when you need a pay-per-result, trustless computation result in an agent pipeline handling web caching or reliability checks.

## Known failure modes

- Missing or invalid date_epoch or expires_epoch integers — likely returns a validation error or non-pass status
- Malformed request body — likely returns a 400-level HTTP error
- Payment failure via x402 protocol — request not processed if USDC payment is not completed
- Negative lifetime (expires before date) — returns non_negative: false with a negative or zero lifetime_seconds

## 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: a 'result' object containing 'non_negative' (boolean) and 'lifetime_seconds' (integer); a 'status' field ('pass'/'fail'); an 'evidence' object with 'retained' (false), 'input_sha256' hash of inputs, and 'external_calls' count (0); plus schema and operation identifiers. Processing is in-memory with no data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "date_epoch": {
   "type": "integer",
   "description": "Date Epoch supplied to Expires Header Validate; used only for this bounded calculation and processed in memory without retention."
  },
  "expires_epoch": {
   "type": "integer",
   "description": "Expires Epoch supplied to Expires Header Validate; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "non_negative": true,
   "lifetime_seconds": 300
  },
  "schema": "delx/util-expires-header-validate/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "ffaeb927a9888a663105db7e7acc72e617fcdb3b01fc28c069de689945d7f1ce",
   "external_calls": 0
  },
  "operation": "web_reliability:expires_header_validate"
 }
}
```

## More

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