Help us improve these docs. Take our quick survey.
curl --request POST \
--url https://api.example.com/feedback/stats \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"feedback_type": "<string>",
"trigger_ref": "<string>",
"granularity": 123,
"timezone": "UTC",
"metrics": [
{
"json_path": "<string>",
"value_type": "numeric",
"aggregations": [
"sum"
],
"percentiles": [
123
]
}
]
}
'{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": 123,
"timezone": "<string>",
"buckets": [
{}
],
"window_stats": {}
}Return aggregated feedback statistics over time buckets.
curl --request POST \
--url https://api.example.com/feedback/stats \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"feedback_type": "<string>",
"trigger_ref": "<string>",
"granularity": 123,
"timezone": "UTC",
"metrics": [
{
"json_path": "<string>",
"value_type": "numeric",
"aggregations": [
"sum"
],
"percentiles": [
123
]
}
]
}
'{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": 123,
"timezone": "<string>",
"buckets": [
{}
],
"window_stats": {}
}Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request for aggregated feedback statistics over time buckets.
Inclusive start time (UTC, ISO 8601).
Exclusive end time (UTC, ISO 8601). Defaults to now if omitted.
Filter by feedback_type.
Filter by trigger_ref (exact or prefix match for all-versions).
Bucket size in seconds. If omitted, auto-selected based on time range.
IANA timezone for bucket alignment.
Metrics to aggregate from payload_dump.
Show child attributes
Successful Response
Response with time-series feedback statistics.
Resolved start time (always UTC, regardless of the requested timezone).
Resolved end time (always UTC, regardless of the requested timezone).
Bucket size used (in seconds)
Timezone used for bucket alignment
Time-bucketed aggregations. Each dict has 'timestamp' (ISO string), 'count' (int), and '{agg}_{slug}' keys for each requested metric+aggregation.
Aggregations over the full query window, keyed by metric slug (e.g. 'output_score'). Each value maps agg name to result.
Show child attributes
Was this page helpful?