Analytics
Run analytics query
Changed onRuns a read-only ClickHouse SQL query against the current project's analytics dataset.
post/analytics/query
Request
- Base URLhttps://api.hexclave.com/api/v1
- URLhttps://api.hexclave.com/api/v1/analytics/query
- Authnone declared
Request body
Example request
{
"include_all_branches": false,
"query": "SELECT count() AS event_count FROM events",
"params": {
"event_type": "$page-view"
},
"timeout_ms": 10000
}Response
Successful response
Example response
{
"result": [
{
"event_count": 42
}
],
"query_id": "00000000-0000-0000-0000-000000000000:main:00000000-0000-0000-0000-000000000001"
}Changes
- breaking
the response property
/became nullable for the status
- breaking
- info
endpoint added
- info