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

# Get a chat

> Returns one chat you can open: your own, one shared with you, or one shared with everyone in a workspace you belong to. If the chat exists in your workspace but you can't open it, the response is 403 with the owner's name so you can request access.




## OpenAPI

````yaml /openapi/chat.yaml get /ai-chat/conversations/{id}
openapi: 3.1.0
info:
  title: Connie Chat API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for chat. They authenticate with your
    signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Chats
    description: List, create, rename, pin and delete chats.
  - name: Turns
    description: Send a message to Connie and stop a running reply.
  - name: Chat messages
    description: Read the saved messages of a chat.
  - name: Artifacts
    description: Workflows, tables, canvases, analytics views and apps attached to a chat.
  - name: Sharing
    description: >-
      Share a chat or a single file or canvas, and read a chat through its
      public link.
paths:
  /ai-chat/conversations/{id}:
    get:
      tags:
        - Chats
      summary: Get a chat
      description: >
        Returns one chat you can open: your own, one shared with you, or one
        shared with everyone in a workspace you belong to. If the chat exists in
        your workspace but you can't open it, the response is 403 with the
        owner's name so you can request access.
      operationId: getConversation
      parameters:
        - $ref: '#/components/parameters/ConversationId'
      responses:
        '200':
          description: The conversation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  conversation:
                    allOf:
                      - $ref: '#/components/schemas/Conversation'
                      - type: object
                        properties:
                          viewerIsOwner:
                            type: boolean
                          viewerCanEdit:
                            type: boolean
                            description: True when you can send messages in this chat.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The chat is in your workspace but isn't shared with you.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: access_denied
                  resource:
                    type: object
                    properties:
                      id:
                        type: string
                      type:
                        type: string
                        const: chat
                      name:
                        type:
                          - string
                          - 'null'
                      ownerName:
                        type:
                          - string
                          - 'null'
                      alreadyRequested:
                        type: boolean
                        description: True when you already have a pending access request.
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ConversationId:
      name: id
      in: path
      required: true
      description: The conversation (chat) id.
      schema:
        type: string
        format: uuid
  schemas:
    Conversation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
          description: The owner.
        workspace_id:
          type: string
          format: uuid
        project_id:
          type:
            - string
            - 'null'
          format: uuid
        title:
          type:
            - string
            - 'null'
        source:
          type:
            - string
            - 'null'
          description: Where the chat was started, for example `webapp`.
        access_type:
          type: string
          enum:
            - private
            - invited
            - everyone
        is_archived:
          type:
            - boolean
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          description: '`starred: true` means you pinned it.'
          additionalProperties: true
        last_message:
          description: Preview of the latest message.
        last_activity_at:
          type: string
          format: date-time
          description: When a message was last posted.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
      required:
        - error
  responses:
    Unauthorized:
      description: >-
        No valid session (`UNAUTHORIZED`), or the session has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found, or you can't open it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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