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

# Get block data

> Compute a stat or chart block from its stored config, validated against the live table fields. Windows resolve to real dates at query time.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json get /orgs/{org_id}/pages/{page_ref}/blocks/{block_id}/data
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
paths:
  /orgs/{org_id}/pages/{page_ref}/blocks/{block_id}/data:
    get:
      tags:
        - Orgs Pages
      summary: Get block data
      description: >-
        Compute a stat or chart block from its stored config, validated against
        the live table fields. Windows resolve to real dates at query time.
      parameters:
        - schema:
            type: string
          required: true
          description: Org ID
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: Page slug or encoded page id
          name: page_ref
          in: path
        - schema:
            type: string
          required: true
          description: Block ID
          name: block_id
          in: path
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableAggregateResultSchema'
components:
  schemas:
    TableAggregateResultSchema:
      oneOf:
        - $ref: '#/components/schemas/TableAggregateValueSchema'
        - $ref: '#/components/schemas/TableAggregateSeriesSchema'
      discriminator:
        propertyName: kind
        mapping:
          value:
            $ref: '#/components/schemas/TableAggregateValueSchema'
          series:
            $ref: '#/components/schemas/TableAggregateSeriesSchema'
    TableAggregateValueSchema:
      type: object
      properties:
        kind:
          type: string
          enum:
            - value
        value:
          type:
            - number
            - 'null'
        previous:
          type:
            - number
            - 'null'
      required:
        - kind
        - value
    TableAggregateSeriesSchema:
      type: object
      properties:
        kind:
          type: string
          enum:
            - series
        groups:
          type: array
          items:
            $ref: '#/components/schemas/TableAggregateGroupSchema'
        truncated:
          type: boolean
          description: >-
            True when enum groups overflowed the cap and were folded into
            `__other__`.
      required:
        - kind
        - groups
        - truncated
    TableAggregateGroupSchema:
      type: object
      properties:
        key:
          type:
            - string
            - 'null'
          description: >-
            Group value: enum/string value, bucket start as ISO date,
            `__other__` for the folded tail, null for records without a value.
        value:
          type:
            - number
            - 'null'
      required:
        - key
        - value
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````