{
  "openapi": "3.1.0",
  "info": {
    "title": "Instfy Data API",
    "version": "1.0.0",
    "description": "Public read API for the Instfy Data knowledge graph: 432,000+ companies in Greater Orlando, Florida (Sunbiz public record + web enrichment). Write actions (leads, tasks, proposals, CRM) are Phase 2 and require OAuth2.",
    "contact": {
      "name": "Instfy",
      "url": "https://instfy.com/contact-us/"
    }
  },
  "servers": [
    {
      "url": "https://data.instfy.com"
    }
  ],
  "paths": {
    "/api/public-search": {
      "get": {
        "operationId": "search_company",
        "summary": "Search companies by name, city or sector.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Query: company name, city or sector."
          }
        ],
        "responses": {
          "200": {
            "description": "Matching companies.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "legalName": {
                            "type": "string"
                          },
                          "documentNumber": {
                            "type": "string",
                            "description": "Persistent Sunbiz id."
                          },
                          "city": {
                            "type": "string",
                            "nullable": true
                          },
                          "sectorKey": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/service-request": {
      "post": {
        "operationId": "create_lead",
        "summary": "Submit an interest/lead (no auth).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "message": {
                    "type": "string"
                  },
                  "companyDoc": {
                    "type": "string",
                    "description": "Optional Sunbiz document number of the related company."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Lead created."
          }
        }
      }
    },
    "/c/{slug}": {
      "get": {
        "operationId": "get_company",
        "summary": "Company profile page with embedded Schema.org JSON-LD.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML page; parse the application/ld+json script for the entity."
          }
        }
      }
    }
  },
  "x-agent-manifest": "https://data.instfy.com/.well-known/agent.json",
  "x-planned-actions": [
    "generate_report",
    "recommend_actions",
    "create_task (erp.instfy.com)",
    "create_proposal (erp.instfy.com)",
    "update_crm (erp.instfy.com)"
  ]
}