{
  "openapi": "3.1.0",
  "info": {
    "title": "Mnday Labs public documentation search",
    "version": "1.0.0",
    "description": "Anonymous NLWeb 0.55 public document retrieval. No private records or generative advice."
  },
  "servers": [
    {
      "url": "https://mndaylabs.com"
    }
  ],
  "paths": {
    "/ask": {
      "post": {
        "operationId": "searchPublicDocumentation",
        "summary": "Search official public documents",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "query"
                ],
                "properties": {
                  "query": {
                    "type": "object",
                    "required": [
                      "text"
                    ],
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    }
                  },
                  "prefer": {
                    "type": "object",
                    "properties": {
                      "streaming": {
                        "type": "boolean"
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "list"
                        ]
                      },
                      "response_format": {
                        "type": "string",
                        "enum": [
                          "conversational_search"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "NLWeb answer with results, or start/result/complete SSE events.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "_meta",
                    "results"
                  ],
                  "properties": {
                    "_meta": {
                      "type": "object"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "NLWeb failure for invalid query or unsupported preferences."
          }
        }
      }
    }
  }
}
