Retrieve Simulation Result
curl --request GET \
--url https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}', 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://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$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://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"simulation_result": {
"id": 123,
"digital_human_id": 123,
"result": {},
"duration": 123,
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"custom_metrics": {},
"status": "<string>",
"latency": {},
"events": [
{
"title": "<string>",
"start_offset_ms": 123,
"description": "<string>",
"end_offset_ms": 123,
"tags": [
"<string>"
],
"metadata": {}
}
],
"transcript": [
{}
],
"transcript_url": "<string>",
"audio_url": "<string>",
"evaluations": [
{
"agent_speak_percentage": 123,
"avg_agent_latency": 123,
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"hallucination": true,
"hallucination_reasoning": "<string>",
"redundancy": true,
"redundancy_reasoning": "<string>",
"latency": {
"avg_agent_latency": 0,
"max_agent_latency": 0,
"p50_agent_latency": 0,
"p90_agent_latency": 0,
"p95_agent_latency": 0,
"p99_agent_latency": 0
},
"filler_ignored_latency": {
"avg_filler_ignored_latency": 0,
"p50_filler_ignored_latency": 0,
"p90_filler_ignored_latency": 0,
"p95_filler_ignored_latency": 0,
"p99_filler_ignored_latency": 0
},
"num_turns": 123,
"call_summary": "<string>",
"custom_evals": [
"<unknown>"
],
"custom_evals_success_rate": 123,
"goal_success": true,
"goal_reasoning": "<string>",
"pronunciation_score": 123,
"pronunciation_reasoning": "<string>",
"sentiment_label": "<string>",
"sentiment_score": 123,
"sentiment_scores": {},
"custom_metrics": [
{
"name": "<string>",
"description": "<string>",
"response_type": "<string>",
"response_value": "<string>",
"reasoning": "<string>",
"min_value": 123,
"max_value": 123,
"category": "<string>",
"tags": [
"<string>"
],
"scoring_guidance": "<string>",
"enum_options": [
"<string>"
],
"human_edited": true,
"human_response_value": "<string>",
"human_reasoning": "<string>",
"override_reason_code": "<string>",
"override_notes": "<string>",
"last_edited_by": "<string>",
"last_edited_at": "2023-11-07T05:31:56Z"
}
],
"human_edited": true,
"human_goal_success": true,
"human_goal_reasoning": "<string>",
"human_hallucination": true,
"human_hallucination_reasoning": "<string>",
"human_redundancy": true,
"human_redundancy_reasoning": "<string>",
"human_pronunciation_score": 123,
"human_pronunciation_reasoning": "<string>",
"override_goal_reason_code": "<string>",
"override_goal_notes": "<string>",
"override_hallucination_reason_code": "<string>",
"override_hallucination_notes": "<string>",
"override_redundancy_reason_code": "<string>",
"override_redundancy_notes": "<string>",
"override_pronunciation_reason_code": "<string>",
"override_pronunciation_notes": "<string>",
"last_edited_by": "<string>",
"last_edited_at": "2023-11-07T05:31:56Z",
"predicted_age": 123,
"customer_gender": "<string>",
"gender_confidence": 123,
"detected_language": "<string>",
"language_confidence": 123,
"agent_audio_clarity": 123,
"user_audio_clarity": 123
}
],
"tool_calls": [
{
"name": "<string>",
"expected": [
{
"parameters": {},
"output": "<unknown>"
}
],
"actual": [
{
"parameters": {},
"output": "<unknown>",
"start_offset_ms": 123
}
]
}
],
"trace_ids": [
"<string>"
],
"metrics": [
{
"metric_id": "<string>",
"name": "<string>",
"type": "<string>",
"value": "<unknown>",
"not_applicable": false,
"reasoning": "<string>"
}
]
},
"credits_used": 123,
"status": "200"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Simulation Runs
Retrieve Simulation Result
Retrieve a single test result and its associated custom metrics.
GET
/
v1
/
retrieve-simulation-result
/
{test_result_id}
Retrieve Simulation Result
curl --request GET \
--url https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}', 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://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$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://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"simulation_result": {
"id": 123,
"digital_human_id": 123,
"result": {},
"duration": 123,
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"custom_metrics": {},
"status": "<string>",
"latency": {},
"events": [
{
"title": "<string>",
"start_offset_ms": 123,
"description": "<string>",
"end_offset_ms": 123,
"tags": [
"<string>"
],
"metadata": {}
}
],
"transcript": [
{}
],
"transcript_url": "<string>",
"audio_url": "<string>",
"evaluations": [
{
"agent_speak_percentage": 123,
"avg_agent_latency": 123,
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"hallucination": true,
"hallucination_reasoning": "<string>",
"redundancy": true,
"redundancy_reasoning": "<string>",
"latency": {
"avg_agent_latency": 0,
"max_agent_latency": 0,
"p50_agent_latency": 0,
"p90_agent_latency": 0,
"p95_agent_latency": 0,
"p99_agent_latency": 0
},
"filler_ignored_latency": {
"avg_filler_ignored_latency": 0,
"p50_filler_ignored_latency": 0,
"p90_filler_ignored_latency": 0,
"p95_filler_ignored_latency": 0,
"p99_filler_ignored_latency": 0
},
"num_turns": 123,
"call_summary": "<string>",
"custom_evals": [
"<unknown>"
],
"custom_evals_success_rate": 123,
"goal_success": true,
"goal_reasoning": "<string>",
"pronunciation_score": 123,
"pronunciation_reasoning": "<string>",
"sentiment_label": "<string>",
"sentiment_score": 123,
"sentiment_scores": {},
"custom_metrics": [
{
"name": "<string>",
"description": "<string>",
"response_type": "<string>",
"response_value": "<string>",
"reasoning": "<string>",
"min_value": 123,
"max_value": 123,
"category": "<string>",
"tags": [
"<string>"
],
"scoring_guidance": "<string>",
"enum_options": [
"<string>"
],
"human_edited": true,
"human_response_value": "<string>",
"human_reasoning": "<string>",
"override_reason_code": "<string>",
"override_notes": "<string>",
"last_edited_by": "<string>",
"last_edited_at": "2023-11-07T05:31:56Z"
}
],
"human_edited": true,
"human_goal_success": true,
"human_goal_reasoning": "<string>",
"human_hallucination": true,
"human_hallucination_reasoning": "<string>",
"human_redundancy": true,
"human_redundancy_reasoning": "<string>",
"human_pronunciation_score": 123,
"human_pronunciation_reasoning": "<string>",
"override_goal_reason_code": "<string>",
"override_goal_notes": "<string>",
"override_hallucination_reason_code": "<string>",
"override_hallucination_notes": "<string>",
"override_redundancy_reason_code": "<string>",
"override_redundancy_notes": "<string>",
"override_pronunciation_reason_code": "<string>",
"override_pronunciation_notes": "<string>",
"last_edited_by": "<string>",
"last_edited_at": "2023-11-07T05:31:56Z",
"predicted_age": 123,
"customer_gender": "<string>",
"gender_confidence": 123,
"detected_language": "<string>",
"language_confidence": 123,
"agent_audio_clarity": 123,
"user_audio_clarity": 123
}
],
"tool_calls": [
{
"name": "<string>",
"expected": [
{
"parameters": {},
"output": "<unknown>"
}
],
"actual": [
{
"parameters": {},
"output": "<unknown>",
"start_offset_ms": 123
}
]
}
],
"trace_ids": [
"<string>"
],
"metrics": [
{
"metric_id": "<string>",
"name": "<string>",
"type": "<string>",
"value": "<unknown>",
"not_applicable": false,
"reasoning": "<string>"
}
]
},
"credits_used": 123,
"status": "200"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Integration Prompt for AI Agents
# Bluejay — Testing & Monitoring Platform for Conversational AI Agents
You are a senior backend engineer integrating the Bluejay API. Think step-by-step: first understand the endpoint, then plan the integration, then implement with minimal changes.
## Retrieve Simulation Result — GET /v1/retrieve-simulation-result/{test_result_id}
> **What this endpoint does:** Retrieve a single test result and its associated custom metrics. Args: test_result_id: the ID of the test result to retrieve. Returns: the test result along with its custom metric results.
**Endpoint:** GET `https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}`
**Auth:** `X-API-Key` header
### Required Parameters
| Name | Type | Description |
|------|------|-------------|
| test_result_id | string | |
| X-API-Key | string | API key required to authenticate requests. |
### Example
**Simple GET:**
```python
import requests
def retrieve_simulation_result(test_result_id: str, api_key: str) -> dict:
url = f"https://api.getbluejay.ai/v1/retrieve-simulation-result/{test_result_id}"
headers = {"X-API-Key": api_key}
response = requests.get(url, headers=headers)
response.raise_for_status()
return response.json()
```
### Constraints
- Minimal changes — only add/change files needed for this integration.
- Match existing codebase patterns (naming, file structure, error handling).
- Include error handling for 422: Validation Error.
### Integration Checklist
Before writing code, verify:
1. Which module/service owns this API domain in the codebase?
2. What HTTP client and error-handling patterns does the project use?
3. Are there existing types/interfaces to extend?
Then implement the integration, export it, and confirm it compiles/passes lint.
test_result_id.