curl --request GET \
--url https://app.livechatai.com/api/v2/conversations/{conversationId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"data": {
"id": "chat_1234567890",
"contactId": "contact_1234567890",
"agentId": "clx1234567890abcdef",
"isResolved": false,
"isAgent": false,
"isMuted": false,
"isStarred": false,
"integrationType": "WHATSAPP",
"lastMessageDate": "2024-01-20T14:45:00Z",
"agent": {
"id": "agent_1234567890",
"name": "Jane Smith",
"email": "[email protected]",
"avatar": "https://example.com/avatar.jpg"
},
"messages": [
{
"id": "msg_1234567890",
"content": "What are your business hours?",
"role": "user",
"type": "TEXT",
"source": [
{
"id": "src_1234567890",
"type": "WEBSITE",
"link": "https://example.com/page",
"distance": 0.85
}
],
"agent": {
"id": "agent_1234567890",
"name": "Jane Smith",
"email": "[email protected]",
"avatar": "https://example.com/avatar.jpg"
},
"createdAt": "2024-01-15T10:30:00Z"
}
],
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z"
}
}Retrieve details of a specific conversation including messages
curl --request GET \
--url https://app.livechatai.com/api/v2/conversations/{conversationId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"data": {
"id": "chat_1234567890",
"contactId": "contact_1234567890",
"agentId": "clx1234567890abcdef",
"isResolved": false,
"isAgent": false,
"isMuted": false,
"isStarred": false,
"integrationType": "WHATSAPP",
"lastMessageDate": "2024-01-20T14:45:00Z",
"agent": {
"id": "agent_1234567890",
"name": "Jane Smith",
"email": "[email protected]",
"avatar": "https://example.com/avatar.jpg"
},
"messages": [
{
"id": "msg_1234567890",
"content": "What are your business hours?",
"role": "user",
"type": "TEXT",
"source": [
{
"id": "src_1234567890",
"type": "WEBSITE",
"link": "https://example.com/page",
"distance": 0.85
}
],
"agent": {
"id": "agent_1234567890",
"name": "Jane Smith",
"email": "[email protected]",
"avatar": "https://example.com/avatar.jpg"
},
"createdAt": "2024-01-15T10:30:00Z"
}
],
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the conversation to retrieve
"chat_1234567890"
Successfully retrieved conversation details
"success"
Show child attributes
"chat_1234567890"
"contact_1234567890"
"clx1234567890abcdef"
false
false
false
false
Integration type of the conversation
WHATSAPP, SLACK "WHATSAPP"
Date of the last message
"2024-01-20T14:45:00Z"
Show child attributes
"msg_1234567890"
"What are your business hours?"
user, assistant "user"
Type of the message
"TEXT"
Sources used for generating the message response
Show child attributes
"src_1234567890"
WEBSITE, TEXT, QA, PDF, YOUTUBE, DOCX, IMAGE, NOTION "WEBSITE"
"https://example.com/page"
0.85
"2024-01-15T10:30:00Z"
"2024-01-15T10:30:00Z"
"2024-01-20T14:45:00Z"