Skip to main content
POST
Run a read-only analytics query for a project

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Replo-Api-Version
enum<string>
required

The public API version to use for this request.

Available options:
2026-08-21

Query Parameters

projectId
string<uuid>
required

Body

application/json
query
string
required

Run a read-only analytics query for a project.

Rules:

  • Use SELECT or WITH queries only.
  • Do not add project or namespace filters; project scoping is enforced server-side.
  • Prefer daily rollup tables for date-range summaries and use events_computed for ad-hoc session-level questions.
  • Aggregate-state rollup columns must use the matching ClickHouse merge function, such as countMerge, uniqMerge, or sumMerge, and queries must group by selected dimensions.
  • Maximum execution time: 60 seconds.
  • Maximum result rows: 100000.

Queryable tables: Session-level computed analytics. Primary table for ad-hoc queries. Project scoped: yes.

Currency exchange rates for multi-currency reporting. Project scoped: no.

Pre-aggregated daily page metrics by day, domain, path, and UTM source. Project scoped: yes.

Pre-aggregated daily project traffic metrics by day and UTM source. Project scoped: yes.

Pre-aggregated daily purchase metrics by day and UTM source. Project scoped: yes.

Minimum string length: 1

Response

Run a read-only analytics query for a project

rowCount
integer
required
data
object[]
required