Retrieve all conversations associated with a specific ticket
curl --request GET \
--url https://demo.enneo.ai/api/mind/ticket/{ticketId}/conversation \
--header 'Authorization: Bearer <token>'{
"conversations": [
{
"id": 123,
"ticketId": 123,
"type": "html",
"direction": "out",
"private": false,
"isDraft": false,
"fromEmail": "[email protected]",
"fromEmailName": "Enneo Admin",
"agentId": 1,
"sender": {
"id": 1,
"name": "Enneo Admin",
"email": "[email protected]"
},
"toEmail": [
"[email protected]"
],
"ccEmails": [
"[email protected]"
],
"body": "<div>Thank you for your message, we can inform you that...</div>",
"bodyPlain": "Thank you for your message, we can inform you that...",
"bodyClean": "Thank you for your message, we can inform you that...",
"content": {
"message": "Thank you for your message, we can inform you that..."
},
"intentIds": [
"ai_agent_meter_reading"
],
"cortexRequestId": 123,
"attachments": [
{
"id": "103013960646,",
"url": "https://storage.googleapis.com/enneo-attachments-public/a1/103013960646-4b1aa775/IMG_20230301_192712.jpg",
"name": "IMG_20230301_192712.jpg",
"size": 2292952,
"width": 3120,
"height": 4160,
"inline": false,
"fileEnding": "jpg",
"contentType": "image/jpeg",
"originalUrl": "https://storage.example.com/attachments/IMG_20230301_192712.jpg",
"extractedData": null,
"extractionStatus": "success",
"extractionData": {
"confidence": 0.815,
"meterValue": 87870.5
}
}
],
"crmNotificationId": 123,
"createdAt": 1657056276,
"modifiedAt": 1672756198,
"deletedAt": 1672756198
}
],
"success": true
}JWT-based authentication
The ID of the ticket to get conversations for
Whether to include raw data in the response
Successful operation
Show child attributes
ID of conversation
123
123
Type of message
"html"
"out"
If true, then this conversation is a private/internal note of an agent
false
If true, then this conversation is a draft that requires supervisor approval before sending
false
"Enneo Admin"
1
Sender of the message
Show child attributes
1
"Enneo Admin"
Only for email channel
Only for email channel
Deprecated, use content.message instead
"<div>Thank you for your message, we can inform you that...</div>"
Deprecated, use content.message instead
"Thank you for your message, we can inform you that..."
Deprecated, use content.message instead
"Thank you for your message, we can inform you that..."
IDs of intents that were detected in the message
ID of the request to cortex
123
Show child attributes
id of attachment
103013960646
"https://client.enneo.ai/attachments/reading_w23po_107647890574i49994_(1).pdf"
"reading_w23po_107647890574i49994_(1).pdf"
size of attachment in bytes.
721592
width of image attachment in pixels. Can be ommitted for non-image attachments.
3120
height of image attachment in pixels. Can be ommitted for non-image attachments.
4160
true if attachment is an inline image
false
file ending of attachment
"pdf"
content type of attachment
"application/pdf"
url of original attachment, most likely contains invalid temporary access token
"https://storage.example.com/attachments/reading_w23po_107647890574i49994_(1).pdf"
data extracted from the attachment, e.g. a PDF text or a meter reading
Status of the current extraction. Valid options: "notStarted", "inProgress", "success", "error"
"notStarted"
Data extracted from the attachment by meterReadingMicroservice
{ "confidence": 1, "meterValue": 1234 }ID of the notification in the CRM system
123
1657056276
1672756198
1672756198
curl --request GET \
--url https://demo.enneo.ai/api/mind/ticket/{ticketId}/conversation \
--header 'Authorization: Bearer <token>'{
"conversations": [
{
"id": 123,
"ticketId": 123,
"type": "html",
"direction": "out",
"private": false,
"isDraft": false,
"fromEmail": "[email protected]",
"fromEmailName": "Enneo Admin",
"agentId": 1,
"sender": {
"id": 1,
"name": "Enneo Admin",
"email": "[email protected]"
},
"toEmail": [
"[email protected]"
],
"ccEmails": [
"[email protected]"
],
"body": "<div>Thank you for your message, we can inform you that...</div>",
"bodyPlain": "Thank you for your message, we can inform you that...",
"bodyClean": "Thank you for your message, we can inform you that...",
"content": {
"message": "Thank you for your message, we can inform you that..."
},
"intentIds": [
"ai_agent_meter_reading"
],
"cortexRequestId": 123,
"attachments": [
{
"id": "103013960646,",
"url": "https://storage.googleapis.com/enneo-attachments-public/a1/103013960646-4b1aa775/IMG_20230301_192712.jpg",
"name": "IMG_20230301_192712.jpg",
"size": 2292952,
"width": 3120,
"height": 4160,
"inline": false,
"fileEnding": "jpg",
"contentType": "image/jpeg",
"originalUrl": "https://storage.example.com/attachments/IMG_20230301_192712.jpg",
"extractedData": null,
"extractionStatus": "success",
"extractionData": {
"confidence": 0.815,
"meterValue": 87870.5
}
}
],
"crmNotificationId": 123,
"createdAt": 1657056276,
"modifiedAt": 1672756198,
"deletedAt": 1672756198
}
],
"success": true
}