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

# Get chat conversation

> Get conversation metadata, associated test runs, and recent messages (newest first).

Use `limit` to control how many messages are returned (default 20). Poll until
conversation `status` is `completed`, `failed`, or `cancelled` — not merely until the
latest assistant message is `COMPLETED`, because starting a test run ends that turn
while the run continues in the background. `runs` lists any test runs started from
this chat; pass `shortId` to `get_run` (with `testCases: "all"`) for browser results.



## OpenAPI

````yaml /api-reference/api.json get /v1/chat/{chatConversationShortId}
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/chat/{chatConversationShortId}:
    get:
      tags:
        - Chat
      summary: Get chat conversation
      description: >-
        Get conversation metadata, associated test runs, and recent messages
        (newest first).


        Use `limit` to control how many messages are returned (default 20). Poll
        until

        conversation `status` is `completed`, `failed`, or `cancelled` — not
        merely until the

        latest assistant message is `COMPLETED`, because starting a test run
        ends that turn

        while the run continues in the background. `runs` lists any test runs
        started from

        this chat; pass `shortId` to `get_run` (with `testCases: "all"`) for
        browser results.
      operationId: GetChatConversation
      parameters:
        - name: chatConversationShortId
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ChatConversationShortId'
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GetChatConversationQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatConversationResponse'
components:
  schemas:
    ChatConversationShortId:
      type: string
      pattern: ^chat(-.+_.+|_.+)$
    GetChatConversationQuery:
      type: object
      properties:
        limit:
          type: integer
          format: int32
          default: 20
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    ChatConversationResponse:
      type: object
      required:
        - shortId
        - url
        - createdAt
        - updatedAt
        - status
        - runs
      properties:
        shortId:
          $ref: '#/components/schemas/ChatConversationShortId'
        url:
          type: string
          description: Dashboard URL for the conversation.
        title:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        source:
          type: string
          enum:
            - api
            - ui
            - github
            - gitlab
            - system
          description: >-
            Where the conversation originated. `api` for conversations created
            via this API, `ui` for the dashboard, `github`/`gitlab` for
            VCS-triggered chats, and `system` for everything else.
        status:
          type: string
          enum:
            - in_progress
            - completed
            - failed
            - cancelled
          description: >-
            Overall conversation lifecycle. `in_progress` while the assistant is
            working or a background test run / research task is still going.
            Assistant message `COMPLETED` is not enough — starting a run ends
            the current turn. Poll until this is `completed`, `failed`, or
            `cancelled`.
        runs:
          type: array
          items:
            $ref: '#/components/schemas/ChatConversationRun'
          description: >-
            Test runs started from this conversation, newest first. Empty until
            a run is created. Use `shortId` with `get_run` (`testCases` = all)
            or nested test-case short IDs from that call with
            `get_run_test_case`.
        messages:
          type: array
          items:
            $ref: '#/components/schemas/ChatMessageItem'
          description: >-
            Recent messages, newest first. Empty on creation; poll
            `get_chat_conversation` to retrieve. Internal wake messages are
            omitted.
      description: Conversation data with recent messages (newest first).
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    ChatConversationRun:
      type: object
      required:
        - shortId
        - status
        - result
        - url
      properties:
        shortId:
          type: string
        status:
          type: string
          description: >-
            Run lifecycle status: `INITIATED`, `RUNNING`, `COMPLETED`, `ERROR`,
            or `CANCELLED`.
        result:
          type: string
          nullable: true
          description: >-
            Run outcome once complete: `PASSED`, `FAILED`, or `SKIPPED`. `null`
            while the run is still in progress.
        url:
          type: string
          description: Dashboard URL for the run.
      description: >-
        A test run started from this conversation. `shortId` works with
        `get_run` and `rerun_run`.
    ChatMessageItem:
      type: object
      required:
        - id
        - role
        - createdAt
        - text
      properties:
        id:
          type: string
        role:
          type: string
          enum:
            - user
            - assistant
        createdAt:
          type: string
          format: date-time
        text:
          type: string
          description: The plain-text body of the message.
        status:
          type: string
          enum:
            - INITIATED
            - PARTIAL
            - COMPLETED
            - CANCELLED
            - FAILED
          description: >-
            Lifecycle status of this message. Do not treat assistant `COMPLETED`
            as the end of the conversation — starting a test run ends the
            current turn while the run continues in the background. Poll the
            conversation `status` instead.
        isStreaming:
          type: boolean
          description: True while the assistant is still streaming tokens for this message.
      description: >-
        A chat message. Tool calls and reasoning are not exposed in this
        version; only the text response is returned.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.