Get query data
GET/v1/query
Returns a paginated list of queries with optional filtering.
Request
Query Parameters
Page number (1-indexed). Defaults to 1.
Number of results per page. Defaults to 20.
Filter by a specific query ID.
Whether to include canary queries.
Start of date range filter. Accepts strings in the format YYYY-MM-DDTHH:mm:ss.sssZ with possibly omitted parts, e.g. YYYY-MM-DD.
End of date range filter. Accepts strings in the format YYYY-MM-DDTHH:mm:ss.sssZ with possibly omitted parts, e.g. YYYY-MM-DD.
Sort column. Prefix with - for descending order (e.g. -startTime), and just put the parameter name for ascending order (e.g., startTime).
Possible values: [running, failed, successful]
Filter by query status.
Filter by model ID.
Filter by catalog ID.
Filter by user ID.
Possible values: [System, User]
Query origin type filter.
Header Parameters
Responses
- 200
- 400
- 401
- 403
- 500
A paginated list of queries.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
Array [
]
]
]
results
object[]
required
Possible values: [running, failed, successful]
Possible values: [AGGS, CACHE]
Possible values: [System, User]
Possible values: [Iris, Postgresql, Redshift, Snowflake, BigQuery, DatabricksSpark, DatabricksSQL, H2, Hive, Impala]
events
object[]
Possible values: [Inbound Query, Planning, Outbound, Result Processing]
subqueries
object[]
{
"results": [
{
"status": "running",
"modelId": "string",
"modelName": "string",
"catalogId": "string",
"catalogName": "string",
"startTime": 0,
"duration": 0,
"userId": "string",
"user": "string",
"optimization": [
"AGGS"
],
"attributes": [
"string"
],
"measures": [
"string"
],
"aggregates": [
"string"
],
"aggregatesTables": [
"string"
],
"queryType": "System",
"queryId": "string",
"dialect": "Iris",
"dialectVersion": "string",
"queryPlan": "string",
"events": [
{
"name": "Inbound Query",
"startTime": 0,
"duration": 0,
"queryId": "string",
"subqueries": [
{
"name": "string",
"startTime": 0,
"duration": 0,
"subqueryId": "string"
}
]
}
],
"failedMessage": "string"
}
],
"totalResults": "string",
"hasNextPage": true,
"currentPage": 0,
"pageSize": 0
}
Invalid request for example: Invalid parameters, missing parameters.
Unauthorized. This error will occur if calling user does not have access right for the API.
Forbidden. This error will occur if the user lacks the proper roles or permissions to perform this action.
A server error occurred. Check the logs for more details.