# Delx Commerce — Cookie Set-Header Parser

> Delx Commerce — Cookie Set-Header Parser 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).

Parses a raw HTTP Set-Cookie header string and returns structured cookie attributes (name, value length, path, flags, SameSite) without retaining input data.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cookie-set-parse?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-set-header-parser-c01a58c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aq_jY6623_sMK5RSt2wbl

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-set-header-parser-c01a58c7 -d '<json body>'
```

Example prompt: Parse this Set-Cookie header and tell me the cookie name, its security flags, SameSite setting, and path: 'sid=abc123xyz; Path=/; Secure; HttpOnly; SameSite=Lax'

## When to prefer this

Use this endpoint when you need to deterministically parse a raw Set-Cookie HTTP header into structured fields, especially in agent pipelines that inspect cookie security policies, audit web reliability, or process HTTP responses without needing to store or transmit the raw cookie value. Preferred over general-purpose string parsing because it is purpose-built for RFC 6265 cookie syntax, guarantees no data retention, and provides cryptographic evidence of processing.

## Known failure modes

- Malformed or empty header string — may return parsing error or incomplete attributes
- Header exceeds 8192 character limit — request rejected
- Missing required 'header' field — validation error
- Non-Set-Cookie header provided — partial or unexpected parse result

## 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, structured attributes (path, secure, httponly, samesite), value length, operation name, schema version, pass/fail status, and evidence metadata including whether input was retained (always false), the SHA-256 of the input, and the number of external calls made (always zero).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Cookie Set Parse; 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
  },
  "schema": "delx/util-cookie-set-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "1ed778ab0ebff9fc2b38df405c07c62862e045ddbbef0672d47df2681fdc6642",
   "external_calls": 0
  },
  "operation": "web_reliability:cookie_set_parse"
 }
}
```

## More

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