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
}
Chat & Messages
Get Chat
Retrieve a specific chat by ID
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
The unique identifier of the chat to retrieve
Response
Unique identifier for the chat
ID of the user who owns the chat
Chat title
Chat data object containing history and messages
Unix timestamp (epoch seconds) when chat was created
Unix timestamp (epoch seconds) when chat was last updated
ID for sharing the chat publicly (null if not shared)
Whether the chat is archived
Whether the chat is pinned
Metadata object containing tags and other custom data
Show Meta Object
Show Meta Object
Array of tag IDs associated with the chat
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
}
⌘I