NZRT Knowledge API

Pay-per-query access to NZRT knowledge vault — powered by x402 micropayments on Base.

Pricing

$0.005 USDC per request

Settled on Base mainnet (eip155:8453) via x402 protocol. No subscription. No API key. Agent pays at request time.

CodeTopicsContentAccess
000BCH Blockchain x402 protocol, USDC, Base network, wallet setup, smart contracts x402
000LLM LLM Overview, core concepts, prompt engineering, models & providers, tool use & agents x402
000GIT GitHub Repos, workflows, deploy pipelines, agent scripts x402
000K8S Kubernetes Minikube, Kagent orchestration, agent deployments x402
000NCL Nextcloud Setup guides, agent folders, WebDAV, OCS API, user management x402
000OBS Obsidian Core concepts, interface, plugins, settings & themes x402

Endpoints

PathDescriptionAuth
GET /app/health API status, network, price free
GET /app/wiki/search?q= Full-text search across all vault content x402
GET /app/wiki/note?section=&file= Fetch any vault note by section path + filename x402
GET /app/<topic>/search?q= Search within a specific topic — topics: ncl, llm, obs, git, inf, bch, k8s x402
GET /app/<topic>/note?section=&file= Fetch note from a specific topic vault x402

How x402 Works

Unpaid requests return HTTP 402 with an X-Payment-Required header. Send back as X-Payment with valid USDC proof.

# 1. Probe — get payment requirements
curl -i "https://api.nzrtnetwork.com/app/bch/search?q=x402"
# → HTTP/1.1 402 Payment Required
# → X-Payment-Required: <base64 payment details>

# 2. Pay and retry (x402-compatible clients handle this automatically)
# → HTTP/1.1 200 OK + results

AI Agent Integration

An MCP server for Claude Desktop is available. The agent pays each query automatically from its own wallet — no account, no API key. It exposes two tools: search_wiki and get_wiki_note.

The agent supplies its own funded wallet. Add to claude_desktop_config.json:

{
  "mcpServers": {
    "nzrt-wiki": {
      "command": "node",
      "args": ["path/to/mcp-server/dist/index.js"],
      "env": { "EVM_PRIVATE_KEY": "0x<your-wallet-key>" }
    }
  }
}

The wallet must hold USDC on Base mainnet; each query settles $0.005. Contact nathan@nzrtnetwork.com for the MCP server package.