cURL
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" } ] }
Retrieve detailed information about a specific active call including participants, transcript, and sentiment.