list_calls
Retrieve phone call records with duration, CLID, hold time, and filters for queue, agent, direction, answered status, and date range.
Instructions
List phone calls with detailed call data (duration, CLID, missed calls, hold time). Use this instead of list_activities(type='CALL') when you need call-specific fields.
Args: queue: Filter by queue internal name (e.g. '10333'). Use list_queues to find names. user: Agent name — pass either a display name (e.g. 'John Doe') or login name (e.g. 'john.doe'). Resolved automatically. contact: Filter by contact internal ID (e.g. 'contact_674eda46162a8403430453'). NOT a person's name — call list_contacts(search='...') first to find the ID. direction: Filter by call direction: in (incoming), out (outgoing), internal. answered: Filter by whether the call was answered (true/false). date_from: Filter by call start time on or after this date (YYYY-MM-DD). date_to: Filter by call start time on or before this date (YYYY-MM-DD). sort: Field to sort by. Useful values: call_time, duration, waiting_time, ringing_time. WARNING: only call-specific fields work — do NOT use 'created' or 'edited'. sort_dir: Sort direction: asc or desc (default: desc). skip: Pagination offset (default: 0). take: Number of records to return (default: 50, max: 200).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | ||
| sort | No | ||
| take | No | ||
| user | No | ||
| queue | No | ||
| contact | No | ||
| date_to | No | ||
| answered | No | ||
| sort_dir | No | desc | |
| date_from | No | ||
| direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |