{
  "openapi": "3.1.0",
  "info": {
    "title": "Velopact 40-in-1 Business OS API & MCP",
    "version": "1.0.0",
    "description": "Local-first & Cloudflare Edge Business OS replacing DocuSign, PandaDoc, Remove.bg, Smallpdf, Calendly, Bitly, and WeTransfer. Flat $24/mo team pricing with zero per-seat tax and an open Streamable HTTP MCP Server at /mcp."
  },
  "servers": [
    {
      "url": "https://velopact.com",
      "description": "Velopact Production Edge"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Velopact Remote MCP Server (Streamable HTTP JSON-RPC 2.0)",
        "description": "Connect Claude, ChatGPT, Gemini, Cursor, Windsurf, or any MCP agent to execute 20 deterministic business tools (Deal Rooms, Proposals, Signing Links, Onboarding, Booking, Short Links, SHA-256 Verification, Contract Diff & Risk Scan, Unit Economics, Legal & Policy Drafts, Overdue Follow-Ups, UTM Builder, and Editorial Prose Audit).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "enum": [
                      "2.0"
                    ]
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "initialize",
                      "tools/list",
                      "tools/call",
                      "resources/list",
                      "resources/read",
                      "ping"
                    ]
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    },
    "/api/rooms": {
      "post": {
        "operationId": "createClientRoom",
        "summary": "Create a zero-login client room (sign, deliver, scope, deal-room, proposal, onboarding, booking, testimonial)",
        "responses": {
          "201": {
            "description": "Room created in Cloudflare D1"
          }
        }
      }
    },
    "/api/verify": {
      "get": {
        "operationId": "verifyDocumentHash",
        "summary": "Verify a 64-character SHA-256 document hash in the Velopact Audit Registry",
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verification verdict"
          }
        }
      },
      "post": {
        "operationId": "registerDocumentHash",
        "summary": "Zero-Retention proof-of-existence notarization (stores only SHA-256)",
        "responses": {
          "201": {
            "description": "Hash registered"
          }
        }
      }
    },
    "/api/shortlinks": {
      "get": {
        "operationId": "listShortLinks",
        "summary": "List Edge short links with click analytics",
        "responses": {
          "200": {
            "description": "Short links"
          }
        }
      },
      "post": {
        "operationId": "createShortLink",
        "summary": "Create a /s/<code> Cloudflare Edge redirect",
        "responses": {
          "201": {
            "description": "Created short link"
          }
        }
      }
    },
    "/api/secrets": {
      "post": {
        "operationId": "createBurnSecret",
        "summary": "Store a client-side AES-256-GCM ciphertext envelope that burns immediately after one read",
        "responses": {
          "201": {
            "description": "Encrypted envelope stored"
          }
        }
      }
    }
  }
}