List Active Calls
Retrieve all currently active calls in your workspace with real-time status information.
GET
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Response Fields
dataarrayArray of active call objects.
idstringUnique identifier for the active call.
roomNamestringThe LiveKit room name for the call.
customerPhonestringCustomer's phone number.
customerNamestringCustomer's name if available.
aiAgentNamestringName of the AI agent handling the call.
durationnumberCurrent call duration in seconds.
statusstringCall status (always "active" for this endpoint).
sentimentstringCurrent detected sentiment of the conversation.
lastMessagestringThe most recent message in the conversation.
transferRequestedbooleanWhether a transfer to a human agent has been requested.
typestringCall type: "phone" or "web".
participantsarrayArray of call participants.
countnumberTotal number of active calls.
timestampstringServer timestamp of the response.
{
"data": [
{
"id": "665a1b2c3d4e5f6a7b8c9d0e",
"roomName": "call-abc123",
"customerPhone": "+14155551234",
"customerName": "John Doe",
"aiAgentName": "Customer Support Agent",
"duration": 145,
"status": "active",
"sentiment": "positive",
"lastMessage": "Sure, I can help you with that!",
"transferRequested": false,
"type": "phone",
"participants": [
{
"identity": "agent-001",
"isAgent": true,
"joinedAt": "2024-06-01T10:00:00.000Z"
},
{
"identity": "customer-001",
"isAgent": false,
"joinedAt": "2024-06-01T10:00:01.000Z"
}
]
}
],
"count": 1,
"timestamp": "2024-06-01T10:02:25.000Z"
}