{
  "openapi": "3.1.0",
  "info": {
    "title": "Klarframe intro call API",
    "version": "1.0.0",
    "description": "Free 30-minute video intro call with the Klarframe founders, Monday to Friday afternoons (Europe/Madrid). The booking needs the real name, company and email of the person; agents should let the person confirm before calling POST /api/intro-call/book, or hand them the booking page link from the MCP tool prepare_intro_call.",
    "contact": {
      "email": "info@klarframe.com",
      "url": "https://klarframe.com"
    }
  },
  "servers": [
    {
      "url": "https://klarframe.com"
    }
  ],
  "paths": {
    "/api/intro-call/slots": {
      "get": {
        "operationId": "getIntroSlots",
        "summary": "Free intro call slots",
        "responses": {
          "200": {
            "description": "Free slots grouped by Madrid date",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date"
                          },
                          "slots": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "date-time",
                              "description": "Slot start in UTC, ISO 8601, e.g. 2026-11-17T14:00:00.000Z"
                            }
                          }
                        },
                        "required": [
                          "date",
                          "slots"
                        ]
                      }
                    }
                  },
                  "required": [
                    "days"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/intro-call/book": {
      "post": {
        "operationId": "bookIntroCall",
        "summary": "Book an intro call (sends a confirmation email to the person)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "startsAt",
                  "name",
                  "company",
                  "email"
                ],
                "properties": {
                  "startsAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Slot start in UTC, ISO 8601, e.g. 2026-11-17T14:00:00.000Z"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "de",
                      "en",
                      "es",
                      "it"
                    ],
                    "default": "de"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "company": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 254
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "topic": {
                    "type": "string",
                    "maxLength": 600,
                    "description": "What the person wants to talk about"
                  },
                  "timezone": {
                    "type": "string",
                    "description": "IANA time zone of the person, used in the confirmation email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Booked",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "startsAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Slot start in UTC, ISO 8601, e.g. 2026-11-17T14:00:00.000Z"
                    }
                  },
                  "required": [
                    "ok",
                    "startsAt"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Missing fields, invalid email or invalid JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "invalid",
                        "fields",
                        "email"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Slot not free (taken, outside hours or invalid date)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "taken"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many bookings from this address (5 per 10 minutes)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Booking failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "failed"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}