Actions9
đ Get Calls History
AI-generatedSummary
Retrieve call history from LiraX telephony within a specified 48-hour time window.
Inputs
- date_start (required) â Start of time period in SQL format: YYYY-MM-DD HH:MM:SS. Maximum window is 48 hours. Use n8n expressions for dynamic dates (e.g., {{$now.minus({ hours: 48 }).toFormat('yyyy-MM-dd HH:mm:ss')}}).
- date_finish (required) â End of time period in SQL format. Maximum 48 hours from start. Defaults to current time.
- call_type â Filter by call direction. Options: -1 (All Types), 0 (Incoming), 1 (Outgoing). Default: -1 (All Types).
- ani â Filter by caller phone number (ANI). Digits are normalized per API spec.
- dnis â Filter by called phone number (DNIS). Digits are normalized per API spec.
- offset â Offset for pagination (number of records to skip). Minimum value is 0. Default: 0.
Output shape
Returns an array of call records matching the applied filters (time window, call type, ANI, DNIS). Pagination is supported via the offset parameter. API enforces a 48-hour window; larger exports require sequential 48-hour chunk processing.
The API limitation notice indicates that time windows exceeding 48 hours will fail; workflow authors should process data in sequential 48-hour chunks for larger exports.
Examples
Example 1: Fetch incoming calls from the last 24 hours.
Set date_start to {{$now.minus({ hours: 24 }).toFormat('yyyy-MM-dd HH:mm:ss')}}, date_finish to {{$now.toFormat('yyyy-MM-dd HH:mm:ss')}}, and call_type to 0.