{
  "openapi": "3.1.0",
  "info": {
    "title": "ZeroGasPay Polygon Stablecoin API",
    "version": "1.0.0",
    "description": "Gasless USDC and USDT transfers on Polygon Mainnet (Chain ID 137). Zero POL required. Deducts a 0.5% fee (bash.02 min) automatically."
  },
  "servers": [{ "url": "https://zerogas-api.pages.dev" }],
  "paths": {
    "/api/wallet": { "get": { "summary": "Generate a new gasless Smart Account deposit address" } },
    "/api/balance": { "get": { "summary": "Check USDC and USDT balances for an address" } },
    "/api/send": {
      "post": {
        "summary": "Execute a gasless USDC or USDT transfer on Polygon",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "privateKey": { "type": "string" },
                  "token": { "type": "string", "enum": ["USDC", "USDT"] },
                  "to": { "type": "string" },
                  "amount": { "type": "string" }
                },
                "required": ["privateKey", "token", "to", "amount"]
              }
            }
          }
        }
      }
    }
  }
}
