search_calls
Search and filter Twilio call records by date range, phone number, direction, status, duration, or agent. Returns paginated results with a cursor for paging through records.
Instructions
Search and filter Twilio call records by date range, phone number, direction, status, minimum duration, or agent. Returns rows plus a pagination cursor. Duration fields are labeled with their source and measurement definition — CDR duration (ring to hangup) and TaskRouter talk time (agent audio open) are never conflated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Filter by agent name or worker SID. | |
| cursor | No | Pagination cursor from a previous search_calls response. | |
| status | No | Filter by call status. | |
| end_date | No | End of date range (YYYY-MM-DD or ISO 8601). Interpreted in the given timezone. | |
| timezone | No | IANA timezone (e.g., 'America/New_York'). Defaults to UTC. | |
| direction | No | Filter by call direction. | |
| page_size | No | Number of results per page (1-100, default 50). | |
| start_date | No | Start of date range (YYYY-MM-DD or ISO 8601). Interpreted in the given timezone. | |
| min_duration | No | Minimum call duration in seconds (CDR ring-to-hangup). | |
| phone_number | No | Filter by phone number (E.164). Matches either from or to. |