Retrieve Analysis
curl --request GET \
--url https://api.kallglot.com/v1/analyses/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kallglot.com/v1/analyses/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kallglot.com/v1/analyses/{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.kallglot.com/v1/analyses/{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 => [
"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://api.kallglot.com/v1/analyses/{id}"
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://api.kallglot.com/v1/analyses/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kallglot.com/v1/analyses/{id}")
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{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "completed",
"summary": "Customer checked order status; agent confirmed the new ship date.",
"sentiment": {
"customer": "Neutral, slightly anxious early; satisfied after confirmation.",
"agent": "Calm and solution-oriented throughout."
},
"compliance": {
"status": "ok",
"flags": []
},
"performance": {
"score": 0.86
},
"error": null,
"created_at": "2026-03-26T11:10:00Z",
"completed_at": "2026-03-26T11:10:22Z"
}
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "processing",
"summary": null,
"sentiment": null,
"compliance": null,
"performance": null,
"error": null,
"created_at": "2026-03-26T11:10:00Z",
"completed_at": null
}
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "failed",
"summary": null,
"sentiment": null,
"compliance": null,
"performance": null,
"error": "Analysis could not be completed from the available transcript",
"created_at": "2026-03-26T11:10:00Z",
"completed_at": "2026-03-26T11:10:25Z"
}
{
"error": {
"type": "not_found_error",
"code": "analysis_not_found",
"message": "Analysis ... not found",
"param": "analysis_id"
}
}
Analysis
Retrieve Analysis
Retrieve analysis results
GET
/
v1
/
analyses
/
{id}
Retrieve Analysis
curl --request GET \
--url https://api.kallglot.com/v1/analyses/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kallglot.com/v1/analyses/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kallglot.com/v1/analyses/{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.kallglot.com/v1/analyses/{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 => [
"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://api.kallglot.com/v1/analyses/{id}"
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://api.kallglot.com/v1/analyses/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kallglot.com/v1/analyses/{id}")
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{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "completed",
"summary": "Customer checked order status; agent confirmed the new ship date.",
"sentiment": {
"customer": "Neutral, slightly anxious early; satisfied after confirmation.",
"agent": "Calm and solution-oriented throughout."
},
"compliance": {
"status": "ok",
"flags": []
},
"performance": {
"score": 0.86
},
"error": null,
"created_at": "2026-03-26T11:10:00Z",
"completed_at": "2026-03-26T11:10:22Z"
}
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "processing",
"summary": null,
"sentiment": null,
"compliance": null,
"performance": null,
"error": null,
"created_at": "2026-03-26T11:10:00Z",
"completed_at": null
}
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "failed",
"summary": null,
"sentiment": null,
"compliance": null,
"performance": null,
"error": "Analysis could not be completed from the available transcript",
"created_at": "2026-03-26T11:10:00Z",
"completed_at": "2026-03-26T11:10:25Z"
}
{
"error": {
"type": "not_found_error",
"code": "analysis_not_found",
"message": "Analysis ... not found",
"param": "analysis_id"
}
}
Retrieve a queued or completed analysis by ID. Paths use the plural
/v1/analyses segment.
Path Parameters
The analysis identifier returned from
POST /v1/sessions/{session_id}/analysis (prefix anl_).Response
Analysis identifier.
Always
analysis.Session analyzed.
Linked call id when available.
Analysis profile supplied at creation (default
default).processing, completed, or failed.Natural-language summary when analysis finished successfully.
Optional quality summary.
Show performance properties
Show performance properties
Aggregate performance score when available.
Plain-text failure explanation when
status is failed.Creation time (ISO 8601).
Completion time (ISO 8601) once finished.
Request Examples
cURL
curl https://api.kallglot.com/v1/analyses/anl_01HDEF456789012 \
-H "Authorization: Bearer sk_live_your_api_key"
Node.js
const response = await fetch('https://api.kallglot.com/v1/analyses/anl_01HDEF456789012', {
headers: { Authorization: 'Bearer sk_live_your_api_key' }
});
const analysis = await response.json();
if (analysis.status === 'completed') {
console.log(analysis.summary);
console.log(analysis.sentiment);
}
Python
import requests
response = requests.get(
'https://api.kallglot.com/v1/analyses/anl_01HDEF456789012',
headers={'Authorization': 'Bearer sk_live_your_api_key'},
)
analysis = response.json()
if analysis['status'] == 'completed':
print(analysis.get('summary'))
print(analysis.get('sentiment'))
Response Examples
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "completed",
"summary": "Customer checked order status; agent confirmed the new ship date.",
"sentiment": {
"customer": "Neutral, slightly anxious early; satisfied after confirmation.",
"agent": "Calm and solution-oriented throughout."
},
"compliance": {
"status": "ok",
"flags": []
},
"performance": {
"score": 0.86
},
"error": null,
"created_at": "2026-03-26T11:10:00Z",
"completed_at": "2026-03-26T11:10:22Z"
}
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "processing",
"summary": null,
"sentiment": null,
"compliance": null,
"performance": null,
"error": null,
"created_at": "2026-03-26T11:10:00Z",
"completed_at": null
}
{
"id": "anl_01HDEF456789012",
"object": "analysis",
"session_id": "sess_01HXYZ123456789",
"call_id": null,
"profile": "default",
"status": "failed",
"summary": null,
"sentiment": null,
"compliance": null,
"performance": null,
"error": "Analysis could not be completed from the available transcript",
"created_at": "2026-03-26T11:10:00Z",
"completed_at": "2026-03-26T11:10:25Z"
}
{
"error": {
"type": "not_found_error",
"code": "analysis_not_found",
"message": "Analysis ... not found",
"param": "analysis_id"
}
}
Polling
PollGET /v1/analyses/{id} until status moves to completed or failed:
async function waitForAnalysis(analysisId, maxWaitMs = 120000) {
const deadline = Date.now() + maxWaitMs;
while (Date.now() < deadline) {
const response = await fetch(`https://api.kallglot.com/v1/analyses/${analysisId}`, {
headers: { Authorization: 'Bearer sk_live_your_api_key' }
});
const analysis = await response.json();
if (analysis.status === 'completed') {
return analysis;
}
if (analysis.status === 'failed') {
throw new Error(analysis.error || 'Analysis failed');
}
await new Promise(resolve => setTimeout(resolve, 2000));
}
throw new Error('Analysis polling timed out');
}
Retention
Poll only until the object reaches a terminal state, then persist anything you need in your systems. Long-lived storage is your responsibility; use webhooks when you want push delivery.
⌘I