# Cookie Set Parse

> Cookie Set Parse 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).

Parses a raw Set-Cookie HTTP header value into its name, value, and attributes, returning a normalized, deterministic JSON result with pass/advisory status.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/cookie-set-parse
- 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-set-parse-25234699
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JbvkZWPVfZKmbhUlihAR3

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-set-parse-25234699 -d '<json body>'
```

Example prompt: Parse this raw Set-Cookie header value for me and tell me if it's valid — extract the cookie name, value, and all attributes like HttpOnly, Secure, SameSite, and Expires: 'sessionId=abc123; Path=/; HttpOnly; Secure; SameSite=Strict; Expires=Wed, 21 Oct 2025 07:28:00 GMT'.

## When to prefer this

Use this endpoint when you need fast, stateless, deterministic parsing of a single Set-Cookie header value — especially before accepting, caching, redirecting, or retrying a web response. It is ideal for security-sensitive workflows where you need to confirm the presence or absence of specific cookie attributes (HttpOnly, Secure, SameSite) without retaining any data. Prefer this over custom parsing logic for consistent, versioned, normalized output.

## Known failure modes

- Malformed or unparseable Set-Cookie string returns advisory status with parsing error detail
- Input string exceeding 8192 characters is rejected
- Missing or empty header field returns an error or advisory result
- Non-Set-Cookie header values may parse with unexpected attribute mappings

## How this service works

Cookie Set Parse: Cookie Set Parse parses one Set-Cookie value into name, value, and attributes from bounded caller-supplied values without an external provider. Call Cookie Set Parse 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 Set Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution…

## Output

A versioned deterministic JSON object containing the parsed cookie name, value, and all recognized attributes (e.g. Path, Domain, Expires, Max-Age, Secure, HttpOnly, SameSite), a normalized evidence object, and an explicit pass or advisory status indicating whether the Set-Cookie header is well-formed.

## 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/cookie-set-parse-25234699/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)
