Insights
Execute Query
Executes an ad-hoc SQL query against the analytics database and returns columnar results.
post/api/v1/insights/execute
Request body
Example request
{
"sql": "SELECT workflow_name, COUNT(*) FROM runs GROUP BY 1"
}Response
Query results
Example response
{
"columns": [
"workflow_name",
"count"
],
"elapsed": 0.342,
"row_count": 3
}