Skip to content

Catalog ​

Dimensions, metrics and built-in report templates.

Generated

This page is generated from api/openapi/v1.yaml (OpenAPI 3.1.0, API version 1.0.0).

This OpenAPI document (no authentication) ​

GET/v1/openapi.json

Responses ​

StatusDescription
200The OpenAPI 3.1 document as JSON.

List dimensions and metrics ​

GET/v1/catalog

Scope: reports:read. Every identifier usable in dimensions, metrics and filters, with the scopes where it is available.

Parameters ​

NameInTypeRequiredDescription
scopequery"event" | "session" | "segment" | "page" | "user" | "element"

Responses ​

StatusDescription
200Catalog.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).

Response fields

FieldTypeRequiredDescription
scopesarray of object
dimensionsarray of object
metricsarray of object

List built-in report templates ​

GET/v1/templates

Scope: reports:read. 30 templates mirroring GA4, Piano and Matomo, plus the agents vs humans reports.

Parameters ​

NameInTypeRequiredDescription
limitqueryinteger
cursorquerystringThe next_cursor of the previous page.

Responses ​

StatusDescription
200Templates.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).

Response fields

FieldTypeRequiredDescription
sectionsarray of objectyes
dataarray of objectyes
next_cursorstring | nullyes

Get a report template with its widgets ​

GET/v1/templates/{id}

Scope: reports:read.

Parameters ​

NameInTypeRequiredDescription
idpathstringyesTemplate id (see GET /templates), e.g. humans_vs_agents.

Responses ​

StatusDescription
200The template.
401Missing, invalid, expired or revoked API key (unauthorized).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).

Agents & humans, every visit counts!