# Delx Commerce — Content-Disposition Header Parser

> Delx Commerce — Content-Disposition Header Parser 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).

Parses an HTTP Content-Disposition header string and returns the disposition type and its parameters (e.g. filename) as structured data.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/content-disposition-parse?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-content-disposition-header-parser-61b29f1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sp_weeXGSqzoUu18JTGoA

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-content-disposition-header-parser-61b29f1f -d '<json body>'
```

Example prompt: Parse this Content-Disposition header for me and tell me the disposition type and filename: 'attachment; filename="report.csv"'.

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, pay-per-call parser for Content-Disposition HTTP headers without building or maintaining custom parsing logic. It is ideal for agents handling file downloads, processing HTTP responses, or automating file-naming workflows where privacy matters (no data retention, verifiable via SHA-256 evidence).

## Known failure modes

- Malformed or empty header string may produce an error or empty parameters
- Header exceeding 8192 characters will be rejected
- Non-Content-Disposition headers passed as input may parse with unexpected or empty results
- Network or payment failure via x402 will prevent the call from completing

## 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 containing the parsed disposition value (e.g. 'attachment' or 'inline'), a map of parameters (e.g. filename), an operation schema label, a pass/fail status, and an evidence block including whether input was retained (always false), the SHA-256 hash of the input, and the number of external calls made (always zero).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Content Disposition Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "value": "attachment",
   "parameters": {
    "filename": "report.csv"
   }
  },
  "schema": "delx/util-content-disposition-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "51f2b47182084fb3d000affd2a526acd9dd50f69e5ab61be18bb0d0cca2fed19",
   "external_calls": 0
  },
  "operation": "web_reliability:content_disposition_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-content-disposition-header-parser-61b29f1f/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)
