POST
/
bc
/
v1
/
events
/
event
/
conversation-turn
Conversation turn
curl --request POST \
  --url https://app.mindlytics.ai/bc/v1/events/event/conversation-turn \
  --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 Turn",
  "conversation_id": "<string>",
  "properties": {
    "user": "<string>",
    "assistant": "<string>",
    "assistant_id": "<string>",
    "model": "<string>",
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "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.