API Reference
This section is for engineers who work with Engeene from scripts, services or their own pages. The HTTP API is what the app itself uses, so everything you can do in the app maps to these requests. Request bodies are JSON; aggregation results come back as JSON and row listings as CSV.
Analysing data in the app? Start with Getting Started. You do not need this section for Explore and dashboards.
Writing TypeScript or JavaScript? The TypeScript client builds these requests for you, turns filter values into identifiers and labels the results. Hand-written JSON is the low-level path.
Every query is sent to a model and names each property fully qualified, as dataset.property,
so one request can combine any datasets the model links. The examples use an ecommerce model whose
orders dataset references customers.
Reading order
- Authentication — create a token and send it.
- Models Endpoint — discover the models, and write a model definition: datasets, properties and references.
- Upload Endpoint — upload files and load them.
- Query Endpoint — measures and aggregations.
- Filtering — conditions on attributes, measures and time.
- Segmentation and Top-N — group, bucket and rank results.
- Computed Measures — expressions over aggregated measures.
- List Endpoint and Render Endpoint — individual rows, and a query drawn as a finished chart or table.
- Dashboards API and Saved Views API — the saved presentation of a query.
Base URL
Every workspace has its own address:
https://{workspace}.{region}.engeene.com
A custom domain works too. The desktop app answers the read requests of the same API on your own computer — see Connect a program (local API).
Paths never carry a version segment (/v1/), and every path and query parameter is camelCase.
Authentication
Send an API token in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN
The token carries the permissions of the user who created it. See Authentication.
Endpoints
Data
| Method | Path | Description |
|---|---|---|
POST |
/data/{model}/query |
Aggregation query over any datasets of the model |
POST |
/data/{model}/render |
A query drawn as a chart or table — HTML page, terminal text or JSON, with an Explore link |
POST |
/data/{model}/list |
Row listing, with properties joined from linked datasets |
POST |
/upload/{model}/{dataset}/{filename} |
Stage a file for loading |
POST |
/data/{model}/ingest |
Load the staged files; ?mode=replace replaces the datasets |
GET |
/data/{model}/ingest-status |
Status of the latest load |
Schema and values
| Method | Path | Description |
|---|---|---|
GET |
/models |
Every model, dataset and property you can access |
GET / POST / DELETE |
/model-editor/{model} |
Read, save or delete a model definition |
GET |
/data/{model}/{dataset}/info |
One dataset's properties and row count |
POST |
/attributes/lookup |
Attribute text → identifiers, for filters |
GET / POST |
/attributes/resolve |
Identifiers → attribute text, for labelling results |
Dashboards and saved views
| Method | Path | Description |
|---|---|---|
GET |
/dashboards/list |
List dashboards |
POST |
/dashboards |
Create a dashboard |
PUT / DELETE |
/dashboards/{id} |
Update or delete a dashboard |
GET / POST |
/dashboards/categories |
List or create dashboard categories |
GET / POST |
/views |
List or create saved views |
PUT / DELETE |
/views/{id} |
Update or delete a saved view |
Health checks
| Method | Path | Description |
|---|---|---|
GET |
/health |
Liveness check, no sign-in |
GET |
/health/deep |
Readiness check, no sign-in |
Headers
Request headers
| Header | Use |
|---|---|
Authorization |
Bearer YOUR_API_TOKEN |
Content-Type |
application/json for JSON bodies; the file's type for an upload |
Accept |
application/json on /data/{model}/query; text/csv on /data/{model}/list |
X-Request-Id |
Optional. Your own id for the request — printable ASCII, at most 128 characters — so support can find it. Returned on the response |
X-Display-Mode, X-Time-Zone |
How a CSV list renders attribute values and times — see List Endpoint |
Response headers
| Header | Meaning |
|---|---|
X-Request-Id |
The id you sent; quote it to support |
Retry-After |
Seconds to wait before retrying, on 429 and 503 |
X-Data-Version |
On query and list responses: changes whenever the data behind the answer changes. Compare it for equality only — see Reading a list page by page |
X-List-Truncated |
On a list that named no limit: true when more rows match than the default page of 100 holds, false when the page is the whole answer — see The default page |
ETag |
On /models and /dashboards/list: send it back as If-None-Match to get 304 Not Modified when nothing changed |
Errors
| Status | Meaning |
|---|---|
200 |
Success |
400 |
Bad request — invalid JSON, a missing or retired field, an unknown property |
401 |
Missing or invalid token |
403 |
The token lacks the permission, or a read-only workspace (Demo) attempted a write |
404 |
Model, dataset or object not found |
405 |
Method not allowed |
408 |
The server was busy and could not start the query in time — retry |
409 |
Conflict — another load is running, or the object already exists |
413 |
Request or file too large (a model definition is at most 1 MiB, an uploaded file 32 MiB) |
415 |
Unsupported content type |
422 |
The query is too expensive to answer as asked — a result, value or time limit was exceeded. Add filters or narrow the time range; retrying unchanged fails the same way. Also a Variance too large to return: ask for Standard Deviation |
429 |
Too many requests — retry after Retry-After. A 429 without that header (a monthly AI-credit limit) will not succeed on an immediate retry |
503 |
Temporarily unavailable, for example while your workspace's data is loading — retry after Retry-After |
The body is JSON with a message and, on data requests, a stable machine-readable code:
{ "error": "Dataset 'orders' not found in model 'ecommerce'", "code": "UNKNOWN_DATASET", "datasets": ["orders"] }
A NO_REFERENCE_PATH, UNKNOWN_DATASET or UNKNOWN_COLUMN error that names datasets lists them in
datasets; read that field rather than parsing the message.
Error codes
Branch on code, never on the message — codes are stable, messages are not.
| Code | Meaning |
|---|---|
UNKNOWN_COLUMN |
A property the request names does not exist — in a measure, a segment, a filter, a sort or a list |
UNKNOWN_DATASET |
The dataset in a dataset.property name is not in the model |
NO_REFERENCE_PATH |
The datasets the request names are not linked, so they cannot be queried together |
BRIDGE_NOT_SUPPORTED |
Combining the datasets would need a linking dataset this request type does not allow |
INVALID_REQUEST |
The body is malformed, or the request exceeds a limit |
MODEL_NOT_FOUND |
The model in the URL is unknown |
MODEL_CONFLICT |
Sent with 409: the model is busy (a load is running), or a model with that id already exists. Retry when the work finishes, or choose another id |
DATASET_NOT_FOUND |
Sent with 404: the dataset does not exist in the model or is not available to your workspace |
MODEL_ACCESS_DENIED |
Your roles do not grant access to this data |
FILTER_ON_ANONYMIZED_COLUMN |
The request filters or sorts on a property your roles anonymize |
REVEAL_NOT_ALLOWED |
Your roles may not reveal this property's values |
REQUEST_TOO_LARGE |
The request would return more data than allowed. Add filters, narrow the time range, or page the results |
WORKSPACE_MISMATCH |
The token belongs to another workspace than the address you called |
USER_NOT_MEMBER |
The signed-in user is not a member of the workspace |
WORKSPACE_LOADING |
Sent with 503 and Retry-After: the workspace's data is still loading. The body's loadingStatus is loading or failed |
INCOMPLETE_LOCAL_DATA |
Sent with 400 by the desktop app when it holds only part of a dataset and the answer needs all of it (a distinct count, a median, an "Other" row). The same request succeeds against your workspace address |
DAMAGED_DATA |
Sent with 500: part of the stored data the query reads is damaged. Retrying does not help until the dataset is loaded again — contact support with the X-Request-Id, or load the dataset again yourself |
FORBIDDEN |
Sent with 403: your roles do not include what this request needs, or the endpoint refuses it for another reason the message names |
READ_ONLY_WORKSPACE |
Sent with 403: your workspace reads another workspace's data, so it may read it but never change it |
SCOPE_NOT_GRANTED |
Sent with 403: the AI-assistant token was not granted the scope this endpoint needs |
ORIGIN_NOT_ALLOWED |
Sent with 403 to a browser request from a page whose address is not allowed to change data here |
INTERNAL_ERROR |
The request could not be completed. Retry, and contact support with the X-Request-Id if it persists. From the desktop app it also means the query needed data from your workspace and the app could not reach it; a refusal from your workspace for the request itself reaches you unchanged |
Every code except INTERNAL_ERROR, DAMAGED_DATA, INCOMPLETE_LOCAL_DATA and the four 403 refusals above is fixed
by changing the request, and its message names the part to change. INTERNAL_ERROR carries a fixed message on purpose — the
details are recorded against the X-Request-Id.
Codes in lower case describe the workspace and read the same on every endpoint. The ones you are most likely to branch on:
| Code | Meaning |
|---|---|
migration_in_progress |
Sent with 503 and Retry-After: your workspace is being moved to another server. Retry after the delay; a load started meanwhile runs once the move completes |
managed_dataset |
Sent with 409: the dataset receives its data from an integration, so files cannot be uploaded into it |
retired_property_key |
Sent with 400 on a dashboard, saved-filter, role or report-trigger save: the definition still names a property under a retired key (column, measure, columns, sourceColumn). The body's field names it; rename it to property / properties / sourceProperty |
invalid_layout_geometry |
A dashboard save was refused: a layout position or height is out of range. The body's field names it |
invalid_dashboard_section |
A dashboard save was refused: a section in the layout is malformed (a missing or repeated id, a name over 200 characters, a section holding cards, or more than one screen break). The body's field names it |
invalid_visualization_id |
A dashboard save was refused: a visualization id may use only letters, digits, _ and -, at most 128 characters |