{
  "name": "Agent Paywire API",
  "paid": true,
  "protocol": "L402",
  "payment": "Lightning",
  "note": "Convenience API. The files on https://agentpaywire.com stay free.",
  "pricing": {
    "amount_sats": 100,
    "credits": 100,
    "ttl_days": 30,
    "unit": "One credit is one paid request."
  },
  "auth": {
    "challenge": "HTTP 402 with WWW-Authenticate: L402 macaroon=\"<macaroon>\", invoice=\"<bolt11>\".",
    "retry": "Authorization: L402 <macaroon>:<preimage>",
    "verify": "The preimage proves payment when sha256(preimage) equals the payment hash in the macaroon. A verify-URL lookup is only the fallback when that preimage is missing.",
    "discovery": "https://api.agentpaywire.com/.well-known/l402",
    "services": "https://api.agentpaywire.com/.well-known/l402-services",
    "x402": {
      "protocol": "x402",
      "version": 2,
      "price_usd": "0.01",
      "amount": "10000",
      "currency": "USDC",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "network": "eip155:8453",
      "pay_to": "0x7BB50FB9141A619961f1c29C4e0b539d60f29D20",
      "facilitator": "https://facilitator.payai.network",
      "credits": null,
      "headers": {
        "required": "PAYMENT-REQUIRED",
        "pay": "PAYMENT-SIGNATURE",
        "v1_pay": "X-PAYMENT",
        "response": "PAYMENT-RESPONSE"
      }
    }
  },
  "docs": "https://api.agentpaywire.com/v1",
  "openapi": "https://api.agentpaywire.com/v1/openapi.json",
  "openapi_root": "https://api.agentpaywire.com/openapi.json",
  "free_data": "https://agentpaywire.com/api/index.json",
  "endpoints": [
    {
      "method": "GET",
      "path": "/openapi.json",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/v1",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/v1/health",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/v1/openapi.json",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/.well-known/l402",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/.well-known/l402-services",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/.well-known/402index-verify.txt",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/.well-known/satring-verify",
      "paid": false
    },
    {
      "method": "GET",
      "path": "/v1/search",
      "paid": true
    },
    {
      "method": "GET",
      "path": "/v1/updates",
      "paid": true
    },
    {
      "method": "GET",
      "path": "/v1/digest",
      "paid": true
    },
    {
      "method": "GET",
      "path": "/v1/changes",
      "paid": true
    },
    {
      "method": "GET",
      "path": "/.well-known/x402",
      "paid": false
    }
  ],
  "rails": [
    {
      "protocol": "L402",
      "payment": "Lightning",
      "price_sats": 100,
      "credits": 100,
      "ttl_days": 30,
      "unit": "One credit is one paid request."
    },
    {
      "protocol": "x402",
      "price_usd": "0.01",
      "currency": "USDC",
      "network": "eip155:8453",
      "network_name": "Base",
      "credits": null,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "pay_to": "0x7BB50FB9141A619961f1c29C4e0b539d60f29D20",
      "unit": "One request. No credits."
    }
  ]
}
