Skip to main content
GET
/
v1
/
stats
/
grouping-fields
Retrieve statistics grouped by a custom field
curl --request GET \
  --url https://api.example.com/v1/stats/grouping-fields \
  --header 'Authorization: Bearer <token>'
[
  {
    "grouping_field_value": "Support",
    "total_requests": 450,
    "avg_score": 84.2,
    "min_score": 52,
    "max_score": 97.5,
    "avg_duration": "00:06:12",
    "min_duration": "00:01:45",
    "max_duration": "00:18:30"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_date
string<date-time>
required

Start of date range (UTC)

end_date
string<date-time>
required

End of date range (UTC)

model_name
string
required

Name of the analysis model

grouping_field_key
string
required

Field key to group results by

Response

Successful Response

grouping_field_value
string
required

Value of the grouping field

Example:

"Support"

total_requests
integer
required

Number of calls in this group

Example:

450

avg_score
number

Average Neurascore percentage for this group

Example:

84.2

min_score
number

Lowest score in this group

Example:

52

max_score
number

Highest score in this group

Example:

97.5

avg_duration
string

Average call duration (HH:MM:SS)

Example:

"00:06:12"

min_duration
string

Shortest call duration

Example:

"00:01:45"

max_duration
string

Longest call duration

Example:

"00:18:30"