# Delx Commerce — Cookie Domain Match

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

Validates whether a given request host matches a specified cookie domain according to browser cookie-scoping rules

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cookie-domain-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-domain-match-714701a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IpMXhNeK7aZ2uoERBXLaO

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-domain-match-714701a3 -d '<json body>'
```

Example prompt: Check if the cookie domain '.example.com' is valid for a request coming from 'api.example.com' — I want to know if the cookie would actually be sent by a browser.

## When to prefer this

Use this endpoint when you need a fast, trustless, pay-per-call verification of cookie domain matching logic without setting up your own implementation. Ideal for agents automating web reliability checks, debugging cookie scoping issues, or validating cookie configurations before deployment. Prefer it over home-grown logic when auditability and verifiable evidence (input hash, no-retention proof) matter.

## Known failure modes

- Invalid or missing request_host or cookie_domain fields returns an error
- Malformed hostname formats may result in failed validation or unexpected match results
- Network timeout if the service is temporarily unavailable

## 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 matched boolean result, the input host and domain, a pass/fail status, and cryptographic evidence including SHA-256 of the inputs and a confirmation that no data was retained or sent to external services.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "host": "api.example.com",
   "domain": "example.com",
   "matched": true
  },
  "schema": "delx/util-cookie-domain-match/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "a57277a00c736509ccdbdcbce69bc2a0db8554bde0c9b457722c07c13b3b210c",
   "external_calls": 0
  },
  "operation": "web_reliability:cookie_domain_match"
 }
}
```

## More

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