{
  "openapi": "3.0.3",
  "info": {
    "title": "Okomfo API",
    "description": "AI-native transport operations, compliance, and fleet management platform for bus, coach, NEMT, and fleet operators. Built with deep regulatory alignment across UK, European, and US markets, designed to scale globally.",
    "version": "0.1.0",
    "contact": {
      "name": "Okomfo",
      "url": "https://okomfo.io",
      "email": "hello@okomfo.io"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://okomfo.io/api",
      "description": "Production"
    }
  ],
  "paths": {
    "/demo-request": {
      "post": {
        "operationId": "submitDemoRequest",
        "summary": "Request a platform demo",
        "description": "Submit a demo request for the Okomfo transport operating system. No authentication required.",
        "tags": ["Sales"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DemoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Demo request submitted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemoResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation error or duplicate submission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DemoRequest": {
        "type": "object",
        "required": ["company_name", "contact_name", "email", "phone", "fleet_size", "challenges"],
        "properties": {
          "company_name": {
            "type": "string",
            "maxLength": 200,
            "description": "Name of the transport operator"
          },
          "contact_name": {
            "type": "string",
            "maxLength": 100,
            "description": "Full name of the primary contact"
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 255
          },
          "country_code": {
            "type": "string",
            "default": "+44",
            "description": "Phone country code"
          },
          "phone": {
            "type": "string",
            "description": "Phone number without country code"
          },
          "fleet_size": {
            "type": "string",
            "enum": ["1-10", "11-50", "51-200", "201-500", "500+"]
          },
          "challenges": {
            "type": "string",
            "maxLength": 2000,
            "description": "Operational challenges the operator currently faces"
          }
        }
      },
      "DemoResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "message": { "type": "string" },
          "id": { "type": "string", "format": "uuid" }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": { "type": "string" }
        }
      }
    }
  }
}
