Trillet AI logo

List Active Calls

Retrieve all currently active calls in your workspace with real-time status information.

GEThttps://api.trillet.ai/v2/api/active-calls

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Response Fields

dataarray

Array of active call objects.

idstring

Unique identifier for the active call.

roomNamestring

The LiveKit room name for the call.

customerPhonestring

Customer's phone number.

customerNamestring

Customer's name if available.

aiAgentNamestring

Name of the AI agent handling the call.

durationnumber

Current call duration in seconds.

statusstring

Call status (always "active" for this endpoint).

sentimentstring

Current detected sentiment of the conversation.

lastMessagestring

The most recent message in the conversation.

transferRequestedboolean

Whether a transfer to a human agent has been requested.

typestring

Call type: "phone" or "web".

participantsarray

Array of call participants.

countnumber

Total number of active calls.

timestampstring

Server 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"
}