# x402 Market API – test-echo-cdp-2

> x402 Market API – test-echo-cdp-2 is a paid API for AI agents from x402-market-api.lien-studio-akiyama.workers.dev, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-14).

Echoes back a posted HTTP request body (CDP mode, second listing) for testing x402 payment and Bazaar indexer discovery.

## Facts

- Endpoint: POST https://x402-market-api.lien-studio-akiyama.workers.dev/api/seller-4068b8fc/test-echo-cdp-2
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-market-api-test-echo-cdp-2-1dd5ff6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6tQoJHE1Jaukc5XaMOlge

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 x402-market-api-test-echo-cdp-2-1dd5ff6a -d '<json body>'
```

Example prompt: Send a test JSON POST body like {"hello":"world"} through the x402 CDP echo endpoint and confirm it gets echoed back after the $0.01 USDC payment clears.

## When to prefer this

Choose this endpoint when you need to test the x402 CDP payment flow against a second listing (created after the v2-spec PaymentPayload fix) to A/B compare Bazaar indexer discovery behavior versus an older live listing; not intended for production data processing.

## Known failure modes

- Payment not included or invalid x402 header returns 402 Payment Required
- Invalid bodyType enum value returns validation error
- Missing required 'input' object returns schema validation error
- Body does not match declared bodyType causes parse error
- Cloudflare Worker cold start or timeout returns 5xx

## How this service works

Second cdp-mode listing identical to test-echo-cdp, used to A/B test whether the Bazaar indexer picks up newly-created resources differently from one that has been live for several days.

## Output

The endpoint echoes back whatever request body (JSON, form-data, or text) was sent in the POST, serving as confirmation that the x402 payment was accepted and the request was received correctly.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "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/x402-market-api-test-echo-cdp-2-1dd5ff6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-market-api.lien-studio-akiyama.workers.dev](https://www.zero.xyz/host/x402-market-api.lien-studio-akiyama.workers.dev/llms.txt)
