Discovery

Let agents find your services

The discovery directory is a public, searchable index of x402-payable products and services: paid APIs and bookings. Agents query it first (“book me a flight”), pick a match, and pay its resourceUrl — no marketplace account, no scraping.

List a service

Create listings from the dashboard's Discovery section: either promote an active product checkout link (kind: link) or register an external x402 endpoint URL you gate yourself (kind: api, see gating your own API). Give it a title, description, price, and category; unlist it any time.

Discover from agents

The agent SDK and the MCP server both expose discovery. agent.discover(query) returns typed listings; the genesispay_discover MCP tool tells the model to search first, then pay the best match with genesispay_pay.

agent.ts
import { GenesisPayAgent } from "@genesis-tech/genesispay-agent";

const agent = new GenesisPayAgent({
  apiKey: process.env.GENESISPAY_AGENT_KEY!,
  baseUrl: process.env.GENESISPAY_BASE_URL!,
});

const services = await agent.discover("flight", { limit: 5 });
const best = services[0];

if (best) {
  // Pay the discovered service directly:
  const result = await agent.pay(best.resourceUrl, { maxAmountUsdc: "100.00" });
}