cURL
curl --request GET \ --url https://api.trillet.ai/v2/api/active-calls \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
{ "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" }
Retrieve all currently active calls in your workspace with real-time status information.