Run an ad hoc query over one granted table or view.
POST/api/v1/query-sources/executeanalytics:read
The result is an execution table: the source's columns, filtered, aggregated and paged.
| Scope | analytics:read |
| Asynchronous | No |
| MCP tool | execute_query_sources |
| Portal permissions | execute_chart_sources |
| Paging | snapshot |
| Default order | plan order + unique key where the plan has one |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | QuerySourceExecuteInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
columns | array of object | Required | |
next_cursor | string or null | Required | |
rows | array of array of any | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
QuerySourceExecuteInput
| Field | Type | Required | Description |
|---|---|---|---|
aggregate | any | Optional | Group and total the source's rows, as the query builder writes it. |
columns | array of string | Optional | The columns to return; every column of the source when none are given. |
context | any | Optional | Values for runtime inputs, keyed by name, as a JSON object. |
post_aggregations | any | Optional | Group and total the result, as the query builder writes it. |
post_filters | any | Optional | A filter on the result columns, as the query builder writes it. |
query_source_id | string | Required |