Generate View Table Data

Hand off to an LLM

Generate paginated table data for a view.

Executes the view's query against transformations rows produced by the named functions inside the supplied timeWindow, applies the view's filters, and returns matching rows. Each row reports the event eventID (externally-stable KSUID) plus the projected column values.

The functions field is required — at least one functionID or functionName must be supplied. limit defaults to 50 with a maximum of 200; offset is zero-based. The response's totalCount reflects the match count before pagination, so paging can be driven off it.

POST
/v3/views/table-data
x-api-key<token>

Authenticate using API Key in request header

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.bem.ai/v3/views/table-data" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "columns": [      {        "name": "string",        "valueSchemaPath": [          "string"        ],        "displayOrderIndex": 0      }    ],    "filters": [      {        "columnName": "string",        "filterType": "equals_string"      }    ],    "aggregations": [      {        "name": "string",        "function": "count"      }    ],    "functions": [      {}    ],    "timeWindow": {      "start": "2019-08-24T14:15:22Z",      "end": "2019-08-24T14:15:22Z"    }  }'
{
  "rows": [
    {
      "columns": [
        {
          "columnName": "string",
          "value": "string"
        }
      ],
      "eventID": "string"
    }
  ],
  "totalCount": 0
}
{
  "message": "string",
  "code": 0,
  "details": {}
}