# Cookie Expiry Check

> Cookie Expiry Check is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Validates a cookie's Max-Age or Expires duration against a caller-supplied maximum allowed lifetime and returns a deterministic pass/advisory verdict.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/cookie-expiry-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cookie-expiry-check-9369c79c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eB1-eB_R8EsOeQEpZOAlh

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

Example prompt: Check whether a cookie with a max-age of 86400 seconds is within the allowed maximum of 3600 seconds — I need a clear pass or advisory verdict before I cache this response.

## When to prefer this

Use this endpoint when you need a stateless, deterministic, single-purpose check on a cookie's Max-Age or Expires lifetime against a policy-defined maximum — especially inside agent pipelines that must validate web responses before accepting, caching, redirecting, or retrying them. Prefer this over custom logic when you want a versioned, auditable, JSON-structured verdict with no side effects.

## Known failure modes

- Missing or non-integer max_age_seconds or maximum_seconds fields return a validation error
- Negative or zero values for either parameter may produce unexpected advisory results
- Payment failure via x402 prevents the call from being processed
- Out-of-range integer values may cause computation errors

## How this service works

Cookie Expiry Check: Cookie Expiry Check checks Max-Age or Expires metadata against an allowed lifetime from bounded caller-supplied values without an external provider. Call Cookie Expiry Check before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Cookie Expiry Check as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-…

## Output

Returns versioned deterministic JSON containing: normalized web evidence (the supplied max_age_seconds and maximum_seconds values), the computed finding (whether the cookie lifetime exceeds the allowed maximum), and an explicit pass or advisory status indicating compliance.

## 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/cookie-expiry-check-9369c79c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
