> ## Documentation Index
> Fetch the complete documentation index at: https://thebettercontextapp-davis-web-resource.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ask a question (stream)

Streams server-sent events for the query lifecycle.


## OpenAPI

````yaml POST /question/stream
openapi: 3.1.0
info:
  title: btca Local Server API
  version: 2.0.0
  description: Local HTTP API exposed by btca-server.
servers:
  - url: http://localhost:{port}
    variables:
      port:
        default: '8080'
security: []
paths:
  /question/stream:
    post:
      summary: Ask a question (SSE stream)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuestionRequest'
      responses:
        '200':
          description: >-
            Server-sent events stream. Event types: meta, reasoning.delta,
            text.delta, tool.updated, done, error.
          content:
            text/event-stream:
              schema:
                type: string
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    QuestionRequest:
      type: object
      required:
        - question
      properties:
        question:
          type: string
        resources:
          type: array
          items:
            type: string
        quiet:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - error
        - tag
      properties:
        error:
          type: string
        tag:
          type: string
        hint:
          type: string

````