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

# Get chat details

> Returns detailed information about a specific chat including documents



## OpenAPI

````yaml https://interact.turntwo.com/api/openapi.json get /api/agents/chats/{chat_id}
openapi: 3.0.0
info:
  title: Turntwo Interact API
  description: API for managing agent jobs, chats, and triggering job executions
  version: 1.0.0
servers:
  - url: https://interact.turntwo.com
    description: Production server
security: []
tags:
  - name: Jobs
    description: Agent job management endpoints
  - name: Chats
    description: Agent chat endpoints
paths:
  /api/agents/chats/{chat_id}:
    get:
      tags:
        - Chats
      summary: Get chat details
      description: Returns detailed information about a specific chat including documents
      parameters:
        - name: chat_id
          in: path
          required: true
          schema:
            type: string
          description: Chat ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatDetail'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - Missing required permission or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found - Chat not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
          OrganizationId: []
components:
  schemas:
    ChatDetail:
      type: object
      properties:
        id:
          type: string
          description: Chat ID
        agent:
          $ref: '#/components/schemas/Agent'
          description: Agent information
        job:
          $ref: '#/components/schemas/JobInfo'
          description: Job information
        organization:
          $ref: '#/components/schemas/Organization'
          description: Organization information
        status:
          type: string
          description: Chat status
        initiator:
          type: string
          description: Who initiated the chat
        createdAt:
          type: string
          format: date-time
          description: Chat creation timestamp
        documents:
          type: array
          items:
            $ref: '#/components/schemas/Document'
      required:
        - id
        - agent
        - job
        - organization
        - status
        - initiator
        - createdAt
        - documents
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
    Agent:
      type: object
      properties:
        id:
          type: string
          description: Agent ID
        name:
          type: string
          nullable: true
          description: Agent name
      required:
        - id
    JobInfo:
      type: object
      properties:
        id:
          type: string
          nullable: true
          description: Job ID
        name:
          type: string
          nullable: true
          description: Job name
      required:
        - id
    Organization:
      type: object
      properties:
        id:
          type: string
          description: Organization ID
        name:
          type: string
          nullable: true
          description: Organization name
      required:
        - id
    Document:
      type: object
      properties:
        id:
          type: string
          description: Document ID
        type:
          type: string
          nullable: true
          description: Document type
        createdAt:
          type: string
          format: date-time
          description: Document creation timestamp
        pdfLink:
          type: string
          format: uri
          description: PDF download link (only for document-report type)
      required:
        - id
        - createdAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication
    OrganizationId:
      type: apiKey
      in: header
      name: X-Organization-Id
      description: Organization ID associated with the API key

````