# Delx Commerce Cookie Security Check

> Delx Commerce Cookie Security 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 HTTP Set-Cookie headers against configurable security policies (Secure, HttpOnly, SameSite attributes) and returns a structured pass/fail result.

## Facts

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

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

Example prompt: Check this Set-Cookie header for me and make sure it has Secure and HttpOnly set, and that SameSite is either Strict or Lax: 'sid=abc123; Path=/; Secure; HttpOnly; SameSite=Lax'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup cookie security validator that returns structured, verifiable results with cryptographic evidence of non-retention. Ideal for agents running automated security audits, CI pipelines, or one-off compliance checks where you don't want to manage an account or pay for a subscription. Prefer over rolling your own parser when you need a canonical, auditable record of the check.

## Known failure modes

- Malformed or unparseable cookie header string may result in an error or failed validation
- Header exceeding 8192 characters will be rejected
- Invalid SameSite values not in the allowed_same_site list will cause policy failure
- Missing required attributes (Secure/HttpOnly) when required flags are true will return status 'fail'
- Payment failure via x402 will block the request before processing

## 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 cookie name, its attributes (path, secure, httponly, samesite), the raw value length, a boolean secure_policy_passed, and an overall status of 'pass' or 'fail'. Also includes an evidence block with a SHA-256 hash of the input and confirmation that no data was retained and no external calls were made.

## 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/delx-commerce-cookie-security-check-2781559c/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)
