# Cookie Security Check

> Cookie Security 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 cookie security attributes (Secure, HttpOnly, SameSite) against a caller-defined policy and returns a deterministic pass/advisory verdict

## Facts

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

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-security-check-de5e288b -d '<json body>'
```

Example prompt: Check this Set-Cookie header for security compliance — require the Secure and HttpOnly flags to be set, and only allow SameSite values of 'Strict' or 'Lax': 'session=abc123; Path=/; HttpOnly; SameSite=Strict'

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, deterministic validation of cookie security attributes against a caller-defined policy — without any external dependencies or data retention. Ideal for agents that must gate on cookie compliance before caching, redirecting, retrying, or accepting a web response. Prefer this over custom parsing logic when you need normalized evidence and an explicit pass/advisory verdict in a consistent JSON format.

## Known failure modes

- Malformed or missing Set-Cookie header may result in parsing errors or incomplete evidence
- Header exceeding 8192 character limit will be rejected
- Invalid or unsupported SameSite values in allowed_same_site list may produce unexpected advisory results
- Boolean fields (require_secure, require_http_only) omitted default to unchecked policy — may produce lenient results if not explicitly set

## How this service works

Cookie Security Check: Cookie Security Check checks Secure, HttpOnly, and SameSite attributes against policy from bounded caller-supplied values without an external provider. Call Cookie Security 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 Security Check as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless…

## Output

Returns versioned deterministic JSON containing: normalized evidence extracted from the Set-Cookie header (Secure, HttpOnly, SameSite attribute values), a computed security finding describing any policy violations, and an explicit pass or advisory status indicating whether the cookie meets the caller-supplied policy requirements.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Cookie Security Check; used only for this bounded calculation and processed in memory without retention."
  },
  "require_secure": {
   "type": "boolean",
   "description": "Require Secure supplied to Cookie Security Check; used only for this bounded calculation and processed in memory without retention."
  },
  "allowed_same_site": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Allowed Same Site supplied to Cookie Security Check; used only for this bounded calculation and processed in memory without retention."
  },
  "require_http_only": {
   "type": "boolean",
   "description": "Require HTTP Only supplied to Cookie Security Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "name": "sid",
   "attributes": {
    "path": "/",
    "secure": true,
    "httponly": true,
    "samesite": "Lax"
   },
   "value_length": 3,
   "secure_policy_passed": true
  },
  "schema": "delx/util-cookie-security-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "b2535750ee2a8d64e7fa26e4f6b035b8925174e765e5275f7a364bd9d4e021dc",
   "external_calls": 0
  },
  "operation": "web_reliability:cookie_security_check"
 }
}
```

## More

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