# Delx Commerce — X402 Delivery Content-Type Check

> Delx Commerce — X402 Delivery Content-Type Check 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 HTTP Content-Type header value matches a list of accepted content types, returning a verifiable pass/fail result with cryptographic evidence.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/x402-delivery-content-type-check?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-x402-delivery-content-type-check-10004e08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UaVfg_UFpsRGomqgB9u9v

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-x402-delivery-content-type-check-10004e08 -d '<json body>'
```

Example prompt: Check whether 'application/json' is in my list of accepted content types ['application/json', 'text/plain'] — I need a verifiable pass/fail result with no data retained.

## When to prefer this

Use this endpoint when you need a cryptographically verifiable, auditable content-type validation with provable non-retention of input data — especially in x402 payment-gated agent pipelines where you need tamper-evident evidence of the check. Prefer this over a simple local string comparison when auditability, evidence hashes, or pay-per-use billing transparency matter.

## Known failure modes

- Invalid or missing 'content_type' field returns a validation error
- 'accepted' array exceeding 256 items is rejected
- Content-type strings exceeding 8192 characters are rejected
- Malformed JSON body returns a 400-level error
- Payment failure via x402 protocol prevents execution

## 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: a boolean 'accepted' field indicating whether the content type matched, the matched 'content_type' string, an overall 'status' (pass/fail), an 'operation' identifier, and an 'evidence' block containing a SHA-256 hash of the input, a 'retained: false' flag confirming no data is stored, and a count of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "accepted": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Accepted supplied to X402 Delivery Content Type Check; used only for this bounded calculation and processed in memory without retention."
  },
  "content_type": {
   "type": "string",
   "maxLength": 8192,
   "description": "Content Type supplied to X402 Delivery Content Type Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "accepted": true,
   "content_type": "application/json"
  },
  "schema": "delx/util-x402-delivery-content-type-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "17d22f796e7932f46bbb49530f843fcbb42e7bea6267a2306a495865b24fc926",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_delivery_content_type_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-x402-delivery-content-type-check-10004e08/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)
