# Delx Commerce — Cookie Path Match

> Delx Commerce — Cookie Path Match 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).

Determines whether a given HTTP cookie path matches a given HTTP request path, following standard cookie path-matching rules.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cookie-path-match?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-path-match-1c25a69c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TtsTLcZEszHpJYX2AQ_R8

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-path-match-1c25a69c -d '<json body>'
```

Example prompt: Check whether the cookie path '/api' matches the request path '/api/v1/items' — I need to know if a cookie scoped to that path would actually be sent with that request.

## When to prefer this

Choose this endpoint when you need a deterministic, stateless, pay-per-call cookie path matching computation with cryptographic evidence of the inputs processed and a guarantee of no data retention — particularly useful in privacy-sensitive or compliance contexts where you want to verify the calculation was bounded and transparent. Prefer this over implementing cookie path matching logic yourself when correctness per RFC 6265 semantics is critical.

## Known failure modes

- Missing or empty cookie_path or request_path fields — likely returns a validation error
- Input strings exceeding 8192 characters — rejected by schema length constraint
- Malformed path strings that are not valid HTTP paths — may return unexpected match results
- Network or payment failure via x402 — call not processed

## 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 indicating whether the cookie path matched the request path (boolean 'matched'), echoes back both input paths, confirms no data was retained (retained: false), provides a SHA-256 hash of the input for verifiability, confirms zero external calls were made, and labels the operation as 'web_reliability:cookie_path_match'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cookie_path": {
   "type": "string",
   "maxLength": 8192,
   "description": "Cookie Path supplied to Cookie Path Match; used only for this bounded calculation and processed in memory without retention."
  },
  "request_path": {
   "type": "string",
   "maxLength": 8192,
   "description": "Request Path supplied to Cookie Path Match; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "matched": true,
   "cookie_path": "/api",
   "request_path": "/api/v1/items"
  },
  "schema": "delx/util-cookie-path-match/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "41bcc556d968f472cd311120316a62e8cf41f4235877caabbfe596074506cb5c",
   "external_calls": 0
  },
  "operation": "web_reliability:cookie_path_match"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-cookie-path-match-1c25a69c/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)
