Skip to main content
GET
https://api.trillet.ai
/
v2
/
api
/
active-calls
/
{roomName}
Get Active Call Details
curl --request GET \
  --url https://api.trillet.ai/v2/api/active-calls/{roomName} \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "id": "665a1b2c3d4e5f6a7b8c9d0e",
  "roomName": "call-abc123",
  "customerPhone": "+14155551234",
  "customerName": "John Doe",
  "aiAgentName": "Customer Support Agent",
  "duration": 145,
  "sentiment": "positive",
  "transcript": [
    { "role": "agent", "content": "Hello! How can I help you today?" },
    { "role": "customer", "content": "I need help with my account." }
  ],
  "participants": [
    {
      "identity": "agent-001",
      "isAgent": true,
      "metadata": {},
      "joinedAt": "2024-06-01T10:00:00.000Z"
    }
  ]
}

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Path Parameters

roomName
string
required
The LiveKit room name of the active call.

Response Fields

id
string
Unique identifier for the active call.
roomName
string
The LiveKit room name.
customerPhone
string
Customer’s phone number.
customerName
string
Customer’s name if available.
aiAgentName
string
Name of the AI agent handling the call.
duration
number
Current call duration in seconds.
sentiment
string
Current detected sentiment.
transcript
array
Live transcript of the conversation.
participants
array
Array of call participants with metadata.
{
  "id": "665a1b2c3d4e5f6a7b8c9d0e",
  "roomName": "call-abc123",
  "customerPhone": "+14155551234",
  "customerName": "John Doe",
  "aiAgentName": "Customer Support Agent",
  "duration": 145,
  "sentiment": "positive",
  "transcript": [
    { "role": "agent", "content": "Hello! How can I help you today?" },
    { "role": "customer", "content": "I need help with my account." }
  ],
  "participants": [
    {
      "identity": "agent-001",
      "isAgent": true,
      "metadata": {},
      "joinedAt": "2024-06-01T10:00:00.000Z"
    }
  ]
}