# Delx Commerce — Cookie Expiry Check

> Delx Commerce — Cookie Expiry 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 whether a cookie's max-age or lifetime falls within an acceptable policy window, returning a pass/fail result with verifiable evidence.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cookie-expiry-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-cookie-expiry-check-a0cb9d77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xr83ydylc02jx6HrJ3aVe

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-cookie-expiry-check-a0cb9d77 -d '<json body>'
```

Example prompt: Check whether a cookie with a max_age of 3600 seconds is within the allowed maximum of 7200 seconds — I need a pass/fail result with verifiable evidence that the input wasn't retained.

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, privacy-preserving check that a cookie's max-age value falls within a defined policy limit — especially in agent workflows where auditability (SHA-256 input hash, no-retention guarantee, zero external calls) matters. Prefer it over custom logic when you need a pay-per-call, no-signup micro-verification with cryptographic evidence suitable for compliance logs.

## Known failure modes

- Missing or non-integer max_age_seconds or maximum_seconds may return a 400 validation error
- If max_age_seconds exceeds maximum_seconds, status is 'fail' and within_policy is false — not an HTTP error
- Payment failure (x402) will block the call before computation occurs
- Malformed JSON body returns an error before any calculation

## 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' containing 'within_policy' (boolean) and 'lifetime_seconds' (integer), a 'status' field ('pass' or 'fail'), an 'operation' label, and an 'evidence' block with a SHA-256 hash of the input, a 'retained' flag (always false), and an external_calls count (always 0) confirming no data was persisted or leaked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max_age_seconds": {
   "type": "integer",
   "description": "Max Age Seconds supplied to Cookie Expiry Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_seconds": {
   "type": "integer",
   "description": "Maximum Seconds supplied to Cookie Expiry Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "within_policy": true,
   "lifetime_seconds": 3600
  },
  "schema": "delx/util-cookie-expiry-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "a491d02ddf4db75f7e8ad0e74d1e5993f6dbc44bed654b8e5abc0848ecc6bad3",
   "external_calls": 0
  },
  "operation": "web_reliability:cookie_expiry_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-cookie-expiry-check-a0cb9d77/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)
