# Delx Commerce — Structured Log Summary

> Delx Commerce — Structured Log Summary is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Analyzes raw log text and returns a structured summary including log level counts, line count, top error fingerprints, and a deduplication-friendly error digest.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/structured-log-summary?utm_source=zero.xyz
- Price: $0.002/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-structured-log-summary-847b99f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_waQVIhL3Fmr2FhJ3yEjyd

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-structured-log-summary-847b99f0 -d '<json body>'
```

Example prompt: Can you analyze this log dump and give me a structured summary — count the info, warn, error, and fatal lines, and identify the top recurring error fingerprints? Here's the log text: [paste log here]

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.002), pay-per-use structured digest of raw log text without setting up any log aggregation infrastructure. It is especially useful for AI agents that need to programmatically triage errors from log blobs, deduplicate repeated error messages via SHA-256 fingerprinting, or extract level-based statistics in a single API call with no signup required.

## Known failure modes

- Log text exceeds 1,000,000 character limit — request will be rejected
- Malformed or non-text input — parsing may return empty or zeroed level counts
- Payment failure via x402 — request not processed, 402 response returned
- Empty log text — returns zeroed counts with no fingerprints

## 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 schema identifier 'delx/structured-log-summary/v1', containing: counts of log lines by level (info, warn, debug, error, fatal, unknown), total line count, and an array of top error fingerprints each with a SHA-256 hash and occurrence count. Optionally includes raw error lines depending on configuration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "log_text": {
   "type": "string",
   "maxLength": 1000000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "levels": {
   "info": 0,
   "warn": 0,
   "debug": 0,
   "error": 1,
   "fatal": 0,
   "unknown": 0
  },
  "schema": "delx/structured-log-summary/v1",
  "line_count": 1,
  "top_error_fingerprints": [
   {
    "count": 1,
    "fingerprint_sha256": "0759957d9c439e32e2a7bbba57c58a6845d5af90aa85cc87d96b6a108d7130dc"
   }
  ],
  "raw_error_lines_returned": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-structured-log-summary-847b99f0/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)
