> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datris.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Search chat (SSE)

> Conversational data discovery for the Search tab — finds the data that answers a question, queries/searches it, and answers with citations. The tool catalog is filtered server-side to READ-ONLY discovery/query/search tools; the agent never sees mutating tools. The optional `context` object may carry a catalog scope, e.g. `{"catalog": "finance"}` (or "Uncataloged"; "All"/empty means unscoped). Streams the same SSE event format as `/assistant/chat`.



## OpenAPI

````yaml /openapi.yaml post /api/v1/search-chat/chat
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/search-chat/chat:
    post:
      tags:
        - Chat
      summary: Search chat (SSE)
      description: >-
        Conversational data discovery for the Search tab — finds the data that
        answers a question, queries/searches it, and answers with citations. The
        tool catalog is filtered server-side to READ-ONLY discovery/query/search
        tools; the agent never sees mutating tools. The optional `context`
        object may carry a catalog scope, e.g. `{"catalog": "finance"}` (or
        "Uncataloged"; "All"/empty means unscoped). Streams the same SSE event
        format as `/assistant/chat`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatRequest'
      responses:
        '200':
          description: Server-Sent Events stream of agent-loop events
          content:
            text/event-stream:
              schema:
                type: string
components:
  schemas:
    ChatRequest:
      type: object
      required:
        - messages
      properties:
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                  - user
                  - assistant
              content:
                type: string
        maxIterations:
          type: integer
          default: 50
          description: >-
            Maximum agent-loop iterations (LLM + tool-call rounds) before the
            loop stops
        context:
          type: object
          description: >-
            Optional endpoint-specific context object (see each chat endpoint's
            description)
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````