> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Widget Data

> Fetch chart data for multiple widgets in one request — useful for refreshing a dashboard view in a single round-trip.



## OpenAPI

````yaml post /dashboards/widgets/bulk_data/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /dashboards/widgets/bulk_data/:
    post:
      tags:
        - dashboards
      description: |-
        Get plot data for multiple widgets at once.

        Accepts a list of widget IDs and optional override filters.
        Returns data for all specified widgets.
        Filter format follows filter JSON structure.
      operationId: dashboards-widgets-bulk-data-create
      parameters:
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkWidgetDataRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BulkWidgetDataRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BulkWidgetDataRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWidgetDataResponseList'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    BulkWidgetDataRequest:
      type: object
      properties:
        widget_ids:
          type: array
          items:
            type: integer
          description: List of widget IDs to get data for
        filters:
          type: object
          description: >-
            Optional override filters for all widgets. Filter conditions to
            scope the data. See the [Dashboards
            guide](https://docs.cekura.ai/documentation/guides/dashboards#filters)
            for supported fields, operators, and syntax.
          properties:
            field:
              type: string
              description: Field name to filter on
              examples:
                - success
                - duration
                - timestamp
                - metadata.region
                - metric_evaluations.value
            op:
              type: string
              enum:
                - eq
                - neq
                - gt
                - gte
                - lt
                - lte
                - contains
                - startswith
                - endswith
                - in
                - isnull
                - regex
              description: Comparison operator
            value:
              description: >-
                Value to compare against. Type depends on the field and
                operator.
            operator:
              type: string
              enum:
                - and
                - or
                - same_row
              description: Logical operator to combine conditions
            conditions:
              type: array
              description: List of filter conditions or nested groups
              items: {}
          examples:
            - field: success
              op: eq
              value: true
            - operator: and
              conditions:
                - field: timestamp
                  op: gte
                  value: today-7d
                - field: duration
                  op: gte
                  value: 60
      required:
        - widget_ids
    PaginatedWidgetDataResponseList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: https://api.cekura.ai/example/v1/example-external/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: https://api.cekura.ai/example/v1/example-external/?page=3
        results:
          type: array
          items:
            $ref: '#/components/schemas/WidgetDataResponse'
    WidgetDataResponse:
      type: object
      properties:
        widget_id:
          type: integer
        field_name:
          type: string
        chart_type:
          type: string
        data:
          type: array
          description: >-
            Chart data. Format depends on `chart_type`:


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


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


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


            See the [Dashboards
            guide](https://docs.cekura.ai/documentation/guides/dashboards#chart-output-formats)
            for full examples.
          items:
            type: object
          examples:
            - - id: 1
                timestamp: '2025-11-03T10:30:00Z'
                value: 45
              - id: 2
                timestamp: '2025-11-03T11:15:00Z'
                value: 62
            - - time_interval: '2025-11-03T00:00:00Z'
                value: 4.5
                sample_count: 10
              - time_interval: '2025-11-04T00:00:00Z'
                value: 3.2
                sample_count: 8
            - - label: customer_ended_call
                value: 320
                percentage: 45.7
              - label: agent_ended_call
                value: 210
                percentage: 30
        aggregation_function:
          type:
            - string
            - 'null'
        time_period:
          type:
            - string
            - 'null'
        group_by:
          oneOf:
            - {}
            - type: 'null'
        can_group_by:
          type: boolean
          default: false
        metadata:
          type: object
          description: >-
            Additional metadata about the plotted data. See the [Dashboards
            guide](https://docs.cekura.ai/documentation/guides/dashboards#widget-data)
            for details.
          properties:
            display_name:
              type: string
              description: Human-readable name of the field
            data_type:
              type: string
              enum:
                - numeric
                - boolean
                - string
                - datetime
                - dynamic
              description: Resolved data type of the field
            filter_value:
              description: The filter value used (e.g. metric ID), or null
              nullable: true
      required:
        - aggregation_function
        - chart_type
        - data
        - field_name
        - group_by
        - metadata
        - time_period
        - widget_id
  securitySchemes:
    api_key:
      type: apiKey
      name: X-CEKURA-API-KEY
      in: header
      description: >-
        API Key Authentication. It should be included in the header of each
        request.

````