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

# Re-attach to the active turn stream

> Reconnect to the in-flight turn stream. Replays buffered events from the start of the active turn, then continues live until the turn finishes. Responds 204 when no active turn exists for the requested session. Upstream streaming failures return a retryable 503 with `Retry-After`. Resume is best-effort. Does not start an inactive session.



## OpenAPI

````yaml /api-reference/mobilerun-va-chat.yaml get /assistant/chat/stream
openapi: 3.1.0
info:
  title: Mobilerun VA Chat
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /assistant/chat/stream:
    get:
      tags:
        - Chat
      summary: Re-attach to the active turn stream
      description: >-
        Reconnect to the in-flight turn stream. Replays buffered events from the
        start of the active turn, then continues live until the turn finishes.
        Responds 204 when no active turn exists for the requested session.
        Upstream streaming failures return a retryable 503 with `Retry-After`.
        Resume is best-effort. Does not start an inactive session.
      operationId: chatStream
      parameters:
        - in: query
          name: sessionId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                type: string
          description: Streamed events (SSE), replayed from turn start
        '204':
          description: No active turn to re-attach to
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                properties:
                  code:
                    enum:
                      - upstream_unavailable
                    type: string
                  message:
                    type: string
                  status:
                    enum:
                      - 503
                    type: number
                required:
                  - code
                  - status
                  - message
                type: object
          description: >-
            The active turn exists, but its upstream stream is temporarily
            unavailable
          headers:
            Retry-After:
              description: Seconds to wait before retrying the stream attach
              schema:
                type: string
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Mobilerun from '@mobilerun/sdk';

            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.assistant.conversations.stream({
              sessionId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
            });

            console.log(response);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            for conversation in client.assistant.conversations.stream(
                session_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            ):
              print(conversation)
components:
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````