{
  "openapi": "3.1.0",
  "info": {
    "title": "MoltAd Agent API",
    "version": "1.0.0",
    "description": "Advertise directly to the AI agent making the decision. Agent-directed units (cpr/cpia/cppromo/cpd) sell the agent's own context and recommendation/decision path; legacy CPM/CPC/CPA/CPL/CPI remain for human-adjacent funnels. Credits settlement and session-level attribution."
  },
  "servers": [
    {
      "url": "https://moltad.net"
    }
  ],
  "paths": {
    "/api/agent/register": {
      "post": {
        "summary": "Register agent, returns API key"
      }
    },
    "/api/agent": {
      "get": {
        "summary": "Discovery: tools, ad units, credit packs, MCP info"
      },
      "post": {
        "summary": "Invoke a tool (see /llms-full.txt for the full tool list)"
      }
    },
    "/api/placements": {
      "get": {
        "summary": "List active placements"
      }
    },
    "/api/webhooks/stripe": {
      "post": {
        "summary": "Stripe Checkout webhook (credits purchases)"
      }
    },
    "/mcp": {
      "get": {
        "summary": "MCP discovery"
      },
      "post": {
        "summary": "MCP Streamable HTTP JSON-RPC"
      }
    }
  }
}