{
  "version": 1,
  "x402Version": 2,
  "resources": [
    "https://approve.moneytools.dev/v1/approvals",
    "https://ledger.moneytools.dev/v1/ledger/wallet"
  ],
  "accepts": {
    "/v1/approvals": {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "3000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x64eB63904Cf9688AC5B3087A72AcF9C31a273169",
      "maxTimeoutSeconds": 300,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      },
      "resource": "https://approve.moneytools.dev/v1/approvals",
      "description": "Human approval request for an AI agent: creates an approval link (and optional signed webhook), records the human's approve/deny, returns a verifiable proof. Non-custodial.",
      "mimeType": "application/json",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "discoverable": true,
          "bodyType": "json",
          "bodyFields": {
            "title": {
              "type": "string",
              "required": true,
              "description": "What the agent wants to do, e.g. 'Pay api.example.com 0.50 USDC for a report'"
            },
            "amountUsd": {
              "type": "number",
              "required": false,
              "description": "Amount in USD the human approves (upper bound)"
            },
            "payTo": {
              "type": "string",
              "required": false,
              "description": "0x recipient the agent will pay"
            },
            "host": {
              "type": "string",
              "required": false,
              "description": "Seller hostname or URL"
            },
            "network": {
              "type": "string",
              "required": false,
              "description": "e.g. eip155:8453"
            },
            "details": {
              "type": "string",
              "required": false,
              "description": "Extra context for the human (max 1000 chars)"
            },
            "ttlMinutes": {
              "type": "number",
              "required": false,
              "description": "5-1440, default 30"
            },
            "notify": {
              "type": "object",
              "required": false,
              "description": "{ webhook?: https URL (signed POST), email?: address (limited availability), telegramChatId?: string (not enabled yet) }"
            }
          }
        },
        "output": {
          "type": "object",
          "description": "approval id, approveUrl, agentToken, statusUrl"
        }
      }
    },
    "/v1/ledger/wallet": {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "50000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x64eB63904Cf9688AC5B3087A72AcF9C31a273169",
      "maxTimeoutSeconds": 300,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      },
      "resource": "https://ledger.moneytools.dev/v1/ledger/wallet",
      "description": "Spend ledger for any Base wallet over the last 30 days (or the current UTC month): outgoing USDC by recipient and day, CSV export, optional currency conversion. Read-only.",
      "mimeType": "application/json",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "discoverable": true,
          "bodyType": "json",
          "bodyFields": {
            "address": {
              "type": "string",
              "required": true,
              "description": "0x Base wallet whose outgoing USDC to report"
            },
            "days": {
              "type": "number",
              "required": false,
              "description": "last N days, 1-31 (default 30)"
            },
            "month": {
              "type": "string",
              "required": false,
              "description": "YYYY-MM (UTC); only months that started within the last 31 days"
            },
            "currency": {
              "type": "string",
              "required": false,
              "description": "ISO 4217 code, default USD"
            },
            "labels": {
              "type": "object",
              "required": false,
              "description": "{\"0xrecipient\":\"name\"} to label suppliers"
            }
          }
        },
        "output": {
          "type": "object",
          "description": "reportId, reportToken, reportUrl"
        }
      }
    }
  },
  "schemas": {
    "/v1/approvals": {
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "What the agent wants to do, e.g. 'Pay api.example.com 0.50 USDC for a report'"
          },
          "amountUsd": {
            "type": "number",
            "description": "Amount in USD the human approves (upper bound)"
          },
          "payTo": {
            "type": "string",
            "description": "0x recipient the agent will pay"
          },
          "host": {
            "type": "string",
            "description": "Seller hostname or URL"
          },
          "network": {
            "type": "string",
            "description": "e.g. eip155:8453"
          },
          "details": {
            "type": "string",
            "description": "Extra context for the human (max 1000 chars)"
          },
          "ttlMinutes": {
            "type": "number",
            "description": "5-1440, default 30"
          },
          "notify": {
            "type": "object",
            "description": "{ webhook?: https URL (signed POST), email?: address (limited availability), telegramChatId?: string (not enabled yet) }"
          }
        },
        "required": [
          "title"
        ]
      }
    },
    "/v1/ledger/wallet": {
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "0x Base wallet whose outgoing USDC to report"
          },
          "days": {
            "type": "number",
            "description": "last N days, 1-31 (default 30)"
          },
          "month": {
            "type": "string",
            "description": "YYYY-MM (UTC); only months that started within the last 31 days"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code, default USD"
          },
          "labels": {
            "type": "object",
            "description": "{\"0xrecipient\":\"name\"} to label suppliers"
          }
        },
        "required": [
          "address"
        ]
      }
    }
  },
  "facilitator": "https://facilitator.payai.network",
  "mcp": "https://ledger.moneytools.dev/mcp",
  "llms": "https://ledger.moneytools.dev/llms.txt"
}