Skip to main content
GET
Get widget chart data

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Path Parameters

id
string
required

Query Parameters

filters
object

filter JSON object to override widget filters for this request. Must include a timestamp constraint. Example: {"operator": "and", "conditions": [{"field": "timestamp", "op": "gte", "value": "now-7d"}]}

timezone
string

IANA timezone name, e.g. America/Chicago. Day, week and month buckets and today filters use this timezone. Defaults to UTC when omitted or not recognized.

Response

200 - application/json
widget_id
integer
required
field_name
string
required
chart_type
string
required
data
object[]
required

Chart data. Format depends on chart_type:

Line chart: [{id, timestamp, value}, ...]

Bar chart: [{time_interval, value, sample_count}, ...]

Enum daily share: [{time_interval, group, value, selected_calls, total_calls, evaluated_calls}, ...], where value is the selected enum value's percentage of total filtered calls.

Pie chart: [{label, value, percentage}, ...]

See the Dashboards guide for full examples.

Examples:
aggregation_function
string | null
required
time_period
string | null
required
group_by
unknown
required
metadata
object
required

Additional metadata about the plotted data. See the Dashboards guide for details.

can_group_by
boolean
default:false
warning
object

Present instead of plot data when the widget cannot be computed for the requested range, e.g. metadata_retention when a metadata.* widget asks for days older than the metadata retention window. data is then empty.