Skip to main content

Analytics Warehouse

The Analytics Warehouse is the new generation of Treble’s data platform. It gives you direct SQL access to your operational data with near-real-time freshness, full history, and several datasets that were never available before — including the complete message trace of every conversation and the node-by-node journey of every flow.
The Analytics Warehouse replaces the previous Data Warehouse (client_analytics), which is now deprecated. Both remain available during the migration period. If you are migrating existing queries, start with the Migration Guide.

What’s new

Connection

Once access is enabled, you will receive credentials to connect: You can use any ClickHouse-compatible client: DBeaver, DataGrip, clickhouse-client, or connect directly from Metabase, Looker, Power BI, Google Sheets, or another BI tool.
Access is available for companies that request onboarding. Contact your Account Manager or support to start the process.

The data contract

Three promises define how the warehouse behaves. Understanding them will save you time:
  1. Data is near real time. New sessions, messages, and campaign sends appear within minutes of happening.
  2. Today is provisional; history is final. Operational data keeps changing while it is in flight — a campaign send that is “in process” at 10:00 may be “delivered” at 11:00, in Treble and in your warehouse alike. Figures for any given day consolidate fully within 48 hours, and the warehouse self-corrects continuously (every 30 minutes) during that window. Historical data beyond that window is immutable.
  3. Every row tells you when it landed. All tables expose a synced_at column: the moment the row (or its latest correction) was written. This powers reliable incremental synchronization into your own systems.

Naming glossary

The warehouse uses one consistent vocabulary across every table:

Security and limits

  • Row-level security: your credentials can only ever see your company’s rows — enforced by the database on every table, on every query.
  • Read-only: your user cannot modify, create, or delete anything.
  • Protection limits: queries have a 30-second execution cap and row/memory limits that keep the platform stable for everyone. See Query Optimization for how to stay well inside them.

Available tables

Conversation Flows

Everything that happens inside your automated flows.

Campaigns

Outbound sends and how users engage with them.

Agent Workspace

Human-agent operations: conversations, messages, transfers, availability, productivity.

Conversions & Attribution

Where conversations come from and what they achieve.

Dimensions — catalogs for enrichment

Agents, tags, teams, HSM templates, agent-tag assignments, polls, WhatsApp channels, and flow nodes (including AI agent configuration). See Dimensions.