{
  "openapi": "3.1.0",
  "info": {
    "title": "novaeon.studio public API",
    "version": "1.0.0",
    "description": "Public HTTP endpoints of novaeon.studio. AI agents should prefer the MCP server (https://novaeon.studio/mcp) or the A2A agent (https://novaeon.studio/a2a) to send inquiries; /api/lead is the backend of the website forms and enforces human-form checks. Operated by NOVAEON STUDIO S.R.L. (Romania; CUI 49517850) under the brand Novaeon Studio.",
    "contact": {
      "name": "Novaeon Studio (NOVAEON STUDIO S.R.L.)",
      "email": "office@novaeon.studio",
      "url": "https://novaeon.studio/#contact"
    }
  },
  "servers": [
    {
      "url": "https://novaeon.studio"
    }
  ],
  "paths": {
    "/api/lead": {
      "get": {
        "summary": "Health check of the lead endpoint",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Website contact / diagnostic form submission",
        "description": "Used by the site's forms. Requires `ts` (epoch ms when the form was opened, at least 2.5 s and at most 1 h ago) and an empty honeypot `company_url`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "consent",
                  "ts"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "company": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "segment": {
                    "type": "string",
                    "enum": [
                      "individual",
                      "startup",
                      "imm",
                      "corporate",
                      "ong"
                    ]
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "automation",
                        "ai-agents",
                        "sap-joule",
                        "release-mgmt",
                        "web",
                        "integrations",
                        "data",
                        "content",
                        "diagnostic",
                        "other"
                      ]
                    }
                  },
                  "timeline": {
                    "type": "string",
                    "enum": [
                      "asap",
                      "1-3m",
                      "3-6m",
                      "explore"
                    ]
                  },
                  "budget": {
                    "type": "string",
                    "enum": [
                      "<1k",
                      "1-5k",
                      "5-15k",
                      "15k+",
                      "unsure"
                    ]
                  },
                  "consent": {
                    "type": "boolean",
                    "const": true
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "contact",
                      "diagnostic"
                    ]
                  },
                  "locale": {
                    "type": "string"
                  },
                  "ts": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stored and forwarded to Novaeon"
          },
          "400": {
            "description": "Malformed body"
          },
          "422": {
            "description": "Validation or timing check failed"
          },
          "413": {
            "description": "Body too large ({ok:false,error:'too_large'})"
          },
          "429": {
            "description": "Rate limited ({ok:false,error:'rate_limited'}); see Retry-After"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "summary": "MCP server (Streamable HTTP, JSON-RPC 2.0)",
        "description": "See /.well-known/mcp/server-card.json",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          },
          "202": {
            "description": "Notification accepted"
          }
        }
      }
    },
    "/a2a": {
      "post": {
        "summary": "A2A agent (JSON-RPC binding, A2A 1.0)",
        "description": "See /.well-known/agent-card.json",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      }
    },
    "/api/booking/slots": {
      "get": {
        "summary": "Free 30-minute Agent Strategy Call slots",
        "description": "Mon–Fri 10:00–17:00 Europe/Bucharest, 30-min calls with 30-min buffer, max 3 per day, from the next working day, 21 days ahead. Times are ISO 8601 UTC.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "tz": {
                      "type": "string"
                    },
                    "durationMin": {
                      "type": "integer"
                    },
                    "slots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "end": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/booking": {
      "get": {
        "summary": "Health check of the booking endpoint",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "summary": "Request a 30-minute Agent Strategy Call (tentative; Novaeon confirms personally and sends the Microsoft Teams invitation)",
        "description": "Used by the site's booking flow. `start` must equal a `slots[].start` from /api/booking/slots. Requires `ts` (epoch ms when the flow was opened, 3 s – 2 h ago), `consent: true` and an empty honeypot `company_url`. Errors: 409 slot_taken / slot_unavailable, 422 invalid / timing, 429 rate_limited.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "start",
                  "name",
                  "email",
                  "goal",
                  "consent",
                  "ts"
                ],
                "properties": {
                  "start": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "company": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "goal": {
                    "type": "string",
                    "enum": [
                      "first-agent",
                      "sap-joule",
                      "release-governance",
                      "private-ai",
                      "audit",
                      "other"
                    ]
                  },
                  "area": {
                    "type": "string",
                    "enum": [
                      "sap",
                      "agents",
                      "release",
                      "lab",
                      "other"
                    ]
                  },
                  "size": {
                    "type": "string",
                    "enum": [
                      "1-10",
                      "11-50",
                      "51-250",
                      "251-1000",
                      "1000+"
                    ]
                  },
                  "timeframe": {
                    "type": "string",
                    "enum": [
                      "now",
                      "1-3m",
                      "3-6m",
                      "exploring"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "locale": {
                    "type": "string",
                    "enum": [
                      "en",
                      "ro",
                      "de",
                      "es",
                      "zh"
                    ]
                  },
                  "consent": {
                    "type": "boolean"
                  },
                  "ts": {
                    "type": "integer"
                  },
                  "company_url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Booking stored (status requested)"
          },
          "409": {
            "description": "Slot taken or not offered"
          },
          "422": {
            "description": "Invalid or timing"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    }
  }
}