# Delx Path Ext

> Delx Path Ext 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-13).

Extracts the file extension from a given file path or URL path segment, returning a deterministic JSON result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/path-ext
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-path-ext-6dde7911
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_86e1jFadDvMOKInc2_oT7

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-path-ext-6dde7911 -d '<json body>'
```

Example prompt: What's the file extension in the path '/uploads/reports/summary.pdf'? Just extract the extension from that path string.

## When to prefer this

Use this endpoint when you need a lightweight, deterministic, stateless extraction of a file extension from a path string during agent preflight checks, file routing logic, or validation pipelines — especially when you want a guaranteed machine-readable JSON response with no side effects and sub-cent cost via x402.

## Known failure modes

- Empty or missing path input returns an error or empty extension
- Path with no extension returns null or empty string for extension
- Malformed JSON input causes a 400-level error
- Paths with multiple dots (e.g. 'file.tar.gz') may return only the last extension segment

## How this service works

Extract file extension from a path or URL path segment — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls.

## Output

Returns a deterministic JSON object containing the extracted file extension (e.g. '.pdf', '.jpg', '.js') from the input path or URL path segment. If no extension is present, returns an empty or null extension field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "path": {
   "type": "string",
   "description": "Input field: path."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-path-ext/v1",
  "basename": "b.PNG",
  "extension": "png",
  "has_extension": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-path-ext-6dde7911/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)
