HTTP API reference
The gateway’s HTTP contract is one OpenAPI 3.1 document,
docs/openapi.yaml
(its info.version is the gateway version): the OpenAI-compatible /v1
surface (chat completions, embeddings, rerank, decisions, models), the
operational routes (/health, /health/providers, /metrics) and
every master-key /admin route a control plane drives.
- A test in
crates/server/src/app.rsfails the build when a mounted route is missing from the document or the document names a route that is not mounted, so the file always describes the running router. - With
[auth] enabled = truethe gateway serves the same document as JSON atGET /openapi.json(master key), which is how the Meilisearch Lab vendors it. Like the other platform routes it answers403 LM-4005to a call scoped withX-Lumen-Account-Ref(see Lab integration). - Every error is the
{"error": {"code": "LM-xxxx", ...}}envelope of Error codes.
Render it with any OpenAPI viewer, for example
npx @redocly/cli@1 build-docs docs/openapi.yaml (writes a static
redoc-static.html).