NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Call Center/Statistics → Get DNIS Statistics for Single Queue

AI-generated

Summary

Retrieve DNIS statistics for a specific callqueue over a defined time window.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • domain (required) — Main organization name; used to link resource to its group/tenant/organization/enterprise.
  • callqueue (required) — Callqueue identifier to which the statistics apply (e.g., extension ID).
  • datetimeStart (required) — Start of the time window for the query; RFC3339 format, optionally with timezone.
  • datetimeEnd (required) — End of the time window for the query; same format as datetimeStart.
  • fields — Comma-separated list of statistic fields to retrieve; default is NAME,VOL,CH,ATT,AH.
  • removeZeros — If set, removes zero values from the results.

Output shape

a list of DNIS statistic records

Each record includes fields such as NAME, VOL, CH, ATT, AH and any additional fields specified via the fields parameter; may be paginated; optional fields can be omitted; errors follow the standard API error envelope.

Examples

Example 1: Fetch DNIS statistics for callqueue 1001 between 2023-11-01 and 2023-11-30

Refresh cache disabled; domain set to example.com; callqueue = 1001; datetime-start = 2023-11-01T00:00:00Z; datetime-end = 2023-11-30T23:59:59Z; fields = NAME,VOL,CH,ATT,AH; removeZeros blank.

Example 2: Retrieve DNIS stats with zero values stripped for a specific queue

Refresh cache enabled; domain = mycompany.com; callqueue = 2002; datetime-start = 2023-10-01T00:00:00-05:00; datetime-end = 2023-10-02T00:00:00-05:00; fields blank; removeZeros = true.

Example 3: Get DNIS stats for a domain's callqueue using default fields

Refresh cache disabled; domain = acme.com; callqueue = 555; datetime-start = 2023-09-01T00:00:00; datetime-end = 2023-09-30T23:59:59; fields = NAME,VOL,CH,ATT,AH; removeZeros blank.

Links

Discussion