Retrieve Call Log
curl --request GET \
--url https://api.example.com/v1/retrieve-call-log/{call_id}import requests
url = "https://api.example.com/v1/retrieve-call-log/{call_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/retrieve-call-log/{call_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.example.com/v1/retrieve-call-log/{call_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/retrieve-call-log/{call_id}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/retrieve-call-log/{call_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/retrieve-call-log/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyObservability
Retrieve Call Log
Retrieve a single call log by its call ID.
GET
/
v1
/
retrieve-call-log
/
{call_id}
Retrieve Call Log
curl --request GET \
--url https://api.example.com/v1/retrieve-call-log/{call_id}import requests
url = "https://api.example.com/v1/retrieve-call-log/{call_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/retrieve-call-log/{call_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.example.com/v1/retrieve-call-log/{call_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/retrieve-call-log/{call_id}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/retrieve-call-log/{call_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/retrieve-call-log/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyIntegration 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 Call Log — GET /v1/retrieve-call-log/{call_id}
> **What this endpoint does:** Retrieve a single call log by its call ID. Returns the call, including evaluations and `credits_used`.
**Endpoint:** GET `https://api.getbluejay.ai/v1/retrieve-call-log/{call_id}`
**Auth:** `X-API-Key` header
### Required Parameters
| Name | Type | Description |
|------|------|-------------|
| call_id | string | |
| X-API-Key | string | API key required to authenticate requests. |
### Example
**Simple GET:**
```python
import requests
def retrieve_call_log(call_id: str, api_key: str) -> dict:
url = f"https://api.getbluejay.ai/v1/retrieve-call-log/{call_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.
call_id. The response includes evaluations, hallucinations, redundancy, custom evaluation metrics, and credits_used.
credits_used is the credits burned by this call. It is null until usage has landed and can be priced.
Path
GET /v1/retrieve-call-log/{call_id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| call_id | path | string | yes | ID of the call |
| X-API-Key | header | string | yes | API key |
| X-Organization-Id | header | string | no | Organization to scope the request |
Response
{
"call_log": {},
"credits_used": 0.018,
"status": "200"
}
| Field | Type | Description |
|---|---|---|
| call_log | object | The call, including evaluations |
| credits_used | number or null | Credits burned by this call. Null until usage has landed and can be priced. |
| status | string | "200" on success |