{
 "openapi": "3.1.0",
 "info": {
  "title": "API para agentes de IA de www.bonbay.fr",
  "version": "1.0.0",
  "summary": "Solo lectura: páginas, preguntas frecuentes, ofertas y precios publicados, datos de contacto, búsqueda, en los cinco sitios de Bonbay.",
  "description": "API pública, sin clave, CORS abierto, de solo lectura. Ninguna ruta escribe, envía formularios ni crea solicitudes: para una cita, facilite al visitante el enlace que devuelve /api/agents/contact/. Los precios solo se devuelven si están publicados en la página, con la frase exacta (cita). El texto completo de una página se obtiene en Markdown añadiendo .md a su dirección. Un servidor MCP (Streamable HTTP) ofrece la misma información: https://www.bonbay.fr/es/mcp/. Guía: https://www.bonbay.fr/es/agents-ia/.",
  "contact": {
   "name": "BONBAY SAS",
   "email": "contact@bonbay.fr",
   "url": "https://www.bonbay.fr/es/contact/"
  },
  "termsOfService": "https://www.bonbay.fr/es/mentions-legales/"
 },
 "servers": [
  {
   "url": "https://www.bonbay.fr/es",
   "description": "www.bonbay.fr: el grupo en la raíz, los servicios en /ia, /cyber, /academie, /es/design"
  }
 ],
 "externalDocs": {
  "description": "Guía para desarrolladores de agentes",
  "url": "https://www.bonbay.fr/es/agents-ia/"
 },
 "tags": [
  {
   "name": "groupe",
   "description": "El sitio del grupo, que reúne también los datos de los cuatro servicios."
  },
  {
   "name": "marques",
   "description": "El sitio de un servicio."
  },
  {
   "name": "documents",
   "description": "Textos para agentes."
  }
 ],
 "paths": {
  "/api/agents/": {
   "get": {
    "summary": "Índice de la API",
    "description": "Lo que expone el sitio y dónde.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "El índice.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/pages/": {
   "get": {
    "summary": "Páginas del grupo",
    "description": "Todas las páginas del sitio del grupo.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Las páginas del sitio.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "tronque": {
           "type": "integer"
          },
          "pages": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Página"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/faq/": {
   "get": {
    "summary": "Preguntas frecuentes del grupo",
    "description": "Todas las preguntas frecuentes del sitio del grupo.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Las preguntas frecuentes.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "questions": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Pregunta"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/offres/": {
   "get": {
    "summary": "Ofertas y precios de los cuatro servicios",
    "description": "Reúne las ofertas y precios publicados de los servicios.",
    "parameters": [
     {
      "name": "marque",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "toutes",
        "ia",
        "cyber",
        "academie",
        "design"
       ],
       "default": "toutes"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Las ofertas, por sitio.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "devise": {
           "const": "EUR"
          },
          "regle": {
           "type": "string"
          },
          "sites": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "marque": {
              "type": "string"
             },
             "site": {
              "type": "string"
             },
             "offres": {
              "type": "array",
              "items": {
               "$ref": "#/components/schemas/Oferta"
              }
             }
            }
           }
          },
          "indisponibles": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/contact/": {
   "get": {
    "summary": "Datos de contacto y citas",
    "description": "Dirección, teléfono, correo electrónico, enlace para pedir cita, documentos legales.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Datos de contacto y solicitud de cita.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Coordonnees"
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/recherche/": {
   "get": {
    "summary": "Búsqueda en los cinco sitios",
    "description": "Búsqueda de texto completo en los cinco sitios.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "La pregunta o las palabras buscadas.",
      "schema": {
       "type": "string",
       "maxLength": 200
      }
     },
     {
      "name": "marque",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "toutes",
        "groupe",
        "ia",
        "cyber",
        "academie",
        "design"
       ],
       "default": "toutes"
      }
     },
     {
      "name": "max",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Las páginas más próximas a la pregunta.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "question": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "resultats": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Resultado"
           }
          },
          "indisponibles": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/": {
   "get": {
    "summary": "Índice de la API de un servicio",
    "description": "Lo que expone el sitio del servicio.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "El sitio del servicio.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "El índice.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/pages/": {
   "get": {
    "summary": "Páginas de un servicio",
    "description": "Todas las páginas del sitio del servicio.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "El sitio del servicio.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Las páginas del sitio.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "tronque": {
           "type": "integer"
          },
          "pages": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Página"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/faq/": {
   "get": {
    "summary": "Preguntas frecuentes de un servicio",
    "description": "Todas las preguntas frecuentes del sitio del servicio.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "El sitio del servicio.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Las preguntas frecuentes.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "questions": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Pregunta"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/offres/": {
   "get": {
    "summary": "Ofertas y precios de un servicio",
    "description": "Las ofertas del servicio, con los precios publicados y su frase.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "El sitio del servicio.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Las ofertas y sus precios publicados.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "devise": {
           "const": "EUR"
          },
          "regle": {
           "type": "string"
          },
          "rendezVous": {
           "type": "string",
           "format": "uri"
          },
          "offres": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Oferta"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/contact/": {
   "get": {
    "summary": "Datos de contacto (servicio)",
    "description": "Los datos de contacto, con la página de contacto del servicio.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "El sitio del servicio.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Datos de contacto y solicitud de cita.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Coordonnees"
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/recherche/": {
   "get": {
    "summary": "Búsqueda en un servicio",
    "description": "Búsqueda de texto completo en el sitio del servicio.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "El sitio del servicio.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "La pregunta o las palabras buscadas.",
      "schema": {
       "type": "string",
       "maxLength": 200
      }
     },
     {
      "name": "max",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Las páginas más próximas a la pregunta.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "question": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "resultats": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Resultado"
           }
          },
          "indisponibles": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/llms.txt": {
   "get": {
    "summary": "llms.txt del grupo",
    "description": "Le résumé du site au format llmstxt.org (chaque service a le sien : /{marque}/llms.txt).",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Texto Markdown.",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/llms-full.txt": {
   "get": {
    "summary": "El sitio completo en Markdown",
    "description": "El texto de todas las páginas en un archivo (cada servicio tiene el suyo).",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Texto Markdown.",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/index.md": {
   "get": {
    "summary": "Página de inicio en Markdown",
    "description": "Cada página tiene su versión Markdown: su dirección sin la barra final, seguida de .md.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "La página en Markdown.",
      "content": {
       "text/markdown": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Page": {
    "type": "object",
    "properties": {
     "chemin": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "markdown": {
      "type": "string",
      "format": "uri"
     },
     "type": {
      "type": "string"
     },
     "rubrique": {
      "type": "string"
     },
     "nom": {
      "type": "string"
     },
     "titre": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "reponse": {
      "type": "string"
     },
     "intertitres": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "questions": {
      "type": "integer"
     },
     "miseAJour": {
      "type": "string",
      "format": "date"
     }
    }
   },
   "Question": {
    "type": "object",
    "properties": {
     "question": {
      "type": "string"
     },
     "reponse": {
      "type": "string"
     },
     "page": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     }
    }
   },
   "Prix": {
    "type": "object",
    "required": [
     "libelle",
     "min",
     "taxes",
     "unite",
     "citation"
    ],
    "properties": {
     "libelle": {
      "type": "string"
     },
     "min": {
      "type": "number"
     },
     "max": {
      "type": "number"
     },
     "taxes": {
      "enum": [
       "HT",
       "TTC"
      ]
     },
     "unite": {
      "type": "string"
     },
     "citation": {
      "type": "string",
      "description": "La frase exacta de la página."
     },
     "source": {
      "type": "string",
      "format": "uri"
     }
    }
   },
   "Offre": {
    "type": "object",
    "properties": {
     "nom": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "markdown": {
      "type": "string",
      "format": "uri"
     },
     "description": {
      "type": "string"
     },
     "reponse": {
      "type": "string"
     },
     "devise": {
      "const": "EUR"
     },
     "prix": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Precios"
      }
     },
     "tarification": {
      "type": "string"
     }
    }
   },
   "Resultat": {
    "type": "object",
    "properties": {
     "marque": {
      "type": "string"
     },
     "site": {
      "type": "string"
     },
     "chemin": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "markdown": {
      "type": "string",
      "format": "uri"
     },
     "titre": {
      "type": "string"
     },
     "type": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "extrait": {
      "type": "string"
     },
     "score": {
      "type": "number"
     }
    }
   },
   "Coordonnees": {
    "type": "object",
    "properties": {
     "societe": {
      "type": "string"
     },
     "marque": {
      "type": "string"
     },
     "telephone": {
      "type": "string"
     },
     "telephoneInternational": {
      "type": "string"
     },
     "courriel": {
      "type": "string",
      "format": "email"
     },
     "bureaux": {
      "type": "object"
     },
     "siegeSocial": {
      "type": "string"
     },
     "zoneIntervention": {
      "type": "string"
     },
     "horaires": {
      "type": [
       "string",
       "null"
      ]
     },
     "rendezVous": {
      "type": "object",
      "properties": {
       "page": {
        "type": "string",
        "format": "uri"
       },
       "description": {
        "type": "string"
       }
      }
     },
     "documents": {
      "type": "object"
     }
    }
   }
  }
 }
}