# x402 Dev Tools – Discovery Document Generator

> x402 Dev Tools – Discovery Document Generator is a paid API for AI agents from dev.kagurazaka.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Generates OpenAPI 3.1, /.well-known/x402, and llms.txt discovery documents for a list of paid x402 API endpoints

## Facts

- Endpoint: POST https://dev.kagurazaka.dev/v1/discovery?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-dev-tools-discovery-document-generator-00336fbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TofUU90iAYeMjr3RgpkpQ

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-dev-tools-discovery-document-generator-00336fbf -d '<json body>'
```

Example prompt: Generate the full x402 discovery bundle for my weather API at https://api.weatherco.com — it has one GET endpoint /v1/weather at $0.001, takes a city name, returns temperature and conditions. I need the OpenAPI 3.1 doc with x-payment-info, the /.well-known/x402 resource list, and the llms.txt.

## When to prefer this

Use this endpoint when you need to produce all three x402 discovery artifacts (OpenAPI, /.well-known/x402, llms.txt) in one call, formatted specifically for x402scan and CDP Bazaar indexing. Prefer it over manually writing OpenAPI specs when you want automatic x-payment-info extension injection and agent-readable output. Ideal for API sellers onboarding to the x402 ecosystem who want immediate discoverability without hand-crafting multiple document formats.

## Known failure modes

- Missing or invalid origin URL returns validation error
- Endpoint list exceeding 100 items rejected
- Malformed endpoint objects missing required fields like method or path cause partial or failed generation
- Invalid price_usd values (negative or non-numeric) may cause schema errors
- Unreachable or non-HTTPS origin may fail validation
- Payment of $0.003 USDC required per call; insufficient payment results in 402 response

## How this service works

Generates the discovery documents directories and agents read for a list of paid endpoints (up to 100): an OpenAPI 3.1 document with x-payment-info prices and examples, the /.well-known/x402 resource list and an llms.txt, in the shape x402scan and the CDP Bazaar index.

## Output

Returns a JSON object containing three discovery artifacts: (1) a complete OpenAPI 3.1 document with x-payment-info extensions listing prices and examples for each endpoint, (2) a /.well-known/x402 JSON resource list with versioned endpoint URLs, and (3) an llms.txt file in the format expected by x402scan and the CDP Bazaar agent index.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  },
  "origin": {
   "type": "string",
   "description": "the https origin the API is served from"
  },
  "category": {
   "type": "string",
   "description": "default API"
  },
  "guidance": {
   "type": "string",
   "description": "how an agent should call the API"
  },
  "endpoints": {
   "type": "array",
   "description": "each {method: GET|POST, path, price_usd, summary, description, tags, input_example, input_schema, output_example}"
  },
  "description": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "openapi": {
   "info": {
    "title": "Weather API"
   },
   "paths": {},
   "openapi": "3.1.0"
  },
  "llms_txt": "# Weather API\n\n> Current weather for any city.\n...",
  "well_known": {
   "version": 1,
   "resources": [
    "https://api.example.com/v1/weather"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-dev-tools-discovery-document-generator-00336fbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dev.kagurazaka.dev](https://www.zero.xyz/host/dev.kagurazaka.dev/llms.txt)
