LiraX CRM icon

LiraX CRM

Manage contacts, deals, tasks and notes

📈 Get Statistics

AI-generated

Summary

Fetch LiraX CRM statistics for a specified time period.

Inputs

  • Start (required) — Start of statistics period in SQL format. Statistics include: call count, average wait time, successful/missed calls. Represents the beginning of the period for which statistics are calculated. Defaults to 24 hours before the current time if not specified via default value or workflow expression. Displayed only when operation is getStatInfo.
  • Stop — End of statistics period. Optional — defaults to 24 hours from the Start period if not specified. Represents the ending boundary of the statistics window. Uses SQL datetime format. Displayed only when operation is getStatInfo.
  • idempotencySettings — Collection of settings to prevent duplicate operations when retrying failed requests. Configures idempotency key generation, enabling/disabling, and time-to-live for cached keys. Displayed by default (show: {}).

Output shape

Statistics object containing call count, average wait time, successful calls count, and missed calls count for the specified period.

LiraX API recommends calling this command no more than once per hour. Statistics are serialized with datetime values in SQL format (YYYY-MM-DD HH:MM:SS). Idempotency is supported via the idempotencySettings collection; when enabled, a unique key derived from execution ID and item index is used to prevent duplicate execution on retry, with a configurable TTL defaulting to 24 hours (86400 seconds).

Examples

Example 1: Fetch yesterday's statistics

Set Start to {{ $now.minus({ hours: 24 }).toFormat('yyyy-MM-dd HH:mm:ss') }} and leave Stop at its default (now), or explicitly set Stop to the same Start value for a single-period snapshot.

Links

Discussion