list_activities
Retrieve and filter contact center activities by type, action, queue, ticket, user, or date range to monitor calls, emails, chats, and more.
Instructions
List activities (calls, emails, chats, etc.) with optional filters. Always specify type and/or a date range to keep results focused.
Args: type: Filter by activity channel type: CALL (phone), EMAIL, CHAT (web chat), SMS, FBM (Facebook Messenger), IGDM (Instagram DM), WAP (WhatsApp), VBR (Viber), CUSTOM. action: Filter by activity status/action: OPEN (in progress), WAIT (waiting), POSTPONE (postponed), CLOSE (closed). queue: Filter by queue internal name (e.g. '10333'). Use list_queues to find names. ticket: Filter by ticket ID (numeric, e.g. '787979'). user: Agent name — pass either a display name (e.g. 'John Doe') or login name (e.g. 'john.doe'). Resolved automatically. date_from: Filter by activity start time on or after this date (YYYY-MM-DD). date_to: Filter by activity start time on or before this date (YYYY-MM-DD). sort: Field to sort by. Useful values: time (activity start time), duration, time_close. WARNING: only fields that exist on the activities endpoint work — do NOT use 'created' or 'edited' (those are ticket fields, not activity fields). 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 | ||
| type | No | ||
| user | No | ||
| queue | No | ||
| action | No | ||
| ticket | No | ||
| date_to | No | ||
| sort_dir | No | desc | |
| date_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |