Clickhouse Org Analytics
POST /clickhouse/org-analytics
Per-org visitor + intent analytics from ch3.
The database name is always derived from the authenticated user’s
organization.id (lower-cased) — the request body never carries
an org_id. The agent cannot reach another org’s data even if it
tries.
Authorizations
Parameters
Header Parameters
Request Body required
object
‘raw’ returns the matching rows (capped). ‘daily_counts’ returns {day, count}. ‘top_n’ returns {value, count} grouped by the dataset’s primary group key (contact_id, company_id, keyword_id).
Which per-org table to read.
Optional equality filters. Keys must match dataset columns; unknown columns are silently dropped so an LLM guess can’t produce a SQL error.
object
ISO date or datetime (inclusive lower bound).
Responses
200
Successful Response
object
object
object
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error