Skip to main content
GET
/
api
/
chats
/
{id}
curl -X GET "https://your-domain.com/api/chats/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "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
}
Returns complete chat details including message history for the specified chat.

Path Parameters

id
string
required
The unique identifier of the chat to retrieve

Response

id
string
required
Unique identifier for the chat
user_id
string
required
ID of the user who owns the chat
title
string
required
Chat title
chat
object
required
Chat data object containing history and messages
created_at
integer
required
Unix timestamp (epoch seconds) when chat was created
updated_at
integer
required
Unix timestamp (epoch seconds) when chat was last updated
share_id
string
ID for sharing the chat publicly (null if not shared)
archived
boolean
required
Whether the chat is archived
pinned
boolean
required
Whether the chat is pinned
meta
object
Metadata object containing tags and other custom data
folder_id
string
ID of the folder containing this chat (null if not in a folder)
curl -X GET "https://your-domain.com/api/chats/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "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
}