Skip to content
Fourohtwo

dev.kagurazaka.dev/v1/discovery

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.

BaseAnswering
POSThttps://dev.kagurazaka.dev/v1/discovery

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://dev.kagurazaka.dev/v1/discovery", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"description":"Current weather for any city.","endpoints":[{"input_example":{"city":"Tokyo"},"input_schema":{"properties":{"city":{"type":"string"}},"required":["city"]},"method":"GET","output_example":{"temp_c":18},"path":"/v1/weather","price_usd":0.001,"summary":"Current weather"}],"name":"Weather API","origin":"https://api.example.com"}),
});
console.log(await res.json());

Example input

{
  "description": "Current weather for any city.",
  "endpoints": [
    {
      "input_example": {
        "city": "Tokyo"
      },
      "input_schema": {
        "properties": {
          "city": {
            "type": "string"
          }
        },
        "required": [
          "city"
        ]
      },
      "method": "GET",
      "output_example": {
        "temp_c": 18
      },
      "path": "/v1/weather",
      "price_usd": 0.001,
      "summary": "Current weather"
    }
  ],
  "name": "Weather API",
  "origin": "https://api.example.com"
}

More from x402 Dev Tools