Outbound calls
Check a call
Get a call's current state by its sessionId. GET /v1/calls/{sessionId} · scope calls:read
curl https://platform.eurekatechlabs.com/v1/calls/ses_xxxxxxxxxxxxxxxxxx \
-H "Authorization: Bearer ek_live_..."The response — `200`
{
"sessionId": "ffd09731-5543-4be8-80aa-a93c677f5599",
"productId": "9663e67e-9181-4670-b028-75e3966fa4a7",
"agentId": "9c1f0f5e-2a77-4a1e-9a0c-6f2f1c8b77aa",
"direction": "outbound",
"fromNumber": "+918008001234",
"toNumber": "+919876543210",
"status": "completed",
"durationSec": 47,
"transcript": [],
"recordingUrl": "https://.../rec/ffd09731.wav",
"startedAt": "2025-05-26T10:32:01Z",
"endedAt": "2025-05-26T10:32:48Z"
}| Field | What |
|---|---|
sessionId |
The call's id. |
agentId |
The agent that ran it. null for inline calls. |
direction |
outbound, inbound, or socket. |
status |
Where the call is — see below. |
durationSec |
How long it lasted. |
transcript |
The conversation, in order. Empty until the call ends. |
recordingUrl |
Link to the recording, or null. |
startedAt / endedAt |
When it connected / ended. endedAt is null while live. |
Status values
status |
Meaning |
|---|---|
initiated |
The call row exists; the carrier has not dialled yet. |
ringing |
An inbound call is being answered. |
in_progress |
Connected — audio is flowing. |
completed |
Finished. |
failed |
Never connected, or ended in an error. |
A finished, successful call is completed.
IDs are UUIDs. They carry no prefix. Don't validate on a
ses_/agt_/prd_shape — shortened placeholders elsewhere in these docs are for readability only.
The transcript
Each entry is a spoken turn or a tool call:
[
{ "role": "assistant", "text": "Hi, calling about your order.", "timestamp": "2025-05-26T10:32:03.100Z" },
{ "role": "user", "text": "Yes, what about it?", "timestamp": "2025-05-26T10:32:05.400Z" }
]| Field | What |
|---|---|
role |
assistant (the agent) or user (the caller). |
text |
What was said. |
timestamp |
When, ISO 8601. |
Tool calls appear as role: "tool" entries — see Tools.
While the call is live
If the call hasn't ended yet, we return what we have so far — transcript and recordingUrl stay empty until it's done.
Errors
| Status | Meaning |
|---|---|
403 |
Key lacks calls:read, or the call is another product's. |
404 |
No call with that sessionId. |
