NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Call Center/Statistics → Get Agent Statistics for Single Queues by Agent

AI-generated

Summary

Fetch agent statistics for selected call queues within a specified time window.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • domain (required) — Main organization name used to link the resource to its group/tenant/organization/enterprise
  • callqueue (required) — Extension ID for a preconfigured callqueue when used in the path
  • datetime-start (required) — Start of the time window for the query; RFC3339 format, may include timezone
  • datetime-end (required) — End of the time window for the query; RFC3339 format, may include timezone
  • fields — Fields to include in the statistics response; default is NAME,CH,ATT,AH,AHT,TT, fields separated by commas
  • remove_zeros — Remove zeros from the results
  • department — Department the user belongs to; any string can be used to group users

Output shape

a list of agent statistics records

Each record contains the requested fields; if 'fields' is omitted the default set (NAME,CH,ATT,AH,AHT,TT) is returned; the response may include additional fields defined by the API

Examples

Example 1: Retrieve statistics for agent statistics in domain example.com for queue sales-queue between 2023-11-01 and 2023-11-30

domain=example.com callqueue=sales-queue datetime-start=2023-11-01T00:00:00Z datetime-end=2023-11-30T23:59:59Z fields=NAME,CH,ATT,AH,AHT,TT

Links

Discussion