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

# Stream Message

> Send a message and stream agent SSE events back over the same request.

Unlike `POST /v1/conversations/{id}` (which blocks until the run finishes),
this endpoint dispatches the run and immediately returns a streaming SSE
response carrying every event the worker emits to Redis.

`format` controls the SSE wire format:
  * `vercel` (default) — pydantic-ai Vercel AI SDK frames passed through verbatim.
  * `json` — each frame normalised to `event: message\ndata: {"event": ..., "data": ...}\n\n`,
    terminated by `event: done`.



## OpenAPI

````yaml post /v1/conversations/{conversation_id}/stream
openapi: 3.1.0
info:
  title: Noxus Backend
  description: >-
    Backend API for the Noxus Platform. More information can be found at
    https://docs.noxus.ai
  version: 1.1.0
servers: []
security: []
paths:
  /v1/conversations/{conversation_id}/stream:
    post:
      tags:
        - V1 - Conversations
      summary: Stream Message
      description: >-
        Send a message and stream agent SSE events back over the same request.


        Unlike `POST /v1/conversations/{id}` (which blocks until the run
        finishes),

        this endpoint dispatches the run and immediately returns a streaming SSE

        response carrying every event the worker emits to Redis.


        `format` controls the SSE wire format:
          * `vercel` (default) — pydantic-ai Vercel AI SDK frames passed through verbatim.
          * `json` — each frame normalised to `event: message\ndata: {"event": ..., "data": ...}\n\n`,
            terminated by `event: done`.
      operationId: stream_message
      parameters:
        - name: conversation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Conversation Id
        - name: format
          in: query
          required: false
          schema:
            enum:
              - vercel
              - json
            type: string
            default: vercel
            title: Format
        - name: assistant_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Assistant Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddMessageRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    AddMessageRequest:
      properties:
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
        tool:
          anyOf:
            - type: string
              enum:
                - web_research
                - kb_qa
            - type: string
            - type: 'null'
          title: Tool
        kb_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Kb Id
        files:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConversationFile'
              type: array
            - type: 'null'
          title: Files
        model_selection:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Model Selection
      type: object
      required:
        - content
      title: AddMessageRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConversationFile:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        name:
          type: string
          title: Name
        size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        status:
          type: string
          enum:
            - pending
            - success
            - error
          title: Status
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        b64_content:
          anyOf:
            - type: string
            - type: 'null'
          title: B64 Content
      type: object
      required:
        - id
        - name
        - size
        - type
        - status
        - url
      title: ConversationFile
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````