# X402 Resource Match

> X402 Resource 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-10-19).

Compares an x402 challenge resource URL against an expected paid resource URL to deterministically validate they match before payment or delivery

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/x402-resource-match?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-resource-match-5737b723
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vphUg0IVlhu4-83qBuPmy

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 x402-resource-match-5737b723 -d '<json body>'
```

Example prompt: Before I authorize the x402 payment, check that the challenge resource URL 'https://api.example.com/content/article-42' actually matches the resource I expected to pay for, 'https://api.example.com/content/article-42', and tell me whether to accept or reject it.

## When to prefer this

Use this endpoint whenever you need a deterministic, stateless, in-memory comparison of an x402 challenge resource URL against an expected resource URL before authorizing payment or accepting an agent delivery. Prefer it over manual string comparison when you need structured mismatch reasons, normalized evidence, and a versioned JSON audit trail. It is especially valuable in automated agent pipelines handling x402 payments where resource spoofing is a concern.

## Known failure modes

- Malformed or excessively long URL strings may be rejected with a validation error
- If either 'expected' or 'resource' field is missing the request may return an error
- Ambiguous or non-URL values may produce inconclusive match results
- Network or service errors may return a non-200 status requiring retry

## How this service works

X402 Resource Match: X402 Resource Match compares challenge resource URL with the intended paid resource from bounded caller-supplied values without an external provider. Call X402 Resource Match before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Resource Match as versioned deterministic JSON. Price:…

## Output

Returns a versioned deterministic JSON object containing: an explicit accept or reject status, contract-specific validation checks, normalized evidence derived from both URLs, and a list of mismatch reasons if any discrepancy is detected. No data is retained after the in-memory comparison.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expected": {
   "type": "string",
   "maxLength": 8192,
   "description": "Expected supplied to X402 Resource Match; used only for this bounded calculation and processed in memory without retention."
  },
  "resource": {
   "type": "string",
   "maxLength": 8192,
   "description": "Resource supplied to X402 Resource Match; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "actual": "https://api.delx.ai/x402/utility/example",
   "matched": true,
   "expected": "https://api.delx.ai/x402/utility/example"
  },
  "schema": "delx/util-x402-resource-match/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f15a00a5d5428ddfc6587bd6dabe4c7782ccded313974b1a96a3d99acfec7a90",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_resource_match"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-resource-match-5737b723/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)
