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

# Read a shared chat

> Reads a chat through its public link, with no sign-in. Pass the token from the link's `t` parameter. Returns up to 500 user and assistant messages, read-only.




## OpenAPI

````yaml /openapi/chat.yaml get /ai-chat/public/{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/public/{id}:
    get:
      tags:
        - Sharing
      summary: Read a shared chat
      description: >
        Reads a chat through its public link, with no sign-in. Pass the token
        from the link's `t` parameter. Returns up to 500 user and assistant
        messages, read-only.
      operationId: getSharedChat
      parameters:
        - $ref: '#/components/parameters/ConversationId'
        - name: t
          in: query
          required: true
          description: The token from the public link.
          schema:
            type: string
      responses:
        '200':
          description: The shared chat.
          content:
            application/json:
              schema:
                type: object
                properties:
                  readonly:
                    type: boolean
                    const: true
                  conversation:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      title:
                        type: string
                  messages:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        role:
                          type: string
                          enum:
                            - user
                            - assistant
                        content:
                          type: string
                        created_at:
                          type: string
                          format: date-time
                        attachments:
                          type: array
                          description: Files the user attached (user messages only).
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              fileName:
                                type: string
                              mimeType:
                                type: string
                              fileSize:
                                type: integer
                        artifacts:
                          type: array
                          description: >-
                            Files and canvases Connie produced (assistant
                            messages only).
                          items:
                            type: object
                            properties:
                              sourceType:
                                type: string
                                enum:
                                  - file
                                  - canvas
                              sourceId:
                                type: string
                              title:
                                type: string
        '401':
          description: The link is missing its token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The link is wrong or has been turned off.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  parameters:
    ConversationId:
      name: id
      in: path
      required: true
      description: The conversation (chat) id.
      schema:
        type: string
        format: uuid
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
      required:
        - 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.