POST
/
bc
/
v1
/
events
/
event
/
end-conversation
End a conversation
curl --request POST \
  --url https://app.mindlytics.ai/bc/v1/events/event/end-conversation \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-ID: <api-key>' \
  --data '{
  "session_id": "<string>",
  "timestamp": "<string>",
  "user_id": "<string>",
  "device_id": "<string>",
  "type": "track",
  "event": "Conversation Ended",
  "conversation_id": "<string>",
  "properties": {},
  "attributes": {},
  "conversation_analysis": {
    "summary": "<string>",
    "sentiment": "positive",
    "cost": 123
  },
  "intent_analysis": {
    "summary": "<string>",
    "sentiment": "positive",
    "intent_fulfilled": "yes",
    "cost": 123
  }
}'
[
  {
    "type": "start_session"
  }
]

Authorizations

Authorization
string
header
required

API Key for your organization

X-App-ID
string
header
required

Project ID

Body

application/json

Response

200 - application/json

Success

The events that were generated by the Mindlytics service as a result of this event.