> ## 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.

# Abort the named session's in-flight chat turn

> Abort the in-flight chat turn owned by `sessionId`. Idempotent. A turn owned by a different session is left untouched (204).



## OpenAPI

````yaml /api-reference/mobilerun-va-chat.yaml post /assistant/chat/abort
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/abort:
    post:
      tags:
        - Chat
      summary: Abort the named session's in-flight chat turn
      description: >-
        Abort the in-flight chat turn owned by `sessionId`. Idempotent. A turn
        owned by a different session is left untouched (204).
      operationId: chatAbort
      requestBody:
        content:
          application/json:
            schema:
              properties:
                sessionId:
                  format: uuid
                  type: string
              required:
                - sessionId
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  ok:
                    enum:
                      - true
                    type: boolean
                required:
                  - ok
                type: object
          description: Abort accepted
        '204':
          description: No active turn owned by this session
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                required:
                  - message
                type: object
          description: Unknown or archived sessionId
        '500':
          description: Internal Server Error
      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.abort({
              sessionId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
            });

            console.log(response.ok);
        - 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
            )
            response = client.assistant.conversations.abort(
                session_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(response.ok)
components:
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````