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
string
required
The unique identifier of the chat to retrieve
Response
string
required
Unique identifier for the chat
string
required
ID of the user who owns the chat
string
required
Chat title
object
required
integer
required
Unix timestamp (epoch seconds) when chat was created
integer
required
Unix timestamp (epoch seconds) when chat was last updated
string
ID for sharing the chat publicly (null if not shared)
boolean
required
Whether the chat is archived
boolean
required
Whether the chat is pinned
object
Metadata object containing tags and other custom data
Show Meta Object
Show Meta Object
array
Array of tag IDs associated with the chat
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
}