# Cookie Path Match

> Cookie Path Match 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-14).

Evaluates whether a cookie's Path attribute matches a given HTTP request path, returning a deterministic pass/fail result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/cookie-path-match
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cookie-path-match-f50ad975
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hBnR3h5Mtnwn-mukdmmED

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

Example prompt: Check if the cookie path '/api/v1' matches the request path '/api/v1/users/profile' — I need to know if this cookie would be sent with that request.

## When to prefer this

Use this endpoint when you need a stateless, deterministic, versioned evaluation of RFC-compliant cookie path matching without implementing the logic yourself. Prefer it over custom code when you need auditable, normalized evidence of the match result for caching decisions, redirect handling, retry logic, or security audits.

## Known failure modes

- Missing or empty cookie_path or request_path inputs result in validation error
- Inputs exceeding 8192 characters are rejected
- Malformed path strings may return advisory status rather than pass
- Payment not included or insufficient USDC results in 402 response

## How this service works

Cookie Path Match: Cookie Path Match evaluates cookie Path matching for a request path from bounded caller-supplied values without an external provider. Call Cookie Path Match 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 Path Match as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with n…

## Output

Returns deterministic JSON containing: normalized web evidence (the inputs as evaluated), the computed finding (whether the cookie path matches the request path per RFC cookie path matching rules), and an explicit pass or advisory status indicating match or mismatch.

## 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/cookie-path-match-f50ad975/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)
