List Endpoint

List individual rows of a dataset as CSV instead of aggregated results — to export, look up or inspect records — with properties of the datasets it references, filtered, sorted and paged.

Method: POST Path: /data/{model}/list Content-Type: application/json Accept: text/csv Authentication: Required

Every property is written as dataset.property. The rows listed are those of the dataset the other named datasets are reached from — orders.revenue beside customers.country lists orders, each with its customer's country. Set primaryDataset to choose that dataset yourself.

Request body

{
  "conditions": [
    { "type": "Measure In Range", "property": "orders.revenue", "minimum": 1000, "maximum": 50000 }
  ],
  "properties": ["orders.orderId", "orders.category", "orders.revenue", "orders.orderedAt", "customers.country"],
  "sortBy": [
    { "property": "orders.revenue", "direction": "Descending" },
    { "property": "orders.orderedAt", "direction": "Ascending" }
  ],
  "offset": 0,
  "limit": 100
}
Field Required Type Description
properties Yes Array The properties to list, as dataset.property — at most 512. A property of a referenced dataset is joined onto each row; a row whose reference is empty shows no value there. A property named twice is returned once
conditions No Array Filters, all of which must match — the same conditions an aggregation query takes
primaryDataset No String The dataset whose rows are listed
sortBy No Array { "property": "dataset.property", "direction": "Ascending" | "Descending" } entries; later entries break ties. Any attribute, measure or time property of the listed rows; a property of a referenced dataset must also be in properties. A missing value sorts after every value when ascending (first when descending). A property that cannot order the rows — unknown, multi-value, or a referenced one not listed — is 400 naming it
offset No Number Rows to skip (default 0)
limit No Number Rows to return. Leave it out and you get the first 100 rows, with the X-List-Truncated header saying whether more match — see The default page

The keys columns (the list) and column (in a condition or a sortBy entry) are refused with 400 INVALID_REQUEST naming properties / property.

CSV

The response is CSV with a header row of the property names. Read columns by their header — the column order groups attributes, measures and multi-value properties and need not follow properties. Measures are written with their decimals, times as yyyy-MM-dd HH:mm, a multi-value property as its members joined by commas, and a missing value as an empty cell. Two optional request headers shape it:

Header Effect
X-Display-Mode How attribute values read: name or auto — the uploaded display name, falling back to the value; description — the long description, falling back to the name, then the value; id (default) — the numeric identifier
X-Time-Zone IANA zone (Europe/Prague) times are written in. Default UTC
orders.orderId,orders.category,orders.revenue,orders.orderedAt
ORD-001,Electronics,299.00,2024-03-01 00:00
ORD-002,Clothing,45.00,2024-03-02 00:00

A text cell that starts with =, +, - or @ is written with a leading ', so a spreadsheet does not run it as a formula.

The default page

A request that names no limit returns the first 100 rows (from offset), never the whole list. So you can tell such a page from the complete answer, the response carries the header X-List-Truncated:

Value Meaning
true More rows match. Send limit (and offset for the next page) to read them
false The page holds every matching row — it is the whole answer
unknown The server could not tell whether more rows match. Treat a full page as possibly partial

A request that names its own limit gets exactly that window and no X-List-Truncated header. To read every row, page with offset / limit as below.

Reading a list page by page

Each request returns one offset / limit window. If data is loaded between two pages, rows can move between windows — a row appears twice, or not at all. To detect it, keep the X-Data-Version header of the first page and compare every later page's with it (including a final, empty page): if it differs, discard what you read and start again. Compare it for equality only. The TypeScript client does this for you.

Always sort when you page, so every page follows the same order.

Status codes

Status Meaning
200 Success
400 Invalid request — no properties, a name not written as dataset.property, more than 512 properties, or a retired key
401 Missing or invalid token
404 Model not found, or the retired path /data/{model}/scan — the endpoint is /list
408 The server was busy and could not start the list in time — retry
413 offset + limit reaches past the most rows your role may read in one request — page with a smaller window
429 Too many requests — retry after Retry-After

Examples

Export filtered data

curl -X POST "https://{workspace}.{region}.engeene.com/data/ecommerce/list" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: text/csv" \
  -H "X-Display-Mode: name" \
  -d '{
    "conditions": [{"type": "Time In Range", "property": "orders.orderedAt", "minimum": 1709251200000, "maximum": 1711929600000}],
    "properties": ["orders.orderId", "orders.category", "orders.revenue"],
    "sortBy": [{"property": "orders.revenue", "direction": "Descending"}],
    "limit": 10000
  }'

Page through recent orders

Page 1:

{ "properties": ["orders.orderId", "orders.revenue"], "sortBy": [{"property": "orders.orderedAt", "direction": "Descending"}], "offset": 0, "limit": 100 }

Page 2:

{ "properties": ["orders.orderId", "orders.revenue"], "sortBy": [{"property": "orders.orderedAt", "direction": "Descending"}], "offset": 100, "limit": 100 }

The highest revenues

Sort by a measure with a small limit to see the extremes:

{
  "properties": ["orders.orderId", "orders.category", "orders.revenue"],
  "conditions": [
    { "type": "Measure In Range", "property": "orders.revenue", "minimum": 10000, "maximum": 50000 }
  ],
  "sortBy": [{ "property": "orders.revenue", "direction": "Descending" }],
  "limit": 20
}

Uses

  • Export — a filtered CSV of the rows you need.
  • Look up records — filter by attribute values.
  • Extremes — sort by a measure with a small limit.
  • Check a load — inspect individual rows after loading data.
← Computed MeasuresRender Endpoint →