{
 "openapi": "3.1.0",
 "info": {
  "title": "API for AI agents of www.bonbay.fr",
  "version": "1.0.0",
  "summary": "Read-only: pages, FAQs, offers and published prices, contact details, search, across the five Bonbay sites.",
  "description": "Public API, no key, open CORS, read-only. No route writes data, submits a form or creates a request: for an appointment, give the visitor the link returned by /api/agents/contact/. Prices are returned only if they are published on the page, with the exact sentence (quotation). The full text of a page is available in Markdown by adding .md to its address. An MCP server (Streamable HTTP) provides the same information: https://www.bonbay.fr/en/mcp/. Guide: https://www.bonbay.fr/en/agents-ia/.",
  "contact": {
   "name": "BONBAY SAS",
   "email": "contact@bonbay.fr",
   "url": "https://www.bonbay.fr/en/contact/"
  },
  "termsOfService": "https://www.bonbay.fr/en/mentions-legales/"
 },
 "servers": [
  {
   "url": "https://www.bonbay.fr/en",
   "description": "www.bonbay.fr: the group at the root, the services under /ia, /cyber, /academie, /en/design"
  }
 ],
 "externalDocs": {
  "description": "Guide for agent developers",
  "url": "https://www.bonbay.fr/en/agents-ia/"
 },
 "tags": [
  {
   "name": "groupe",
   "description": "The group site, which also brings together the data of the four services."
  },
  {
   "name": "marques",
   "description": "A service’s site."
  },
  {
   "name": "documents",
   "description": "Text for agents."
  }
 ],
 "paths": {
  "/api/agents/": {
   "get": {
    "summary": "API index",
    "description": "What the site exposes and where.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "The index.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/pages/": {
   "get": {
    "summary": "Group pages",
    "description": "All pages on the group site.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "The site’s pages.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "tronque": {
           "type": "integer"
          },
          "pages": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Page"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/faq/": {
   "get": {
    "summary": "Group frequently asked questions",
    "description": "All frequently asked questions on the group site.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "FAQs.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "questions": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Question"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/offres/": {
   "get": {
    "summary": "Offers and prices of the four services",
    "description": "Brings together the services’ offers and published prices.",
    "parameters": [
     {
      "name": "marque",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "toutes",
        "ia",
        "cyber",
        "academie",
        "design"
       ],
       "default": "toutes"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Offers, by site.",
      "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/Offer"
              }
             }
            }
           }
          },
          "indisponibles": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/contact/": {
   "get": {
    "summary": "Contact details and appointments",
    "description": "Address, phone, e-mail, appointment booking link, legal documents.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Contact details and appointment booking.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Contact details"
        }
       }
      }
     }
    }
   }
  },
  "/api/agents/recherche/": {
   "get": {
    "summary": "Search across the five sites",
    "description": "Full-text search across the five sites.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "The question or search terms.",
      "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": "The pages closest to the question.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "question": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "resultats": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Result"
           }
          },
          "indisponibles": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/": {
   "get": {
    "summary": "A service’s API index",
    "description": "What the service’s site exposes.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "The service’s site.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The index.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/pages/": {
   "get": {
    "summary": "A service’s pages",
    "description": "Every page of the service’s site.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "The service’s site.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The site’s pages.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "tronque": {
           "type": "integer"
          },
          "pages": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Page"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/faq/": {
   "get": {
    "summary": "A service’s FAQs",
    "description": "Every FAQ on the service’s site.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "The service’s site.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "FAQs.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "site": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "questions": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Question"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/offres/": {
   "get": {
    "summary": "A service’s offers and prices",
    "description": "The service’s offers, with published prices and their description.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "The service’s site.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Offers and their published prices.",
      "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/Offer"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/contact/": {
   "get": {
    "summary": "Contact details (service)",
    "description": "Contact details, with the service’s contact page.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "The service’s site.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Contact details and appointment booking.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Contact details"
        }
       }
      }
     }
    }
   }
  },
  "/{marque}/api/agents/recherche/": {
   "get": {
    "summary": "Search within a service",
    "description": "Full-text search of the service’s site.",
    "parameters": [
     {
      "name": "marque",
      "in": "path",
      "required": true,
      "description": "The service’s site.",
      "schema": {
       "type": "string",
       "enum": [
        "ia",
        "cyber",
        "academie",
        "design"
       ]
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "The question or search terms.",
      "schema": {
       "type": "string",
       "maxLength": 200
      }
     },
     {
      "name": "max",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The pages closest to the question.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "question": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "resultats": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Result"
           }
          },
          "indisponibles": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/llms.txt": {
   "get": {
    "summary": "Group llms.txt",
    "description": "Le résumé du site au format llmstxt.org (chaque service a le sien : /{marque}/llms.txt).",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Markdown text.",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/llms-full.txt": {
   "get": {
    "summary": "The whole site in Markdown",
    "description": "The text of every page in one file (each service has its own).",
    "parameters": [],
    "responses": {
     "200": {
      "description": "Markdown text.",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/index.md": {
   "get": {
    "summary": "Home page in Markdown",
    "description": "Every page has a Markdown version: its address without the trailing slash, followed by .md.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "The page in 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": "The exact sentence from the page."
     },
     "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/Prices"
      }
     },
     "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"
     }
    }
   }
  }
 }
}