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

# Get Chat

> Retrieve a specific chat by ID

Returns complete chat details including message history for the specified chat.

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the chat to retrieve
</ParamField>

## Response

<ResponseField name="id" type="string" required>
  Unique identifier for the chat
</ResponseField>

<ResponseField name="user_id" type="string" required>
  ID of the user who owns the chat
</ResponseField>

<ResponseField name="title" type="string" required>
  Chat title
</ResponseField>

<ResponseField name="chat" type="object" required>
  Chat data object containing history and messages

  <Expandable title="Chat Object">
    <ResponseField name="title" type="string">
      Chat title (may be duplicated from root level)
    </ResponseField>

    <ResponseField name="history" type="object">
      Message history container

      <Expandable title="History Object">
        <ResponseField name="messages" type="object">
          Map of message IDs to message objects
        </ResponseField>

        <ResponseField name="currentId" type="string">
          ID of the current/latest message in the conversation
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created_at" type="integer" required>
  Unix timestamp (epoch seconds) when chat was created
</ResponseField>

<ResponseField name="updated_at" type="integer" required>
  Unix timestamp (epoch seconds) when chat was last updated
</ResponseField>

<ResponseField name="share_id" type="string" optional>
  ID for sharing the chat publicly (null if not shared)
</ResponseField>

<ResponseField name="archived" type="boolean" required>
  Whether the chat is archived
</ResponseField>

<ResponseField name="pinned" type="boolean" required>
  Whether the chat is pinned
</ResponseField>

<ResponseField name="meta" type="object" default={{}}>
  Metadata object containing tags and other custom data

  <Expandable title="Meta Object">
    <ResponseField name="tags" type="array">
      Array of tag IDs associated with the chat
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="folder_id" type="string" optional>
  ID of the folder containing this chat (null if not in a folder)
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://your-domain.com/api/chats/550e8400-e29b-41d4-a716-446655440000" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "user_id": "user-123",
    "title": "AI Assistant Conversation",
    "chat": {
      "title": "AI Assistant Conversation",
      "history": {
        "messages": {
          "msg-1": {
            "id": "msg-1",
            "role": "user",
            "content": "Hello, how can you help me?",
            "timestamp": 1709164800
          },
          "msg-2": {
            "id": "msg-2",
            "role": "assistant",
            "content": "I'm here to help! What do you need?",
            "model": "gpt-4",
            "timestamp": 1709164805
          }
        },
        "currentId": "msg-2"
      }
    },
    "created_at": 1709164800,
    "updated_at": 1709251200,
    "share_id": null,
    "archived": false,
    "pinned": false,
    "meta": {
      "tags": ["work", "ai_help"]
    },
    "folder_id": null
  }
  ```
</ResponseExample>
