Get conversation details
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>"
}
'import requests
url = "https://backend.nebuly.com/api/external/get-conversation-detail"
payload = { "conversation_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({conversation_id: '<string>'})
};
fetch('https://backend.nebuly.com/api/external/get-conversation-detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.nebuly.com/api/external/get-conversation-detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'conversation_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.nebuly.com/api/external/get-conversation-detail"
payload := strings.NewReader("{\n \"conversation_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.nebuly.com/api/external/get-conversation-detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversation_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.nebuly.com/api/external/get-conversation-detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversation_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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>"
}
]
}Insights API
Get conversation details
POST
/
api
/
external
/
get-conversation-detail
Get conversation details
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>"
}
'import requests
url = "https://backend.nebuly.com/api/external/get-conversation-detail"
payload = { "conversation_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({conversation_id: '<string>'})
};
fetch('https://backend.nebuly.com/api/external/get-conversation-detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.nebuly.com/api/external/get-conversation-detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'conversation_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.nebuly.com/api/external/get-conversation-detail"
payload := strings.NewReader("{\n \"conversation_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.nebuly.com/api/external/get-conversation-detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversation_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.nebuly.com/api/external/get-conversation-detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversation_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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.
string
required
ID of the conversation you want to retrieve.
Response
string
Unique identifier of the interaction.
float
The total number of interactions in the conversation.
float
The total time spent in the conversation, in seconds, from the start of the first interaction to the end of the last interaction.
string
Timestamp of the first interaction in the conversation.
string
Timestamp of the last interaction in the conversation.
float
Cost of the conversation, in micro dollars.
object
string[]
List of emotions detected in the conversation.
object
object[]
List of the interactions in the conversation.
Show properties
Show properties
string
Unique identifier of the interaction.
string
Input text of the interaction.
string
Output text of the interaction.
string
Timestamp of the start of the interaction.
string
Timestamp of the end of the interaction.
string
User query associated with the interaction.
string
Topic of the interaction.
string
Sentiment of the interaction.
string
Type of risk associated with the interaction.
string
Moderation issue associated with the interaction.
string
Business issue associated with the interaction.
⌘I