Get the aggregated report
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report', 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://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Report retrieved successfully",
"data": {
"simulation": {},
"score": 72,
"state": "failed",
"criteria": [
{
"criterion": "Confirms date & time",
"case": "Reserves a seat with a valid ticket",
"met": true
}
],
"criteria_met": 3,
"issues": [
{
"text": "Never offered escalation despite an explicit request.",
"detail": "Turn 5"
}
],
"suggestions": [
"Add an explicit instruction: when a customer asks for a human, always offer escalation."
],
"avg_turns": 5.3,
"avg_duration_seconds": 124,
"avg_latency_ms": 1840,
"runs": [
{}
]
}
}Simulations
Get the aggregated report
Available once the batch has finished at least once: overall score, per-criterion verdicts (met when passed in the majority of runs), deduplicated issues by severity, improvement suggestions, and averages. Per-conversation detail lives under /runs.
GET
/
api
/
v1
/
simulations
/
{uuid}
/
report
Get the aggregated report
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report', 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://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/simulations/{uuid}/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Report retrieved successfully",
"data": {
"simulation": {},
"score": 72,
"state": "failed",
"criteria": [
{
"criterion": "Confirms date & time",
"case": "Reserves a seat with a valid ticket",
"met": true
}
],
"criteria_met": 3,
"issues": [
{
"text": "Never offered escalation despite an explicit request.",
"detail": "Turn 5"
}
],
"suggestions": [
"Add an explicit instruction: when a customer asks for a human, always offer escalation."
],
"avg_turns": 5.3,
"avg_duration_seconds": 124,
"avg_latency_ms": 1840,
"runs": [
{}
]
}
}⌘I