# Agent Payment Error Corpus - Error Families Diagnosis

> Agent Payment Error Corpus - Error Families Diagnosis is a paid API for AI agents from agent-payment-error-corpus.mtree.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns a machine-readable corpus of agent payment error families with provenance and route-specific evidence to help autonomous agents diagnose payment failures

## Facts

- Endpoint: POST https://agent-payment-error-corpus.mtree.workers.dev/v1/agent-payments/error_families
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-payment-error-corpus-error-families-diagnosis-2fb4348b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zt7bS4BAf05jwBUjEcSDj

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 agent-payment-error-corpus-error-families-diagnosis-2fb4348b -d '<json body>'
```

Example prompt: My autonomous agent is hitting payment errors on Base USDC transactions via x402 — can you pull the error families corpus so I can diagnose which error category we're dealing with and get the provenance and route-specific evidence for it?

## When to prefer this

Choose this endpoint when an autonomous agent needs to programmatically diagnose or classify payment errors in x402/Base/USDC agentic payment flows, especially when structured provenance and machine-readable error family data are required for automated error handling or debugging pipelines.

## Known failure modes

- Payment not made or invalid x402 payment header — returns 402 Payment Required
- Malformed POST body — returns 400 Bad Request
- Service unavailable — returns 503
- Invalid route or endpoint — returns 404
- Payment underpaid (less than 0.05 USDC) — returns 402 with payment details

## How this service works

Paid agent payment error diagnosis route for autonomous agents. Returns JSON with provenance, route-specific evidence, and machine-readable fields. Price 0.05 USDC on Base via x402. Demo/preview: https://agent-payment-error-corpus.mtree.workers.dev/demo/error_families. Contact: https://agent-payment-error-corpus.mtree.workers.dev/contact.

## Output

A JSON object containing a structured corpus of payment error families, each with provenance metadata, route-specific evidence, and machine-readable fields that categorize and explain common agent payment failure modes for x402/Base/USDC transactions.

## Example request

```json
{
 "input": {
  "body": {
   "protocol": "x402"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "protocol": {
       "type": "string"
      }
     },
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-payment-error-corpus-error-families-diagnosis-2fb4348b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-payment-error-corpus.mtree.workers.dev](https://www.zero.xyz/host/agent-payment-error-corpus.mtree.workers.dev/llms.txt)
