{
  "openapi": "3.1.0",
  "info": {
    "title": "ZenoLedger Agent & Compliance API",
    "version": "1.2.0",
    "description": "Public machine-readable endpoints for estimating US + India company compliance obligations/USD costs and submitting inquiries to ZenoLedger (Seattle CPA cross-border practice · WA CPA Firm #59686) without a CAPTCHA. Direct 15-min CPA call: https://cal.com/pruthi/15min.",
    "contact": {
      "name": "ZenoLedger (Pruthi CPA · Seattle, WA)",
      "email": "hello@zenoledger.com",
      "url": "https://zenoledger.com/book-consultation/"
    }
  },
  "servers": [
    {
      "url": "https://zenoledger.com"
    }
  ],
  "paths": {
    "/api/compliance-estimate": {
      "get": {
        "operationId": "getComplianceEstimate",
        "summary": "Estimate US + India statutory filings, deadlines, and Year-1 / Year-2+ costs",
        "parameters": [
          {
            "name": "entity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "de-ccorp",
                "wy-llc",
                "de-llc"
              ],
              "default": "de-ccorp"
            },
            "description": "US legal entity type and state."
          },
          {
            "name": "owner",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "in-individual",
                "in-entity",
                "non-india"
              ],
              "default": "in-individual"
            },
            "description": "Shareholder / member residency structure."
          },
          {
            "name": "stage",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "existing-clean",
                "existing-late"
              ],
              "default": "new"
            },
            "description": "Formation vs clean ongoing vs historical remediation."
          },
          {
            "name": "activity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "pre-revenue",
                "operating",
                "intercompany"
              ],
              "default": "operating"
            },
            "description": "Revenue and related-party transaction profile."
          }
        ],
        "responses": {
          "200": {
            "description": "Structured filing schedule, pass-through costs, and recommended ZenoLedger package."
          },
          "400": {
            "description": "Invalid query parameter."
          }
        }
      }
    },
    "/api/agent-enquiry": {
      "get": {
        "operationId": "describeAgentEnquiry",
        "summary": "Return usage instructions, allowed service categories, and a sample payload",
        "responses": {
          "200": {
            "description": "Endpoint schema and usage notes."
          }
        }
      },
      "post": {
        "operationId": "submitAgentEnquiry",
        "summary": "Submit an inquiry to ZenoLedger on behalf of a person (no CAPTCHA)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "message"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Person the inquiry is for."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 254,
                    "description": "Reply-to email address."
                  },
                  "message": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 4000,
                    "description": "Structure, context, and questions (do not include tax IDs or passport numbers)."
                  },
                  "service": {
                    "type": "string",
                    "enum": [
                      "US Entity Formation",
                      "Annual Company Compliance",
                      "Existing US company",
                      "RBI/FEMA Compliance",
                      "Tax & Accounting",
                      "Banking Setup",
                      "Rescue Squad (Late Compliance)",
                      "SOC 2",
                      "US Trademark",
                      "Partnership Inquiry",
                      "Other"
                    ]
                  },
                  "on_behalf_of": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 100
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry accepted for human email reply."
          },
          "400": {
            "description": "Validation error."
          }
        }
      }
    }
  }
}