Call records, transcripts and latency
What is stored about a conversation, who is allowed to read it, and how long it lasts.
Updated
On this page
A call is one conversation. A turn is one party speaking once. Turns are stored as rows rather than as a transcript blob, and that's what makes the latency view possible: every turn carries the timings that decide whether an agent feels responsive.
Reading calls
cURL
curl "https://api.voxcore.net/api/v1/orgs/<org_id>/calls/?outcome=escalated&has_recording=true" \
-H "Authorization: Bearer vox_sk_live_..."
curl https://api.voxcore.net/api/v1/orgs/<org_id>/calls/<call_id>/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
page = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/calls/",
headers=AUTH,
params={"outcome": "escalated", "has_recording": "true"},
).json()
for row in page["data"]:
call = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/calls/{row['id']}/", headers=AUTH
).json()
print(call["duration_seconds"], call["latency_p95_ms"])Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
# iterate() follows the cursor; list() gives you one page.
for row in vox.calls.iterate(outcome="escalated", has_recording="true"):
call = vox.calls.retrieve(row["id"])
print(call["duration_seconds"], call["latency_p95_ms"])Read-only. There's no way to create, edit or delete a call through the API. Calls are written by the runtime.
The list accepts agent, status,
outcome and has_recording=true, and is cursor
paginated like every other list.
The fields that carry meaning
| Field | Values |
|---|---|
direction | inbound, outbound, web |
status | queued, in_progress, completed, failed, no_answer |
ended_by | caller, agent, timeout, error, transfer |
outcome | resolved, escalated, abandoned, unknown |
status and ended_by answer different questions. A
call can complete because the caller hung up, because the agent said an end
phrase, or because it hit the duration cap. Those mean different things.
Alongside them you get duration_seconds,
latency_p50_ms, latency_p95_ms,
interruption_count, turn_count,
cost_cents, intent and sentiment. The
latency figures are denormalized from the turns, because recomputing percentiles
from turn rows on every page load does not survive contact with a real
tenant.
Turns
The detail response adds turns. Each turn has a
role (caller, agent, tool or
system), a sequence, the text, whether it
interrupted, and three separate timings:
transcribe_ms, turning speech into text.think_ms, the model deciding what to say.speak_ms, turning text back into speech.
Their sum is the pause the caller experiences before the agent speaks. Each one has a different fix.
Transcripts and recordings are gated separately
Two permissions beyond call:view. Without
call:transcript_view the detail response comes back with
turns: [], summary: null and
transcript_restricted: true. Without call:audio_view,
recording_url is null and recording_restricted: true.
The restriction is visible, not silent, so a client can say "you are not allowed to see this" instead of "there is nothing here".
Retention
Every call is stamped at creation with when its transcript and its recording expire, taken from the organization's retention windows at that moment. Shortening a window therefore applies going forward, and a purge job never has to look up a policy.
Analytics
cURL
curl "https://api.voxcore.net/api/v1/orgs/<org_id>/analytics?days=30" \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
report = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/analytics",
headers=AUTH,
params={"days": 30},
).json()
print(report["totals"])Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
report = vox.request(
"GET", f"/api/v1/orgs/{vox.org}/analytics", params={"days": 30}
)
print(report["totals"])days defaults to 30 and is capped at 90. The response carries
totals, a daily series, and breakdowns
by_outcome, by_intent, by_ended_by and
by_agent (top eight). It is not paginated.