Store a new conversation without sending any messages
curl --request POST \
--url https://demo.enneo.ai/api/mind/ticket/{ticketId}/conversation/store \
--header 'Content-Type: application/json' \
--data '{
"process": "batch",
"direction": "in",
"from": "john@smith.com",
"fromName": "John Smith",
"to": [
"customer@web.de"
],
"ccEmails": [
"Michael Jackson <michael-test123@jack.s.on.com>"
],
"bccEmails": [
"<string>"
],
"subject": "Ticket subject",
"body": "Ticket body PART 2",
"bodyPlain": "<string>",
"bodyClean": "<string>",
"private": false,
"subchannelId": 4,
"status": "open",
"createdAt": "2024-03-01 00:00:00",
"firstResponseDueBy": "2021-01-02 00:00:00",
"dueBy": "2021-01-07 00:00:00",
"attachments": [
{
"name": "myattachment1.png",
"url": "https://framerusercontent.com/images/n1fjKCgnztVE5RhOJBPPaCIRw.png",
"base64": "base-64-encoded-string-of-attachment-file"
}
],
"externalConversationId": "abc-123",
"rawData": {
"myObjectId": 123
},
"type": "html",
"sender": {},
"content": {},
"intentIds": [
123
],
"crmNotificationId": "<string>",
"contractId": "<string>",
"customerId": "<string>",
"agentId": 123,
"priority": "low"
}'
{
"success": true,
"conversationId": 123,
"ticketId": 123,
"conversation": {
"id": 123,
"ticketId": 123,
"type": "html",
"direction": "out",
"private": false,
"fromEmail": "service@enneo.ai",
"fromEmailName": "Enneo Admin",
"agentId": 1,
"sender": {
"id": 1,
"name": "Enneo Admin",
"email": "example@enneo.ai"
},
"toEmail": [
"to@gmail.com"
],
"ccEmails": [
"cc@gmail.com"
],
"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://s3.eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/103013960646/original/IMG_20230301_192712.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAS6FNSMY2XLZULJPI%2F20230315%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20230315T135902Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=863f16c0b29b34cde3331ef76954db3f9605d8187cfd042b11d623ea988b9e0d",
"extractedData": null,
"extractionStatus": "success",
"extractionData": {
"confidence": 0.815,
"meterValue": 87870.5
}
}
],
"crmNotificationId": 123,
"createdAt": 1657056276,
"modifiedAt": 1672756198,
"deletedAt": 1672756198
},
"eventId": 123
}
Cookie-based authentication
The ID of the ticket to store conversation for
Conversation created successfully
The response is of type object
.
curl --request POST \
--url https://demo.enneo.ai/api/mind/ticket/{ticketId}/conversation/store \
--header 'Content-Type: application/json' \
--data '{
"process": "batch",
"direction": "in",
"from": "john@smith.com",
"fromName": "John Smith",
"to": [
"customer@web.de"
],
"ccEmails": [
"Michael Jackson <michael-test123@jack.s.on.com>"
],
"bccEmails": [
"<string>"
],
"subject": "Ticket subject",
"body": "Ticket body PART 2",
"bodyPlain": "<string>",
"bodyClean": "<string>",
"private": false,
"subchannelId": 4,
"status": "open",
"createdAt": "2024-03-01 00:00:00",
"firstResponseDueBy": "2021-01-02 00:00:00",
"dueBy": "2021-01-07 00:00:00",
"attachments": [
{
"name": "myattachment1.png",
"url": "https://framerusercontent.com/images/n1fjKCgnztVE5RhOJBPPaCIRw.png",
"base64": "base-64-encoded-string-of-attachment-file"
}
],
"externalConversationId": "abc-123",
"rawData": {
"myObjectId": 123
},
"type": "html",
"sender": {},
"content": {},
"intentIds": [
123
],
"crmNotificationId": "<string>",
"contractId": "<string>",
"customerId": "<string>",
"agentId": 123,
"priority": "low"
}'
{
"success": true,
"conversationId": 123,
"ticketId": 123,
"conversation": {
"id": 123,
"ticketId": 123,
"type": "html",
"direction": "out",
"private": false,
"fromEmail": "service@enneo.ai",
"fromEmailName": "Enneo Admin",
"agentId": 1,
"sender": {
"id": 1,
"name": "Enneo Admin",
"email": "example@enneo.ai"
},
"toEmail": [
"to@gmail.com"
],
"ccEmails": [
"cc@gmail.com"
],
"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://s3.eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/103013960646/original/IMG_20230301_192712.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAS6FNSMY2XLZULJPI%2F20230315%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20230315T135902Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=863f16c0b29b34cde3331ef76954db3f9605d8187cfd042b11d623ea988b9e0d",
"extractedData": null,
"extractionStatus": "success",
"extractionData": {
"confidence": 0.815,
"meterValue": 87870.5
}
}
],
"crmNotificationId": 123,
"createdAt": 1657056276,
"modifiedAt": 1672756198,
"deletedAt": 1672756198
},
"eventId": 123
}