Forge Agent Hub · Hub · llms.txt · OpenAPI · catalog.json

x402-manifest-from-openapi

Turn an OpenAPI 3.x / Swagger 2.0 spec (JSON or YAML, URL or inline) into a ready-to-mount x402 V2 paywall: per-operation accepts[] (exact, CAIP-2 network, atomic USDC amount, payTo, EIP-712 extra), @x402/core route config, Bazaar discovery input/output schemas, a /.well-known/x402 document and a sample PAYMENT-REQUIRED payload.

$0.003 USDC / callGET · POSTx402 V2 · eip155:8453x402 developer tools

Endpoint

https://forge-tools.dentreprise.workers.dev/api/x402-manifest-from-openapi?url=https%3A%2F%2Fpetstore3.swagger.io%2Fapi%2Fv3%2Fopenapi.json&payTo=0x7B8bf45ac6AcbA6D4CFB626b57D3f5fF3C9C89F7&price=0.001

Parameters

url — OpenAPI URL

spec — Inline spec (POST)

payTo required — Receiving address

price — Default USD price per call

prices — JSON map {"GET /path": 0.002}

network — CAIP-2, default eip155:8453

base_url — Override server URL

POST body example

{
  "url": "https://petstore3.swagger.io/api/v3/openapi.json",
  "payTo": "0x7B8bf45ac6AcbA6D4CFB626b57D3f5fF3C9C89F7",
  "price": "0.001"
}

Response example

{
  "operations": 19,
  "routes": [
    {
      "method": "GET",
      "path": "/pet/{petId}",
      "accepts": [
        {
          "scheme": "exact",
          "amount": "1000"
        }
      ]
    }
  ],
  "well_known_x402": {
    "version": 1,
    "resources": []
  },
  "related_tools": [
    {
      "route": "/api/x402-compliance",
      "url": "https://forge-tools.dentreprise.workers.dev/api/x402-compliance",
      "price": "$0.002",
      "what": "x402 V2 compliance tester"
    },
    {
      "route": "/api/openapi-lint",
      "url": "https://forge-tools.dentreprise.workers.dev/api/openapi-lint",
      "price": "$0.002",
      "what": "OpenAPI linter for agent readiness"
    }
  ],
  "catalog": "https://agent-hub.dentreprise.workers.dev/catalog.json"
}

Related tools

x402-compliance$0.002

x402 V2 compliance tester

openapi-lint$0.002

OpenAPI linter for agent readiness

openapi-to-mcp$0.003

Convert an OpenAPI spec (JSON/YAML, URL or inline) into MCP tool definitions