POST
/
api
/
external
/
get-conversation-detail
curl --request POST \
  --url https://backend.nebuly.com/api/external/get-conversation-detail \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "conversation_id": "<string>"
}'
{
  "id": "<string>",
  "session_length": 123,
  "session_time": 123,
  "start_session": "<string>",
  "end_session": "<string>",
  "cost": 123,
  "tags": {
    "key": "<string>",
    "value": "<string>"
  },
  "emotions": [
    "<string>"
  ],
  "custom_aggregates": {
    "key": "<string>",
    "value": "<string>"
  },
  "conversation": [
    {
      "id": "<string>",
      "input": "<string>",
      "output": "<string>",
      "timestamp": "<string>",
      "end_timestamp": "<string>",
      "user_query": "<string>",
      "topic": "<string>",
      "sentiment": "<string>",
      "type_of_risk": "<string>",
      "moderation_issue": "<string>",
      "business_issue": "<string>"
    }
  ]
}

Retrieve the detailed information about a single conversation. You can list conversations using the Get interaction aggregates endpoint grouping by conversation_id. For authentication you need the to use the API key associated to the project you want to retrieve the interactions from.

conversation_id
string
required

ID of the conversation you want to retrieve.

Response

id
string

Unique identifier of the interaction.

session_length
float

The total number of interactions in the conversation.

session_time
float

The total time spent in the conversation, in seconds, from the start of the first interaction to the end of the last interaction.

start_session
string

Timestamp of the first interaction in the conversation.

end_session
string

Timestamp of the last interaction in the conversation.

cost
float

Cost of the conversation, in micro dollars.

tags
object

Tags associated with the conversation.

emotions
string[]

List of emotions detected in the conversation.

custom_aggregates
object

User defined custom aggregates associated with the conversation.

conversation
object[]

List of the interactions in the conversation.